Skip to content

Commit

Permalink
Release azure mgmt rdbms (Azure#13780)
Browse files Browse the repository at this point in the history
* Generated from f40505ca379e2fc1557e93ad48b28545d03e9856

Changes for new api version sdk generate

* Generated from 97a22b8f657404ce57ff34e87dcfd7d6ae0b4a6f

Set publicNetworkAccess to read only in MySQL Flexible Server swagger

* update changelog and version

* update testcase (Azure#13779)

* Packaging update of azure-mgmt-rdbms

* Generated from 1b5edee19d240ffefbc58c741738fd88d138c821

* version 3.0.0rc1

* upload test

Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
Co-authored-by: colawwj <70128817+colawwj@users.noreply.github.com>
Co-authored-by: Azure SDK Bot <adxpysdk@microsoft.com>
Co-authored-by: Changlong Liu <changlong.liu@microsoft.com>
  • Loading branch information
5 people authored Sep 15, 2020
1 parent 3f96b10 commit 8890600
Show file tree
Hide file tree
Showing 83 changed files with 13,558 additions and 2,010 deletions.
22 changes: 22 additions & 0 deletions sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Release History

## 3.0.0rc1 (2020-09-15)

**Features**

- Model NameAvailability has a new parameter name
- Model NameAvailability has a new parameter type
- Added operation ServersOperations.start
- Added operation ServersOperations.stop
- Added operation ConfigurationsOperations.update
- Added operation group VirtualNetworkSubnetUsageOperations
- Added operation group LocationBasedCapabilitiesOperations
- Added operation group CheckVirtualNetworkSubnetUsageOperations

**Breaking changes**

- Model NameAvailability no longer has parameter reason
- Model StorageProfile no longer has parameter geo_redundant_backup
- Model StorageProfile no longer has parameter storage_autogrow
- Model Server has a new signature
- Model Sku has a new signature
- Removed operation ConfigurationsOperations.create_or_update

## 2.2.0 (2020-03-25)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .operations import LogFilesOperations
from .operations import LocationBasedPerformanceTierOperations
from .operations import CheckNameAvailabilityOperations
from .operations import ServerSecurityAlertPoliciesOperations
from .operations import Operations
from .operations import QueryTextsOperations
from .operations import TopQueryStatisticsOperations
Expand All @@ -34,6 +33,7 @@
from .operations import LocationBasedRecommendedActionSessionsResultOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import ServerSecurityAlertPoliciesOperations
from . import models


Expand Down Expand Up @@ -61,8 +61,6 @@ class MariaDBManagementClient(MariaDBManagementClientOperationsMixin, SDKClient)
:vartype location_based_performance_tier: azure.mgmt.rdbms.mariadb.operations.LocationBasedPerformanceTierOperations
:ivar check_name_availability: CheckNameAvailability operations
:vartype check_name_availability: azure.mgmt.rdbms.mariadb.operations.CheckNameAvailabilityOperations
:ivar server_security_alert_policies: ServerSecurityAlertPolicies operations
:vartype server_security_alert_policies: azure.mgmt.rdbms.mariadb.operations.ServerSecurityAlertPoliciesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.rdbms.mariadb.operations.Operations
:ivar query_texts: QueryTexts operations
Expand All @@ -83,6 +81,8 @@ class MariaDBManagementClient(MariaDBManagementClientOperationsMixin, SDKClient)
:vartype private_endpoint_connections: azure.mgmt.rdbms.mariadb.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.rdbms.mariadb.operations.PrivateLinkResourcesOperations
:ivar server_security_alert_policies: ServerSecurityAlertPolicies operations
:vartype server_security_alert_policies: azure.mgmt.rdbms.mariadb.operations.ServerSecurityAlertPoliciesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -99,7 +99,6 @@ def __init__(
super(MariaDBManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -121,8 +120,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.check_name_availability = CheckNameAvailabilityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.query_texts = QueryTextsOperations(
Expand All @@ -143,3 +140,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, **kwargs):
class CloudError(Model):
"""An error response from the Batch service.
:param error:
:param error: Error message
:type error: ~azure.mgmt.rdbms.mariadb.models.ErrorResponse
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, **kwargs) -> None:
class CloudError(Model):
"""An error response from the Batch service.
:param error:
:param error: Error message
:type error: ~azure.mgmt.rdbms.mariadb.models.ErrorResponse
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from ._log_files_operations import LogFilesOperations
from ._location_based_performance_tier_operations import LocationBasedPerformanceTierOperations
from ._check_name_availability_operations import CheckNameAvailabilityOperations
from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
from ._operations import Operations
from ._query_texts_operations import QueryTextsOperations
from ._top_query_statistics_operations import TopQueryStatisticsOperations
Expand All @@ -29,6 +28,7 @@
from ._location_based_recommended_action_sessions_result_operations import LocationBasedRecommendedActionSessionsResultOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
from ._maria_db_management_client_operations import MariaDBManagementClientOperationsMixin

__all__ = [
Expand All @@ -41,7 +41,6 @@
'LogFilesOperations',
'LocationBasedPerformanceTierOperations',
'CheckNameAvailabilityOperations',
'ServerSecurityAlertPoliciesOperations',
'Operations',
'QueryTextsOperations',
'TopQueryStatisticsOperations',
Expand All @@ -52,5 +51,6 @@
'LocationBasedRecommendedActionSessionsResultOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
'ServerSecurityAlertPoliciesOperations',
'MariaDBManagementClientOperationsMixin',
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class MariaDBManagementClientOperationsMixin(object):

def _create_recommended_action_session_initial(
self, resource_group_name, server_name, advisor_name, database_name, custom_headers=None, raw=False, **operation_config):
api_version = "2018-06-01"

# Construct URL
url = self.create_recommended_action_session.metadata['url']
path_format_arguments = {
Expand All @@ -34,7 +36,7 @@ def _create_recommended_action_session_initial(

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1)
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str', min_length=1)
query_parameters['databaseName'] = self._serialize.query("database_name", database_name, 'str')

# Construct headers
Expand Down
Loading

0 comments on commit 8890600

Please sign in to comment.