Skip to content

Commit

Permalink
[AutoPR sql/resource-manager] invalid non ascii character was causing…
Browse files Browse the repository at this point in the history
… problems (#7041)

* Generated from c9732dede8651e6f4b3d65dc7e4cfc7e2844e05f

invalid non ascii character was causing problems

* Packaging update of azure-mgmt-sql

* updated history and version

* added general breaking changes
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Sep 3, 2019
1 parent 299aa0e commit 58857ae
Show file tree
Hide file tree
Showing 466 changed files with 24,216 additions and 24,436 deletions.
62 changes: 62 additions & 0 deletions sdk/sql/azure-mgmt-sql/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,68 @@
Release History
===============

0.13.0 (2019-09-03)
+++++++++++++++++++

**Features**

- Model ManagedInstanceUpdate has a new parameter source_managed_instance_id
- Model ManagedInstanceUpdate has a new parameter instance_pool_id
- Model ManagedInstanceUpdate has a new parameter restore_point_in_time
- Model ManagedInstanceUpdate has a new parameter managed_instance_create_mode
- Model SensitivityLabel has a new parameter is_disabled
- Model Database has a new parameter paused_date
- Model Database has a new parameter read_replica_count
- Model Database has a new parameter resumed_date
- Model Database has a new parameter auto_pause_delay
- Model Database has a new parameter min_capacity
- Model ManagedInstance has a new parameter source_managed_instance_id
- Model ManagedInstance has a new parameter instance_pool_id
- Model ManagedInstance has a new parameter restore_point_in_time
- Model ManagedInstance has a new parameter managed_instance_create_mode
- Model DatabaseUpdate has a new parameter paused_date
- Model DatabaseUpdate has a new parameter read_replica_count
- Model DatabaseUpdate has a new parameter resumed_date
- Model DatabaseUpdate has a new parameter auto_pause_delay
- Model DatabaseUpdate has a new parameter min_capacity
- Added operation ManagedInstanceEncryptionProtectorsOperations.revalidate
- Added operation ManagedDatabaseSensitivityLabelsOperations.enable_recommendation
- Added operation ManagedDatabaseSensitivityLabelsOperations.disable_recommendation
- Added operation ElasticPoolsOperations.failover
- Added operation ManagedInstancesOperations.list_by_instance_pool
- Added operation DatabasesOperations.failover
- Added operation LongTermRetentionBackupsOperations.get_by_resource_group
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_server
- Added operation LongTermRetentionBackupsOperations.delete_by_resource_group
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_location
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_database
- Added operation SensitivityLabelsOperations.enable_recommendation
- Added operation SensitivityLabelsOperations.disable_recommendation
- Added operation EncryptionProtectorsOperations.revalidate
- Added operation group InstancePoolsOperations
- Added operation group ManagedInstanceAdministratorsOperations
- Added operation group UsagesOperations
- Added operation group PrivateLinkResourcesOperations
- Added operation group PrivateEndpointConnectionsOperations

**Breaking changes**

- Operation ManagedDatabaseSensitivityLabelsOperations.list_recommended_by_database has a new signature
- Operation SensitivityLabelsOperations.list_recommended_by_database has a new signature
- Operation EncryptionProtectorsOperations.create_or_update has a new signature

**General breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes if from some import.
In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.

- SqlManagementClient cannot be imported from `azure.mgmt.sql.sql_management_client` anymore (import from `azure.mgmt.sqlmanagement` works like before)
- SqlManagementClientConfiguration import has been moved from `azure.mgmt.sqlmanagement.sql_management_client` to `azure.mgmt.sqlmanagement`
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.sqlmanagement.models.my_class` (import from `azure.mgmt.sqlmanagement.models` works like before)
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.sqlmanagement.operations.my_class_operations` (import from `azure.mgmt.sqlmanagement.operations` works like before)

Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.

0.12.0 (2019-03-28)
+++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure SQL Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
7 changes: 4 additions & 3 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .sql_management_client import SqlManagementClient
from .version import VERSION
from ._configuration import SqlManagementClientConfiguration
from ._sql_management_client import SqlManagementClient
__all__ = ['SqlManagementClient', 'SqlManagementClientConfiguration']

__all__ = ['SqlManagementClient']
from .version import VERSION

__version__ = VERSION

49 changes: 49 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_configuration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


class SqlManagementClientConfiguration(AzureConfiguration):
"""Configuration for SqlManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription ID that identifies an Azure
subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(SqlManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-sql/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Loading

0 comments on commit 58857ae

Please sign in to comment.