diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py b/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py index 3f32d3e0dc2d..b5051a22b7d6 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py @@ -414,6 +414,7 @@ IdentityType, ManagedServerCreateMode, ManagedInstanceLicenseType, + ManagedInstanceProxyOverride, OperationOrigin, SyncAgentState, SyncMemberDbType, @@ -712,6 +713,7 @@ 'IdentityType', 'ManagedServerCreateMode', 'ManagedInstanceLicenseType', + 'ManagedInstanceProxyOverride', 'OperationOrigin', 'SyncAgentState', 'SyncMemberDbType', 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 a3f070a69d6e..309df9ce615a 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py @@ -86,8 +86,10 @@ class ManagedInstance(TrackedResource): :param restore_point_in_time: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. :type restore_point_in_time: datetime - :param proxy_override: Proxy override of the managed instance. - :type proxy_override: str + :param proxy_override: Connection type used for connecting to the + 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. Windows keeps details on supported timezones, including the id, in 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 38dc3f8d34e8..01bfe2801b29 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 @@ -86,8 +86,10 @@ class ManagedInstance(TrackedResource): :param restore_point_in_time: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. :type restore_point_in_time: datetime - :param proxy_override: Proxy override of the managed instance. - :type proxy_override: str + :param proxy_override: Connection type used for connecting to the + 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. Windows keeps details on supported timezones, including the id, in @@ -144,7 +146,7 @@ class ManagedInstance(TrackedResource): 'instance_pool_id': {'key': 'properties.instancePoolId', '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: str=None, timezone_id: str=None, instance_pool_id: 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, **kwargs) -> None: super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs) self.identity = identity self.sku = sku 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 86e250bc3393..d4d9bf3ba75d 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 @@ -70,8 +70,10 @@ class ManagedInstanceUpdate(Model): :param restore_point_in_time: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. :type restore_point_in_time: datetime - :param proxy_override: Proxy override of the managed instance. - :type proxy_override: str + :param proxy_override: Connection type used for connecting to the + 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. Windows keeps details on supported timezones, including the id, in 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 68f2ee53cc18..d18fe0b5da00 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 @@ -70,8 +70,10 @@ class ManagedInstanceUpdate(Model): :param restore_point_in_time: Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. :type restore_point_in_time: datetime - :param proxy_override: Proxy override of the managed instance. - :type proxy_override: str + :param proxy_override: Connection type used for connecting to the + 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. Windows keeps details on supported timezones, including the id, in @@ -121,7 +123,7 @@ class ManagedInstanceUpdate(Model): '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: str=None, timezone_id: str=None, instance_pool_id: 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, tags=None, **kwargs) -> None: super(ManagedInstanceUpdate, self).__init__(**kwargs) self.sku = sku self.managed_instance_create_mode = managed_instance_create_mode diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/sql_management_client_enums.py b/azure-mgmt-sql/azure/mgmt/sql/models/sql_management_client_enums.py index 50fe30422cb7..d572c8c0bb0f 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/sql_management_client_enums.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/sql_management_client_enums.py @@ -337,6 +337,13 @@ class ManagedInstanceLicenseType(str, Enum): base_price = "BasePrice" +class ManagedInstanceProxyOverride(str, Enum): + + proxy = "Proxy" + redirect = "Redirect" + default = "Default" + + class OperationOrigin(str, Enum): user = "user"