Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] sqlvirtualmachine/resource-manager #5768

Merged
merged 6 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
Release History
===============

0.4.0 (2019-07-04)
++++++++++++++++++

**Features**

- Model SqlVirtualMachine has a new parameter sql_management

**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.

- SqlVirtualMachineManagementClient cannot be imported from `azure.mgmt.sqlvirtualmachine.sql_virtual_machine_management_client` anymore (import from `azure.mgmt.sqlvirtualmachine` works like before)
- SqlVirtualMachineManagementClientConfiguration import has been moved from `azure.mgmt.sqlvirtualmachine.sql_virtual_machine_management_client` to `azure.mgmt.sqlvirtualmachine`
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.sqlvirtualmachine.models.my_class` (import from `azure.mgmt.sqlvirtualmachine.models` works like before)
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.sqlvirtualmachine.operations.my_class_operations` (import from `azure.mgmt.sqlvirtualmachine.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.3.0 (2019-06-03)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sqlvirtualmachine/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure SQL Virtual Machine 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
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
ClusterConfiguration,
IdentityType,
SqlServerLicenseType,
SqlManagementMode,
SqlImageSku,
DayOfWeek,
BackupScheduleType,
Expand Down Expand Up @@ -113,6 +114,7 @@
'ClusterConfiguration',
'IdentityType',
'SqlServerLicenseType',
'SqlManagementMode',
'SqlImageSku',
'DayOfWeek',
'BackupScheduleType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ class SqlVirtualMachine(TrackedResource):
:ivar provisioning_state: Provisioning state to track the async operation
status.
:vartype provisioning_state: str
:ivar sql_image_offer: SQL image offer. Examples include SQL2016-WS2016,
:param sql_image_offer: SQL image offer. Examples include SQL2016-WS2016,
SQL2017-WS2016.
:vartype sql_image_offer: str
:type sql_image_offer: str
:param sql_server_license_type: SQL Server license type. Possible values
include: 'PAYG', 'AHUB'
:type sql_server_license_type: str or
~azure.mgmt.sqlvirtualmachine.models.SqlServerLicenseType
:param sql_management: SQL Server Management type. Possible values
include: 'Full', 'LightWeight', 'NoAgent'
:type sql_management: str or
~azure.mgmt.sqlvirtualmachine.models.SqlManagementMode
:param sql_image_sku: SQL Server edition type. Possible values include:
'Developer', 'Express', 'Standard', 'Enterprise', 'Web'
:type sql_image_sku: str or
Expand Down Expand Up @@ -78,7 +82,6 @@ class SqlVirtualMachine(TrackedResource):
'type': {'readonly': True},
'location': {'required': True},
'provisioning_state': {'readonly': True},
'sql_image_offer': {'readonly': True},
}

_attribute_map = {
Expand All @@ -92,6 +95,7 @@ class SqlVirtualMachine(TrackedResource):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'},
'sql_server_license_type': {'key': 'properties.sqlServerLicenseType', 'type': 'str'},
'sql_management': {'key': 'properties.sqlManagement', 'type': 'str'},
'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'},
'sql_virtual_machine_group_resource_id': {'key': 'properties.sqlVirtualMachineGroupResourceId', 'type': 'str'},
'wsfc_domain_credentials': {'key': 'properties.wsfcDomainCredentials', 'type': 'WsfcDomainCredentials'},
Expand All @@ -106,8 +110,9 @@ def __init__(self, **kwargs):
self.identity = kwargs.get('identity', None)
self.virtual_machine_resource_id = kwargs.get('virtual_machine_resource_id', None)
self.provisioning_state = None
self.sql_image_offer = None
self.sql_image_offer = kwargs.get('sql_image_offer', None)
self.sql_server_license_type = kwargs.get('sql_server_license_type', None)
self.sql_management = kwargs.get('sql_management', None)
self.sql_image_sku = kwargs.get('sql_image_sku', None)
self.sql_virtual_machine_group_resource_id = kwargs.get('sql_virtual_machine_group_resource_id', None)
self.wsfc_domain_credentials = kwargs.get('wsfc_domain_credentials', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class SqlServerLicenseType(str, Enum):
ahub = "AHUB"


class SqlManagementMode(str, Enum):

full = "Full"
light_weight = "LightWeight"
no_agent = "NoAgent"


class SqlImageSku(str, Enum):

developer = "Developer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ class SqlVirtualMachine(TrackedResource):
:ivar provisioning_state: Provisioning state to track the async operation
status.
:vartype provisioning_state: str
:ivar sql_image_offer: SQL image offer. Examples include SQL2016-WS2016,
:param sql_image_offer: SQL image offer. Examples include SQL2016-WS2016,
SQL2017-WS2016.
:vartype sql_image_offer: str
:type sql_image_offer: str
:param sql_server_license_type: SQL Server license type. Possible values
include: 'PAYG', 'AHUB'
:type sql_server_license_type: str or
~azure.mgmt.sqlvirtualmachine.models.SqlServerLicenseType
:param sql_management: SQL Server Management type. Possible values
include: 'Full', 'LightWeight', 'NoAgent'
:type sql_management: str or
~azure.mgmt.sqlvirtualmachine.models.SqlManagementMode
:param sql_image_sku: SQL Server edition type. Possible values include:
'Developer', 'Express', 'Standard', 'Enterprise', 'Web'
:type sql_image_sku: str or
Expand Down Expand Up @@ -78,7 +82,6 @@ class SqlVirtualMachine(TrackedResource):
'type': {'readonly': True},
'location': {'required': True},
'provisioning_state': {'readonly': True},
'sql_image_offer': {'readonly': True},
}

_attribute_map = {
Expand All @@ -92,6 +95,7 @@ class SqlVirtualMachine(TrackedResource):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'},
'sql_server_license_type': {'key': 'properties.sqlServerLicenseType', 'type': 'str'},
'sql_management': {'key': 'properties.sqlManagement', 'type': 'str'},
'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'},
'sql_virtual_machine_group_resource_id': {'key': 'properties.sqlVirtualMachineGroupResourceId', 'type': 'str'},
'wsfc_domain_credentials': {'key': 'properties.wsfcDomainCredentials', 'type': 'WsfcDomainCredentials'},
Expand All @@ -101,13 +105,14 @@ class SqlVirtualMachine(TrackedResource):
'server_configurations_management_settings': {'key': 'properties.serverConfigurationsManagementSettings', 'type': 'ServerConfigurationsManagementSettings'},
}

def __init__(self, *, location: str, tags=None, identity=None, virtual_machine_resource_id: str=None, sql_server_license_type=None, sql_image_sku=None, sql_virtual_machine_group_resource_id: str=None, wsfc_domain_credentials=None, auto_patching_settings=None, auto_backup_settings=None, key_vault_credential_settings=None, server_configurations_management_settings=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, identity=None, virtual_machine_resource_id: str=None, sql_image_offer: str=None, sql_server_license_type=None, sql_management=None, sql_image_sku=None, sql_virtual_machine_group_resource_id: str=None, wsfc_domain_credentials=None, auto_patching_settings=None, auto_backup_settings=None, key_vault_credential_settings=None, server_configurations_management_settings=None, **kwargs) -> None:
super(SqlVirtualMachine, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.virtual_machine_resource_id = virtual_machine_resource_id
self.provisioning_state = None
self.sql_image_offer = None
self.sql_image_offer = sql_image_offer
self.sql_server_license_type = sql_server_license_type
self.sql_management = sql_management
self.sql_image_sku = sql_image_sku
self.sql_virtual_machine_group_resource_id = sql_virtual_machine_group_resource_id
self.wsfc_domain_credentials = wsfc_domain_credentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.3.0"
VERSION = "0.4.0"

1 change: 0 additions & 1 deletion sdk/sql/azure-mgmt-sqlvirtualmachine/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down