Skip to content

Commit

Permalink
Generated from 3892c33f2003ff05365839e7ebb356dec18687c7 (#2627)
Browse files Browse the repository at this point in the history
Fixed syntax error in example
  • Loading branch information
AutorestCI authored May 25, 2018
1 parent 3110473 commit 044eafa
Show file tree
Hide file tree
Showing 18 changed files with 82 additions and 72 deletions.
18 changes: 9 additions & 9 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# --------------------------------------------------------------------------

try:
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
from .proxy_resource_py3 import ProxyResource
from .recoverable_database_py3 import RecoverableDatabase
from .restorable_dropped_database_py3 import RestorableDroppedDatabase
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .proxy_resource_py3 import ProxyResource
from .check_name_availability_request_py3 import CheckNameAvailabilityRequest
from .check_name_availability_response_py3 import CheckNameAvailabilityResponse
from .server_connection_policy_py3 import ServerConnectionPolicy
Expand Down Expand Up @@ -145,11 +145,11 @@
from .instance_failover_group_py3 import InstanceFailoverGroup
from .backup_short_term_retention_policy_py3 import BackupShortTermRetentionPolicy
except (SyntaxError, ImportError):
from .resource import Resource
from .tracked_resource import TrackedResource
from .proxy_resource import ProxyResource
from .recoverable_database import RecoverableDatabase
from .restorable_dropped_database import RestorableDroppedDatabase
from .tracked_resource import TrackedResource
from .resource import Resource
from .proxy_resource import ProxyResource
from .check_name_availability_request import CheckNameAvailabilityRequest
from .check_name_availability_response import CheckNameAvailabilityResponse
from .server_connection_policy import ServerConnectionPolicy
Expand Down Expand Up @@ -409,11 +409,11 @@
)

