Skip to content

Commit 58857ae

Browse files
AutorestCIZim Kalinowski
authored and
Zim Kalinowski
committed
[AutoPR sql/resource-manager] invalid non ascii character was causing problems (Azure#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
1 parent 299aa0e commit 58857ae

File tree

466 files changed

+24216
-24436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+24216
-24436
lines changed

sdk/sql/azure-mgmt-sql/HISTORY.rst

+62
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,68 @@
33
Release History
44
===============
55

6+
0.13.0 (2019-09-03)
7+
+++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model ManagedInstanceUpdate has a new parameter source_managed_instance_id
12+
- Model ManagedInstanceUpdate has a new parameter instance_pool_id
13+
- Model ManagedInstanceUpdate has a new parameter restore_point_in_time
14+
- Model ManagedInstanceUpdate has a new parameter managed_instance_create_mode
15+
- Model SensitivityLabel has a new parameter is_disabled
16+
- Model Database has a new parameter paused_date
17+
- Model Database has a new parameter read_replica_count
18+
- Model Database has a new parameter resumed_date
19+
- Model Database has a new parameter auto_pause_delay
20+
- Model Database has a new parameter min_capacity
21+
- Model ManagedInstance has a new parameter source_managed_instance_id
22+
- Model ManagedInstance has a new parameter instance_pool_id
23+
- Model ManagedInstance has a new parameter restore_point_in_time
24+
- Model ManagedInstance has a new parameter managed_instance_create_mode
25+
- Model DatabaseUpdate has a new parameter paused_date
26+
- Model DatabaseUpdate has a new parameter read_replica_count
27+
- Model DatabaseUpdate has a new parameter resumed_date
28+
- Model DatabaseUpdate has a new parameter auto_pause_delay
29+
- Model DatabaseUpdate has a new parameter min_capacity
30+
- Added operation ManagedInstanceEncryptionProtectorsOperations.revalidate
31+
- Added operation ManagedDatabaseSensitivityLabelsOperations.enable_recommendation
32+
- Added operation ManagedDatabaseSensitivityLabelsOperations.disable_recommendation
33+
- Added operation ElasticPoolsOperations.failover
34+
- Added operation ManagedInstancesOperations.list_by_instance_pool
35+
- Added operation DatabasesOperations.failover
36+
- Added operation LongTermRetentionBackupsOperations.get_by_resource_group
37+
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_server
38+
- Added operation LongTermRetentionBackupsOperations.delete_by_resource_group
39+
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_location
40+
- Added operation LongTermRetentionBackupsOperations.list_by_resource_group_database
41+
- Added operation SensitivityLabelsOperations.enable_recommendation
42+
- Added operation SensitivityLabelsOperations.disable_recommendation
43+
- Added operation EncryptionProtectorsOperations.revalidate
44+
- Added operation group InstancePoolsOperations
45+
- Added operation group ManagedInstanceAdministratorsOperations
46+
- Added operation group UsagesOperations
47+
- Added operation group PrivateLinkResourcesOperations
48+
- Added operation group PrivateEndpointConnectionsOperations
49+
50+
**Breaking changes**
51+
52+
- Operation ManagedDatabaseSensitivityLabelsOperations.list_recommended_by_database has a new signature
53+
- Operation SensitivityLabelsOperations.list_recommended_by_database has a new signature
54+
- Operation EncryptionProtectorsOperations.create_or_update has a new signature
55+
56+
**General breaking changes**
57+
58+
This version uses a next-generation code generator that *might* introduce breaking changes if from some import.
59+
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.
60+
61+
- SqlManagementClient cannot be imported from `azure.mgmt.sql.sql_management_client` anymore (import from `azure.mgmt.sqlmanagement` works like before)
62+
- SqlManagementClientConfiguration import has been moved from `azure.mgmt.sqlmanagement.sql_management_client` to `azure.mgmt.sqlmanagement`
63+
- 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)
64+
- 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)
65+
66+
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.
67+
668
0.12.0 (2019-03-28)
769
+++++++++++++++++++
870

sdk/sql/azure-mgmt-sql/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure SQL Management Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .sql_management_client import SqlManagementClient
13-
from .version import VERSION
12+
from ._configuration import SqlManagementClientConfiguration
13+
from ._sql_management_client import SqlManagementClient
14+
__all__ = ['SqlManagementClient', 'SqlManagementClientConfiguration']
1415

15-
__all__ = ['SqlManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class SqlManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for SqlManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The subscription ID that identifies an Azure
25+
subscription.
26+
:type subscription_id: str
27+
:param str base_url: Service URL
28+
"""
29+
30+
def __init__(
31+
self, credentials, subscription_id, base_url=None):
32+
33+
if credentials is None:
34+
raise ValueError("Parameter 'credentials' must not be None.")
35+
if subscription_id is None:
36+
raise ValueError("Parameter 'subscription_id' must not be None.")
37+
if not base_url:
38+
base_url = 'https://management.azure.com'
39+
40+
super(SqlManagementClientConfiguration, self).__init__(base_url)
41+
42+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
43+
self.keep_alive = True
44+
45+
self.add_user_agent('azure-mgmt-sql/{}'.format(VERSION))
46+
self.add_user_agent('Azure-SDK-For-Python')
47+
48+
self.credentials = credentials
49+
self.subscription_id = subscription_id

0 commit comments

Comments
 (0)