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 #4020

Merged
merged 3 commits into from
Dec 7, 2018
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
11 changes: 11 additions & 0 deletions azure-mgmt-sqlvirtualmachine/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
Release History
===============

0.2.0 (2018-12-07)
++++++++++++++++++

**Features**

- Model SqlStorageUpdateSettings has a new parameter starting_device_id

**Breaking changes**

- Model AdditionalFeaturesServerConfigurations no longer has parameter backup_permissions_for_azure_backup_svc

0.1.0 (2018-11-27)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
from .sql_virtual_machine_paged import SqlVirtualMachinePaged
from .sql_virtual_machine_management_client_enums import (
OperationOrigin,
SqlImageSku,
SqlVmGroupImageSku,
ScaleType,
ClusterManagerType,
ClusterConfiguration,
IdentityType,
SqlServerLicenseType,
SqlImageSku,
DayOfWeek,
BackupScheduleType,
FullBackupFrequencyType,
Expand Down Expand Up @@ -106,12 +107,13 @@
'SqlVirtualMachineGroupPaged',
'SqlVirtualMachinePaged',
'OperationOrigin',
'SqlImageSku',
'SqlVmGroupImageSku',
'ScaleType',
'ClusterManagerType',
'ClusterConfiguration',
'IdentityType',
'SqlServerLicenseType',
'SqlImageSku',
'DayOfWeek',
'BackupScheduleType',
'FullBackupFrequencyType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@ class AdditionalFeaturesServerConfigurations(Model):
:param is_rservices_enabled: Enable or disable R services (SQL 2016
onwards).
:type is_rservices_enabled: bool
:param backup_permissions_for_azure_backup_svc: Enable or disable Azure
Backup service.
:type backup_permissions_for_azure_backup_svc: bool
"""

_attribute_map = {
'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'},
'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs)
self.is_rservices_enabled = kwargs.get('is_rservices_enabled', None)
self.backup_permissions_for_azure_backup_svc = kwargs.get('backup_permissions_for_azure_backup_svc', None)
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@ class AdditionalFeaturesServerConfigurations(Model):
:param is_rservices_enabled: Enable or disable R services (SQL 2016
onwards).
:type is_rservices_enabled: bool
:param backup_permissions_for_azure_backup_svc: Enable or disable Azure
Backup service.
:type backup_permissions_for_azure_backup_svc: bool
"""

_attribute_map = {
'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'},
'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'},
}

def __init__(self, *, is_rservices_enabled: bool=None, backup_permissions_for_azure_backup_svc: bool=None, **kwargs) -> None:
def __init__(self, *, is_rservices_enabled: bool=None, **kwargs) -> None:
super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs)
self.is_rservices_enabled = is_rservices_enabled
self.backup_permissions_for_azure_backup_svc = backup_permissions_for_azure_backup_svc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoadBalancerConfiguration(Model):
~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress
:param public_ip_address_resource_id: Resource id of the public IP.
:type public_ip_address_resource_id: str
:param load_balancer_resource_id: Subnet used to include private IP.
:param load_balancer_resource_id: Resource id of the load balancer.
:type load_balancer_resource_id: str
:param probe_port: Probe port.
:type probe_port: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoadBalancerConfiguration(Model):
~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress
:param public_ip_address_resource_id: Resource id of the public IP.
:type public_ip_address_resource_id: str
:param load_balancer_resource_id: Subnet used to include private IP.
:param load_balancer_resource_id: Resource id of the load balancer.
:type load_balancer_resource_id: str
:param probe_port: Probe port.
:type probe_port: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ class SqlStorageUpdateSettings(Model):
Possible values include: 'NEW', 'EXTEND', 'ADD'
:type disk_configuration_type: str or
~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType
:param starting_device_id: Device id of the first disk to be updated.
:type starting_device_id: int
"""

_attribute_map = {
'disk_count': {'key': 'diskCount', 'type': 'int'},
'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'},
'starting_device_id': {'key': 'startingDeviceId', 'type': 'int'},
}

def __init__(self, **kwargs):
super(SqlStorageUpdateSettings, self).__init__(**kwargs)
self.disk_count = kwargs.get('disk_count', None)
self.disk_configuration_type = kwargs.get('disk_configuration_type', None)
self.starting_device_id = kwargs.get('starting_device_id', None)
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ class SqlStorageUpdateSettings(Model):
Possible values include: 'NEW', 'EXTEND', 'ADD'
:type disk_configuration_type: str or
~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType
:param starting_device_id: Device id of the first disk to be updated.
:type starting_device_id: int
"""

_attribute_map = {
'disk_count': {'key': 'diskCount', 'type': 'int'},
'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'},
'starting_device_id': {'key': 'startingDeviceId', 'type': 'int'},
}

def __init__(self, *, disk_count: int=None, disk_configuration_type=None, **kwargs) -> None:
def __init__(self, *, disk_count: int=None, disk_configuration_type=None, starting_device_id: int=None, **kwargs) -> None:
super(SqlStorageUpdateSettings, self).__init__(**kwargs)
self.disk_count = disk_count
self.disk_configuration_type = disk_configuration_type
self.starting_device_id = starting_device_id
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class SqlVirtualMachineGroup(TrackedResource):
SQL2016-WS2016, SQL2017-WS2016.
:type sql_image_offer: str
:param sql_image_sku: SQL image sku. Possible values include: 'Developer',
'Express', 'Standard', 'Enterprise', 'Web'
'Enterprise'
:type sql_image_sku: str or
~azure.mgmt.sqlvirtualmachine.models.SqlImageSku
~azure.mgmt.sqlvirtualmachine.models.SqlVmGroupImageSku
:ivar scale_type: Scale type. Possible values include: 'HA'
:vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType
:ivar cluster_manager_type: Type of cluster manager: Windows Server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class SqlVirtualMachineGroup(TrackedResource):
SQL2016-WS2016, SQL2017-WS2016.
:type sql_image_offer: str
:param sql_image_sku: SQL image sku. Possible values include: 'Developer',
'Express', 'Standard', 'Enterprise', 'Web'
'Enterprise'
:type sql_image_sku: str or
~azure.mgmt.sqlvirtualmachine.models.SqlImageSku
~azure.mgmt.sqlvirtualmachine.models.SqlVmGroupImageSku
:ivar scale_type: Scale type. Possible values include: 'HA'
:vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType
:ivar cluster_manager_type: Type of cluster manager: Windows Server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ class OperationOrigin(str, Enum):
system = "system"


class SqlImageSku(str, Enum):
class SqlVmGroupImageSku(str, Enum):

developer = "Developer"
express = "Express"
standard = "Standard"
enterprise = "Enterprise"
web = "Web"


class ScaleType(str, Enum):
Expand Down Expand Up @@ -53,6 +50,15 @@ class SqlServerLicenseType(str, Enum):
ahub = "AHUB"


class SqlImageSku(str, Enum):

developer = "Developer"
express = "Express"
standard = "Standard"
enterprise = "Enterprise"
web = "Web"


class DayOfWeek(str, Enum):

monday = "Monday"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.1.0"
VERSION = "0.2.0"