__all__ = [
'Resource',
'TrackedResource',
'ProxyResource',
'RecoverableDatabase',
'RestorableDroppedDatabase',
'TrackedResource',
'Resource',
'ProxyResource',
'CheckNameAvailabilityRequest',
'CheckNameAvailabilityResponse',
'ServerConnectionPolicy',
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Database(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku: The name and tier of the SKU.
:type sku: ~azure.mgmt.sql.models.Sku
:ivar kind: Kind of database. This is metadata used for the Azure portal
Expand Down Expand Up @@ -171,8 +171,8 @@ class Database(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'kind': {'key': 'kind', 'type': 'str'},
'managed_by': {'key': 'managedBy', 'type': 'str'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/database_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Database(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku: The name and tier of the SKU.
:type sku: ~azure.mgmt.sql.models.Sku
:ivar kind: Kind of database. This is metadata used for the Azure portal
Expand Down Expand Up @@ -171,8 +171,8 @@ class Database(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'kind': {'key': 'kind', 'type': 'str'},
'managed_by': {'key': 'managedBy', 'type': 'str'},
Expand Down Expand Up @@ -205,7 +205,7 @@ class Database(TrackedResource):
}

def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, **kwargs) -> None:
super(Database, self).__init__(tags=tags, location=location, **kwargs)
super(Database, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.kind = None
self.managed_by = None
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ElasticPool(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku:
:type sku: ~azure.mgmt.sql.models.Sku
:ivar kind: Kind of elastic pool. This is metadata used for the Azure
Expand Down Expand Up @@ -71,8 +71,8 @@ class ElasticPool(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'kind': {'key': 'kind', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ElasticPool(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku:
:type sku: ~azure.mgmt.sql.models.Sku
:ivar kind: Kind of elastic pool. This is metadata used for the Azure
Expand Down Expand Up @@ -71,8 +71,8 @@ class ElasticPool(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'kind': {'key': 'kind', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
Expand All @@ -84,7 +84,7 @@ class ElasticPool(TrackedResource):
}

def __init__(self, *, location: str, tags=None, sku=None, max_size_bytes: int=None, per_database_settings=None, zone_redundant: bool=None, license_type=None, **kwargs) -> None:
super(ElasticPool, self).__init__(tags=tags, location=location, **kwargs)
super(ElasticPool, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.kind = None
self.state = None
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/job_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class JobAgent(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku: The name and tier of the SKU.
:type sku: ~azure.mgmt.sql.models.Sku
:param database_id: Required. Resource ID of the database to store job
Expand All @@ -53,8 +53,8 @@ class JobAgent(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'database_id': {'key': 'properties.databaseId', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/job_agent_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class JobAgent(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param sku: The name and tier of the SKU.
:type sku: ~azure.mgmt.sql.models.Sku
:param database_id: Required. Resource ID of the database to store job
Expand All @@ -53,15 +53,15 @@ class JobAgent(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'database_id': {'key': 'properties.databaseId', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
}

def __init__(self, *, location: str, database_id: str, tags=None, sku=None, **kwargs) -> None:
super(JobAgent, self).__init__(tags=tags, location=location, **kwargs)
super(JobAgent, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.database_id = database_id
self.state = None
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ManagedDatabase(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param collation: Collation of the managed database.
:type collation: str
:ivar status: Status for the database. Possible values include: 'Online',
Expand Down Expand Up @@ -91,8 +91,8 @@ class ManagedDatabase(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_database_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ManagedDatabase(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param collation: Collation of the managed database.
:type collation: str
:ivar status: Status for the database. Possible values include: 'Online',
Expand Down Expand Up @@ -91,8 +91,8 @@ class ManagedDatabase(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'collation': {'key': 'properties.collation', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
Expand All @@ -108,7 +108,7 @@ class ManagedDatabase(TrackedResource):
}

def __init__(self, *, location: str, tags=None, collation: str=None, restore_point_in_time=None, catalog_collation=None, create_mode=None, storage_container_uri: str=None, source_database_id: str=None, storage_container_sas_token: str=None, **kwargs) -> None:
super(ManagedDatabase, self).__init__(tags=tags, location=location, **kwargs)
super(ManagedDatabase, self).__init__(location=location, tags=tags, **kwargs)
self.collation = collation
self.status = None
self.creation_date = None
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ManagedInstance(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param identity: The Azure Active Directory identity of the managed
instance.
:type identity: ~azure.mgmt.sql.models.ResourceIdentity
Expand Down Expand Up @@ -71,8 +71,8 @@ class ManagedInstance(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'sku': {'key': 'sku', 'type': 'Sku'},
'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class ManagedInstance(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param identity: The Azure Active Directory identity of the managed
instance.
:type identity: ~azure.mgmt.sql.models.ResourceIdentity
Expand Down Expand Up @@ -71,8 +71,8 @@ class ManagedInstance(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'sku': {'key': 'sku', 'type': 'Sku'},
'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'},
Expand All @@ -86,7 +86,7 @@ class ManagedInstance(TrackedResource):
}

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, **kwargs) -> None:
super(ManagedInstance, self).__init__(tags=tags, location=location, **kwargs)
super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.sku = sku
self.fully_qualified_domain_name = None
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-sql/azure/mgmt/sql/models/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Server(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param identity: The Azure Active Directory identity of the server.
:type identity: ~azure.mgmt.sql.models.ResourceIdentity
:ivar kind: Kind of sql server. This is metadata used for the Azure portal
Expand Down Expand Up @@ -64,8 +64,8 @@ class Server(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'kind': {'key': 'kind', 'type': 'str'},
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/server_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Server(TrackedResource):
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param identity: The Azure Active Directory identity of the server.
:type identity: ~azure.mgmt.sql.models.ResourceIdentity
:ivar kind: Kind of sql server. This is metadata used for the Azure portal
Expand Down Expand Up @@ -64,8 +64,8 @@ class Server(TrackedResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'ResourceIdentity'},
'kind': {'key': 'kind', 'type': 'str'},
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
Expand All @@ -76,7 +76,7 @@ class Server(TrackedResource):
}

def __init__(self, *, location: str, tags=None, identity=None, administrator_login: str=None, administrator_login_password: str=None, version: str=None, **kwargs) -> None:
super(Server, self).__init__(tags=tags, location=location, **kwargs)
super(Server, self).__init__(location=location, tags=tags, **kwargs)
self.identity = identity
self.kind = None
self.administrator_login = administrator_login
Expand Down
Loading

0 comments on commit 044eafa

Please sign in to comment.