Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sql/resource-manager] Update managedInstances.json #4267

Merged
merged 2 commits into from
Jan 30, 2019
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
19 changes: 0 additions & 19 deletions azure-mgmt-sql/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
9 changes: 9 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 @@ -63,6 +63,11 @@ class ManagedInstance(TrackedResource):
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
: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
"""

_validation = {
Expand Down Expand Up @@ -94,6 +99,8 @@ class ManagedInstance(TrackedResource):
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'},
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -111,3 +118,5 @@ def __init__(self, **kwargs):
self.collation = kwargs.get('collation', None)
self.dns_zone = None
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)
11 changes: 10 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 @@ -63,6 +63,11 @@ class ManagedInstance(TrackedResource):
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
: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
"""

_validation = {
Expand Down Expand Up @@ -94,9 +99,11 @@ class ManagedInstance(TrackedResource):
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'},
'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, **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: str=None, **kwargs) -> None:
super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.sku = sku
Expand All @@ -111,3 +118,5 @@ def __init__(self, *, location: str, tags=None, identity=None, sku=None, adminis
self.collation = collation
self.dns_zone = None
self.dns_zone_partner = dns_zone_partner
self.public_data_endpoint_enabled = public_data_endpoint_enabled
self.proxy_override = proxy_override
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class ManagedInstanceUpdate(Model):
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
: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 tags: Resource tags.
:type tags: dict[str, str]
"""
Expand All @@ -71,6 +76,8 @@ class ManagedInstanceUpdate(Model):
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'},
'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -88,4 +95,6 @@ def __init__(self, **kwargs):
self.collation = kwargs.get('collation', None)
self.dns_zone = None
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.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class ManagedInstanceUpdate(Model):
:param dns_zone_partner: The resource id of another managed instance whose
DNS zone this managed instance will share after creation.
:type dns_zone_partner: str
: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 tags: Resource tags.
:type tags: dict[str, str]
"""
Expand All @@ -71,10 +76,12 @@ class ManagedInstanceUpdate(Model):
'collation': {'key': 'properties.collation', 'type': 'str'},
'dns_zone': {'key': 'properties.dnsZone', 'type': 'str'},
'dns_zone_partner': {'key': 'properties.dnsZonePartner', 'type': 'str'},
'public_data_endpoint_enabled': {'key': 'properties.publicDataEndpointEnabled', 'type': 'bool'},
'proxy_override': {'key': 'properties.proxyOverride', '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, 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: str=None, tags=None, **kwargs) -> None:
super(ManagedInstanceUpdate, self).__init__(**kwargs)
self.sku = sku
self.fully_qualified_domain_name = None
Expand All @@ -88,4 +95,6 @@ def __init__(self, *, sku=None, administrator_login: str=None, administrator_log
self.collation = collation
self.dns_zone = None
self.dns_zone_partner = dns_zone_partner
self.public_data_endpoint_enabled = public_data_endpoint_enabled
self.proxy_override = proxy_override
self.tags = tags