Skip to content
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
15 changes: 15 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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):
Expand All @@ -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)
17 changes: 16 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
Expand All @@ -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
15 changes: 15 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
"""
Expand All @@ -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}'},
}

Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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]
"""
Expand All @@ -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
Expand All @@ -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