Skip to content

Commit

Permalink
CodeGen from PR 19949 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Flexible MySQL: add APIs for AAD administrator (Azure#19949)

* Flexible MySQL server: add APIs for AAD administrator

* Fix LintDiff error

* Fix LintDiff check
  • Loading branch information
SDKAuto committed Aug 2, 2022
1 parent 717132f commit 8eb11a0
Show file tree
Hide file tree
Showing 14 changed files with 1,644 additions and 82 deletions.
6 changes: 3 additions & 3 deletions sdk/rdbms/azure-mgmt-rdbms/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "2dcad6d6e9a96882eb6d317e7500a94be007a9c6",
"commit": "705bc5cfea866c838692f4aa0a1197c51bfd2d79",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/postgresql/resource-manager/readme.md"
"autorest_command": "autorest specification/mysql/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/mysql/resource-manager/readme.md"
}
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 = "10.2.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from . import models
from ._configuration import MySQLManagementClientConfiguration
from .operations import BackupsOperations, CheckNameAvailabilityOperations, CheckVirtualNetworkSubnetUsageOperations, ConfigurationsOperations, DatabasesOperations, FirewallRulesOperations, GetPrivateDnsZoneSuffixOperations, LocationBasedCapabilitiesOperations, LogFilesOperations, Operations, ReplicasOperations, ServersOperations
from .operations import AzureADAdministratorsOperations, BackupsOperations, CheckNameAvailabilityOperations, CheckNameAvailabilityWithoutLocationOperations, CheckVirtualNetworkSubnetUsageOperations, ConfigurationsOperations, DatabasesOperations, FirewallRulesOperations, GetPrivateDnsZoneSuffixOperations, LocationBasedCapabilitiesOperations, LogFilesOperations, Operations, ReplicasOperations, ServersOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand Down Expand Up @@ -52,11 +52,18 @@ class MySQLManagementClient: # pylint: disable=too-many-instance-attributes
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability:
azure.mgmt.rdbms.mysql_flexibleservers.operations.CheckNameAvailabilityOperations
:ivar check_name_availability_without_location: CheckNameAvailabilityWithoutLocationOperations
operations
:vartype check_name_availability_without_location:
azure.mgmt.rdbms.mysql_flexibleservers.operations.CheckNameAvailabilityWithoutLocationOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix:
azure.mgmt.rdbms.mysql_flexibleservers.operations.GetPrivateDnsZoneSuffixOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.mysql_flexibleservers.operations.Operations
:ivar azure_ad_administrators: AzureADAdministratorsOperations operations
:vartype azure_ad_administrators:
azure.mgmt.rdbms.mysql_flexibleservers.operations.AzureADAdministratorsOperations
: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 Expand Up @@ -114,12 +121,18 @@ def __init__(
self.check_name_availability = CheckNameAvailabilityOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.check_name_availability_without_location = CheckNameAvailabilityWithoutLocationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.azure_ad_administrators = AzureADAdministratorsOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
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 = "10.2.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from .. import models
from ._configuration import MySQLManagementClientConfiguration
from .operations import BackupsOperations, CheckNameAvailabilityOperations, CheckVirtualNetworkSubnetUsageOperations, ConfigurationsOperations, DatabasesOperations, FirewallRulesOperations, GetPrivateDnsZoneSuffixOperations, LocationBasedCapabilitiesOperations, LogFilesOperations, Operations, ReplicasOperations, ServersOperations
from .operations import AzureADAdministratorsOperations, BackupsOperations, CheckNameAvailabilityOperations, CheckNameAvailabilityWithoutLocationOperations, CheckVirtualNetworkSubnetUsageOperations, ConfigurationsOperations, DatabasesOperations, FirewallRulesOperations, GetPrivateDnsZoneSuffixOperations, LocationBasedCapabilitiesOperations, LogFilesOperations, Operations, ReplicasOperations, ServersOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand Down Expand Up @@ -52,11 +52,18 @@ class MySQLManagementClient: # pylint: disable=too-many-instance-attributes
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability:
azure.mgmt.rdbms.mysql_flexibleservers.aio.operations.CheckNameAvailabilityOperations
:ivar check_name_availability_without_location: CheckNameAvailabilityWithoutLocationOperations
operations
:vartype check_name_availability_without_location:
azure.mgmt.rdbms.mysql_flexibleservers.aio.operations.CheckNameAvailabilityWithoutLocationOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix:
azure.mgmt.rdbms.mysql_flexibleservers.aio.operations.GetPrivateDnsZoneSuffixOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.mysql_flexibleservers.aio.operations.Operations
:ivar azure_ad_administrators: AzureADAdministratorsOperations operations
:vartype azure_ad_administrators:
azure.mgmt.rdbms.mysql_flexibleservers.aio.operations.AzureADAdministratorsOperations
: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 Expand Up @@ -114,12 +121,18 @@ def __init__(
self.check_name_availability = CheckNameAvailabilityOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.check_name_availability_without_location = CheckNameAvailabilityWithoutLocationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.azure_ad_administrators = AzureADAdministratorsOperations(
self._client, self._config, self._serialize, self._deserialize
)


def _send_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations
from ._check_virtual_network_subnet_usage_operations import CheckVirtualNetworkSubnetUsageOperations
from ._check_name_availability_operations import CheckNameAvailabilityOperations
from ._check_name_availability_without_location_operations import CheckNameAvailabilityWithoutLocationOperations
from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations
from ._operations import Operations
from ._azure_ad_administrators_operations import AzureADAdministratorsOperations

from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
Expand All @@ -33,8 +35,10 @@
'LocationBasedCapabilitiesOperations',
'CheckVirtualNetworkSubnetUsageOperations',
'CheckNameAvailabilityOperations',
'CheckNameAvailabilityWithoutLocationOperations',
'GetPrivateDnsZoneSuffixOperations',
'Operations',
'AzureADAdministratorsOperations',
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Loading

0 comments on commit 8eb11a0

Please sign in to comment.