Skip to content

Commit

Permalink
[AutoPR sql/resource-manager] Updated managed instance swagger and ex…
Browse files Browse the repository at this point in the history
…amples (#4290)

* Generated from 397e372b335b8b28c566beae751fa5d83e008345

Swagger change for Managed Instance

*Update of ProxyOverride property for Managed Instance
*Update of examples

* Generated from b7c9dedf9adce2cc6594c33d8b74913ebc6a9c08

Update managedInstances.json
  • Loading branch information
AutorestCI authored Feb 8, 2019
1 parent f6ef20b commit 8924f99
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 10 deletions.
2 changes: 2 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@
ReadOnlyEndpointFailoverPolicy,
FailoverGroupReplicationRole,
IdentityType,
ManagedInstanceProxyOverride,
OperationOrigin,
SyncAgentState,
SyncMemberDbType,
Expand Down Expand Up @@ -694,6 +695,7 @@
'ReadOnlyEndpointFailoverPolicy',
'FailoverGroupReplicationRole',
'IdentityType',
'ManagedInstanceProxyOverride',
'OperationOrigin',
'SyncAgentState',
'SyncMemberDbType',
Expand Down
6 changes: 4 additions & 2 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ class ManagedInstance(TrackedResource):
:param public_data_endpoint_enabled: Whether or not the public data
endpoint is enabled.
:type public_data_endpoint_enabled: bool
: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
"""

_validation = {
Expand Down
8 changes: 5 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ class ManagedInstance(TrackedResource):
:param public_data_endpoint_enabled: Whether or not the public data
endpoint is enabled.
:type public_data_endpoint_enabled: bool
: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
"""

_validation = {
Expand Down Expand Up @@ -103,7 +105,7 @@ class ManagedInstance(TrackedResource):
'proxy_override': {'key': 'properties.proxyOverride', '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: str=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, **kwargs) -> None:
super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.sku = sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ class ManagedInstanceUpdate(Model):
:param public_data_endpoint_enabled: Whether or not the public data
endpoint is enabled.
:type public_data_endpoint_enabled: bool
: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 tags: Resource tags.
:type tags: dict[str, str]
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ class ManagedInstanceUpdate(Model):
:param public_data_endpoint_enabled: Whether or not the public data
endpoint is enabled.
:type public_data_endpoint_enabled: bool
: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 tags: Resource tags.
:type tags: dict[str, str]
"""
Expand Down Expand Up @@ -81,7 +83,7 @@ class ManagedInstanceUpdate(Model):
'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: str=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, tags=None, **kwargs) -> None:
super(ManagedInstanceUpdate, self).__init__(**kwargs)
self.sku = sku
self.fully_qualified_domain_name = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,13 @@ class IdentityType(str, Enum):
system_assigned = "SystemAssigned"


class ManagedInstanceProxyOverride(str, Enum):

proxy = "Proxy"
redirect = "Redirect"
default = "Default"


class OperationOrigin(str, Enum):

user = "user"
Expand Down

0 comments on commit 8924f99

Please sign in to comment.