Skip to content

Commit

Permalink
CodeGen from PR 14920 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[rdbms] Update readme.python.md (Azure#14920)

* Update readme.python.md

* Update readme.python.md
  • Loading branch information
SDKAuto committed Jun 23, 2021
1 parent 676b80e commit 1c2eabc
Show file tree
Hide file tree
Showing 29 changed files with 1,587 additions and 765 deletions.
8 changes: 4 additions & 4 deletions sdk/rdbms/azure-mgmt-rdbms/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "5b141b3de81d3a38ee2406e1a9db5a9ecd08ff7d",
"commit": "f1448ad24d840cb6190e0b7495ea758c202d8732",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/mariadb/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/mariadb/resource-manager/readme.md"
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/postgresql/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-rdbms/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "",
"total_api_version_list": ["2020-02-14-preview", "2020-11-05-preview", "2021-03-31-privatepreview"],
"chosen_version": "2021-06-01",
"total_api_version_list": ["2021-06-01"],
"client": {
"name": "PostgreSQLManagementClient",
"filename": "_postgre_sql_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ class PostgreSQLManagementClient(object):
"""The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ServersOperations
:vartype servers: postgre_sql_management_client.operations.ServersOperations
:ivar firewall_rules: FirewallRulesOperations operations
:vartype firewall_rules: azure.mgmt.rdbms.postgresql_flexibleservers.operations.FirewallRulesOperations
:vartype firewall_rules: postgre_sql_management_client.operations.FirewallRulesOperations
:ivar configurations: ConfigurationsOperations operations
:vartype configurations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ConfigurationsOperations
:vartype configurations: postgre_sql_management_client.operations.ConfigurationsOperations
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability: azure.mgmt.rdbms.postgresql_flexibleservers.operations.CheckNameAvailabilityOperations
:vartype check_name_availability: postgre_sql_management_client.operations.CheckNameAvailabilityOperations
:ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations
:vartype location_based_capabilities: azure.mgmt.rdbms.postgresql_flexibleservers.operations.LocationBasedCapabilitiesOperations
:vartype location_based_capabilities: postgre_sql_management_client.operations.LocationBasedCapabilitiesOperations
:ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations
:vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql_flexibleservers.operations.VirtualNetworkSubnetUsageOperations
:vartype virtual_network_subnet_usage: postgre_sql_management_client.operations.VirtualNetworkSubnetUsageOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.Operations
:vartype operations: postgre_sql_management_client.operations.Operations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.operations.DatabasesOperations
:vartype databases: postgre_sql_management_client.operations.DatabasesOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.operations.GetPrivateDnsZoneSuffixOperations
:vartype get_private_dns_zone_suffix: postgre_sql_management_client.operations.GetPrivateDnsZoneSuffixOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "8.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-06-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-rdbms/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ class PostgreSQLManagementClient(object):
"""The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.ServersOperations
:vartype servers: postgre_sql_management_client.aio.operations.ServersOperations
:ivar firewall_rules: FirewallRulesOperations operations
:vartype firewall_rules: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.FirewallRulesOperations
:vartype firewall_rules: postgre_sql_management_client.aio.operations.FirewallRulesOperations
:ivar configurations: ConfigurationsOperations operations
:vartype configurations: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.ConfigurationsOperations
:vartype configurations: postgre_sql_management_client.aio.operations.ConfigurationsOperations
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.CheckNameAvailabilityOperations
:vartype check_name_availability: postgre_sql_management_client.aio.operations.CheckNameAvailabilityOperations
:ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations
:vartype location_based_capabilities: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.LocationBasedCapabilitiesOperations
:vartype location_based_capabilities: postgre_sql_management_client.aio.operations.LocationBasedCapabilitiesOperations
:ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations
:vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.VirtualNetworkSubnetUsageOperations
:vartype virtual_network_subnet_usage: postgre_sql_management_client.aio.operations.VirtualNetworkSubnetUsageOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.Operations
:vartype operations: postgre_sql_management_client.aio.operations.Operations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.DatabasesOperations
:vartype databases: postgre_sql_management_client.aio.operations.DatabasesOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.GetPrivateDnsZoneSuffixOperations
:vartype get_private_dns_zone_suffix: postgre_sql_management_client.aio.operations.GetPrivateDnsZoneSuffixOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CheckNameAvailabilityOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:type models: ~postgre_sql_management_client.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
Expand All @@ -43,24 +43,24 @@ def __init__(self, client, config, serializer, deserializer) -> None:
async def execute(
self,
name_availability_request: "_models.NameAvailabilityRequest",
**kwargs
**kwargs: Any
) -> "_models.NameAvailability":
"""Check the availability of name for resource.
:param name_availability_request: The required parameters for checking if resource name is
available.
:type name_availability_request: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailabilityRequest
:type name_availability_request: ~postgre_sql_management_client.models.NameAvailabilityRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:return: NameAvailability, or the result of cls(response)
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailability
:rtype: ~postgre_sql_management_client.models.NameAvailability
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailability"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-02-14-preview"
api_version = "2021-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Loading

0 comments on commit 1c2eabc

Please sign in to comment.