forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 5f8d99ac1db16debed6b36efffee293a5a8ec012
Add GA version of APIs for MySQL and PGSQL
- Loading branch information
1 parent
5e33876
commit c285bac
Showing
108 changed files
with
2,849 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/configuration_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource import ProxyResource | ||
|
||
|
||
class Configuration(ProxyResource): | ||
"""Represents a Configuration. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param value: Value of the configuration. | ||
:type value: str | ||
:ivar description: Description of the configuration. | ||
:vartype description: str | ||
:ivar default_value: Default value of the configuration. | ||
:vartype default_value: str | ||
:ivar data_type: Data type of the configuration. | ||
:vartype data_type: str | ||
:ivar allowed_values: Allowed values of the configuration. | ||
:vartype allowed_values: str | ||
:param source: Source of the configuration. | ||
:type source: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'description': {'readonly': True}, | ||
'default_value': {'readonly': True}, | ||
'data_type': {'readonly': True}, | ||
'allowed_values': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'value': {'key': 'properties.value', 'type': 'str'}, | ||
'description': {'key': 'properties.description', 'type': 'str'}, | ||
'default_value': {'key': 'properties.defaultValue', 'type': 'str'}, | ||
'data_type': {'key': 'properties.dataType', 'type': 'str'}, | ||
'allowed_values': {'key': 'properties.allowedValues', 'type': 'str'}, | ||
'source': {'key': 'properties.source', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, value: str=None, source: str=None, **kwargs) -> None: | ||
super(Configuration, self).__init__(, **kwargs) | ||
self.value = value | ||
self.description = None | ||
self.default_value = None | ||
self.data_type = None | ||
self.allowed_values = None | ||
self.source = source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/database_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource import ProxyResource | ||
|
||
|
||
class Database(ProxyResource): | ||
"""Represents a Database. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param charset: The charset of the database. | ||
:type charset: str | ||
:param collation: The collation of the database. | ||
:type collation: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'charset': {'key': 'properties.charset', 'type': 'str'}, | ||
'collation': {'key': 'properties.collation', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, charset: str=None, collation: str=None, **kwargs) -> None: | ||
super(Database, self).__init__(, **kwargs) | ||
self.charset = charset | ||
self.collation = collation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/models/firewall_rule_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource import ProxyResource | ||
|
||
|
||
class FirewallRule(ProxyResource): | ||
"""Represents a server firewall rule. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param start_ip_address: Required. The start IP address of the server | ||
firewall rule. Must be IPv4 format. | ||
:type start_ip_address: str | ||
:param end_ip_address: Required. The end IP address of the server firewall | ||
rule. Must be IPv4 format. | ||
:type end_ip_address: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'start_ip_address': {'required': True, 'pattern': r'^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'}, | ||
'end_ip_address': {'required': True, 'pattern': r'^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, | ||
'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, start_ip_address: str, end_ip_address: str, **kwargs) -> None: | ||
super(FirewallRule, self).__init__(, **kwargs) | ||
self.start_ip_address = start_ip_address | ||
self.end_ip_address = end_ip_address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.