Skip to content

Commit

Permalink
Generated from 5ba703162c35b655a6f855725dad524cf1d4e49a
Browse files Browse the repository at this point in the history
Update swagger specs for Managed Instance
 - Add optional parameter maintenance configuration id.
  • Loading branch information
SDK Automation committed May 10, 2020
1 parent d21face commit 6c856f7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5156,6 +5156,9 @@ class ManagedInstance(TrackedResource):
:param instance_pool_id: The Id of the instance pool this managed server
belongs to.
:type instance_pool_id: str
:param maintenance_configuration_id: Specifies maintenance configuration
id to apply to this managed instance.
:type maintenance_configuration_id: str
:param minimal_tls_version: Minimal TLS version. Allowed values: 'None',
'1.0', '1.1', '1.2'
:type minimal_tls_version: str
Expand Down Expand Up @@ -5197,6 +5200,7 @@ class ManagedInstance(TrackedResource):
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'},
'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'},
}

Expand All @@ -5222,6 +5226,7 @@ def __init__(self, **kwargs):
self.proxy_override = kwargs.get('proxy_override', None)
self.timezone_id = kwargs.get('timezone_id', None)
self.instance_pool_id = kwargs.get('instance_pool_id', None)
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)
self.minimal_tls_version = kwargs.get('minimal_tls_version', None)


Expand Down Expand Up @@ -5797,6 +5802,9 @@ class ManagedInstanceUpdate(Model):
:param instance_pool_id: The Id of the instance pool this managed server
belongs to.
:type instance_pool_id: str
:param maintenance_configuration_id: Specifies maintenance configuration
id to apply to this managed instance.
:type maintenance_configuration_id: str
:param minimal_tls_version: Minimal TLS version. Allowed values: 'None',
'1.0', '1.1', '1.2'
:type minimal_tls_version: str
Expand Down Expand Up @@ -5830,6 +5838,7 @@ class ManagedInstanceUpdate(Model):
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'},
'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}
Expand All @@ -5855,6 +5864,7 @@ def __init__(self, **kwargs):
self.proxy_override = kwargs.get('proxy_override', None)
self.timezone_id = kwargs.get('timezone_id', None)
self.instance_pool_id = kwargs.get('instance_pool_id', None)
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)
self.minimal_tls_version = kwargs.get('minimal_tls_version', None)
self.tags = kwargs.get('tags', None)

Expand Down
14 changes: 12 additions & 2 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5156,6 +5156,9 @@ class ManagedInstance(TrackedResource):
:param instance_pool_id: The Id of the instance pool this managed server
belongs to.
:type instance_pool_id: str
:param maintenance_configuration_id: Specifies maintenance configuration
id to apply to this managed instance.
:type maintenance_configuration_id: str
:param minimal_tls_version: Minimal TLS version. Allowed values: 'None',
'1.0', '1.1', '1.2'
:type minimal_tls_version: str
Expand Down Expand Up @@ -5197,10 +5200,11 @@ class ManagedInstance(TrackedResource):
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'},
'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'},
}

def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=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, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, minimal_tls_version: str=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=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, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, maintenance_configuration_id: str=None, minimal_tls_version: str=None, **kwargs) -> None:
super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.sku = sku
Expand All @@ -5222,6 +5226,7 @@ def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed
self.proxy_override = proxy_override
self.timezone_id = timezone_id
self.instance_pool_id = instance_pool_id
self.maintenance_configuration_id = maintenance_configuration_id
self.minimal_tls_version = minimal_tls_version


Expand Down Expand Up @@ -5797,6 +5802,9 @@ class ManagedInstanceUpdate(Model):
:param instance_pool_id: The Id of the instance pool this managed server
belongs to.
:type instance_pool_id: str
:param maintenance_configuration_id: Specifies maintenance configuration
id to apply to this managed instance.
:type maintenance_configuration_id: str
:param minimal_tls_version: Minimal TLS version. Allowed values: 'None',
'1.0', '1.1', '1.2'
:type minimal_tls_version: str
Expand Down Expand Up @@ -5830,11 +5838,12 @@ class ManagedInstanceUpdate(Model):
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'},
'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=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, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, minimal_tls_version: str=None, tags=None, **kwargs) -> None:
def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=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, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, maintenance_configuration_id: str=None, minimal_tls_version: str=None, tags=None, **kwargs) -> None:
super(ManagedInstanceUpdate, self).__init__(**kwargs)
self.sku = sku
self.managed_instance_create_mode = managed_instance_create_mode
Expand All @@ -5855,6 +5864,7 @@ def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator
self.proxy_override = proxy_override
self.timezone_id = timezone_id
self.instance_pool_id = instance_pool_id
self.maintenance_configuration_id = maintenance_configuration_id
self.minimal_tls_version = minimal_tls_version
self.tags = tags

Expand Down

0 comments on commit 6c856f7

Please sign in to comment.