From 42c18bad3e6b448146a82c84715c1b161b575a0f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 19 Feb 2019 14:23:31 +0000 Subject: [PATCH] Generated from 8ac3ee015780aeac53d6a812e2abe5f6911a7b4c Update swagger file and examples with time zone parameter --- .../azure/mgmt/sql/models/managed_instance.py | 15 +++++++++++++++ .../mgmt/sql/models/managed_instance_py3.py | 17 ++++++++++++++++- .../mgmt/sql/models/managed_instance_update.py | 15 +++++++++++++++ .../sql/models/managed_instance_update_py3.py | 17 ++++++++++++++++- 4 files changed, 62 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py index 3cf9092c3ba2..e2e3ea06b274 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py @@ -70,6 +70,19 @@ class ManagedInstance(TrackedResource): instance. Possible values include: 'Proxy', 'Redirect', 'Default' :type proxy_override: str or ~azure.mgmt.sql.models.ManagedInstanceProxyOverride + :param timezone_id: Id of the timezone. Allowed values are timezones + supported by Windows. + Winodws keeps details on supported timezones, including the id, in + registry under + KEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time + Zones. + You can get those registry values via SQL Server by querying SELECT name + AS timezone_id FROM sys.time_zone_info. + List of Ids can also be obtained by executing + [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + An example of valid timezone id is "Pacific Standard Time" or "W. Europe + Standard Time". + :type timezone_id: str """ _validation = { @@ -103,6 +116,7 @@ class ManagedInstance(TrackedResource): 'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'}, 'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'}, 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, + 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -122,3 +136,4 @@ def __init__(self, **kwargs): self.dns_zone_partner = kwargs.get('dns_zone_partner', None) self.public_data_endpoint_enabled = kwargs.get('public_data_endpoint_enabled', None) self.proxy_override = kwargs.get('proxy_override', None) + self.timezone_id = kwargs.get('timezone_id', None) diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py index f73e59690569..8ecadb4d960e 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py @@ -70,6 +70,19 @@ class ManagedInstance(TrackedResource): instance. Possible values include: 'Proxy', 'Redirect', 'Default' :type proxy_override: str or ~azure.mgmt.sql.models.ManagedInstanceProxyOverride + :param timezone_id: Id of the timezone. Allowed values are timezones + supported by Windows. + Winodws keeps details on supported timezones, including the id, in + registry under + KEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time + Zones. + You can get those registry values via SQL Server by querying SELECT name + AS timezone_id FROM sys.time_zone_info. + List of Ids can also be obtained by executing + [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + An example of valid timezone id is "Pacific Standard Time" or "W. Europe + Standard Time". + :type timezone_id: str """ _validation = { @@ -103,9 +116,10 @@ class ManagedInstance(TrackedResource): 'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'}, 'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'}, 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, + 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, identity=None, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, proxy_override=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, identity=None, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, proxy_override=None, timezone_id: str=None, **kwargs) -> None: super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs) self.identity = identity self.sku = sku @@ -122,3 +136,4 @@ def __init__(self, *, location: str, tags=None, identity=None, sku=None, adminis self.dns_zone_partner = dns_zone_partner self.public_data_endpoint_enabled = public_data_endpoint_enabled self.proxy_override = proxy_override + self.timezone_id = timezone_id diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py index 8a7c5d0bb010..7e7095a35d29 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py @@ -55,6 +55,19 @@ class ManagedInstanceUpdate(Model): instance. Possible values include: 'Proxy', 'Redirect', 'Default' :type proxy_override: str or ~azure.mgmt.sql.models.ManagedInstanceProxyOverride + :param timezone_id: Id of the timezone. Allowed values are timezones + supported by Windows. + Winodws keeps details on supported timezones, including the id, in + registry under + KEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time + Zones. + You can get those registry values via SQL Server by querying SELECT name + AS timezone_id FROM sys.time_zone_info. + List of Ids can also be obtained by executing + [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + An example of valid timezone id is "Pacific Standard Time" or "W. Europe + Standard Time". + :type timezone_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -80,6 +93,7 @@ class ManagedInstanceUpdate(Model): 'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'}, 'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'}, 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, + 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } @@ -99,4 +113,5 @@ def __init__(self, **kwargs): self.dns_zone_partner = kwargs.get('dns_zone_partner', None) self.public_data_endpoint_enabled = kwargs.get('public_data_endpoint_enabled', None) self.proxy_override = kwargs.get('proxy_override', None) + self.timezone_id = kwargs.get('timezone_id', None) self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update_py3.py b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update_py3.py index 7dc9f5e5fa1d..044ca87343d9 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update_py3.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update_py3.py @@ -55,6 +55,19 @@ class ManagedInstanceUpdate(Model): instance. Possible values include: 'Proxy', 'Redirect', 'Default' :type proxy_override: str or ~azure.mgmt.sql.models.ManagedInstanceProxyOverride + :param timezone_id: Id of the timezone. Allowed values are timezones + supported by Windows. + Winodws keeps details on supported timezones, including the id, in + registry under + KEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time + Zones. + You can get those registry values via SQL Server by querying SELECT name + AS timezone_id FROM sys.time_zone_info. + List of Ids can also be obtained by executing + [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + An example of valid timezone id is "Pacific Standard Time" or "W. Europe + Standard Time". + :type timezone_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -80,10 +93,11 @@ class ManagedInstanceUpdate(Model): 'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'}, 'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'}, 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, + 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, proxy_override=None, tags=None, **kwargs) -> None: + def __init__(self, *, sku=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type: str=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, proxy_override=None, timezone_id: str=None, tags=None, **kwargs) -> None: super(ManagedInstanceUpdate, self).__init__(**kwargs) self.sku = sku self.fully_qualified_domain_name = None @@ -99,4 +113,5 @@ def __init__(self, *, sku=None, administrator_login: str=None, administrator_log self.dns_zone_partner = dns_zone_partner self.public_data_endpoint_enabled = public_data_endpoint_enabled self.proxy_override = proxy_override + self.timezone_id = timezone_id self.tags = tags