Skip to content

Commit

Permalink
CodeGen from PR 15420 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e4ff5f066694e942b9a4603cc36a154ab5e97c9d into 7cc0a47
  • Loading branch information
SDKAuto committed Jul 28, 2021
1 parent ef54724 commit c4fda41
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 87 deletions.
2 changes: 1 addition & 1 deletion sdk/rdbms/azure-mgmt-rdbms/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "1a22ee0be121e33f98b6290cc737f613f2e1a2d8",
"commit": "73372ab67a023967d1152f3873a9901d0f890973",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/postgresql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/postgresql/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from ._models_py3 import FlexibleServerEditionCapability
from ._models_py3 import HighAvailability
from ._models_py3 import HyperscaleNodeEditionCapability
from ._models_py3 import Identity
from ._models_py3 import MaintenanceWindow
from ._models_py3 import NameAvailability
from ._models_py3 import NameAvailabilityRequest
Expand Down Expand Up @@ -63,7 +62,6 @@
from ._models import FlexibleServerEditionCapability # type: ignore
from ._models import HighAvailability # type: ignore
from ._models import HyperscaleNodeEditionCapability # type: ignore
from ._models import Identity # type: ignore
from ._models import MaintenanceWindow # type: ignore
from ._models import NameAvailability # type: ignore
from ._models import NameAvailabilityRequest # type: ignore
Expand Down Expand Up @@ -120,7 +118,6 @@
'FlexibleServerEditionCapability',
'HighAvailability',
'HyperscaleNodeEditionCapability',
'Identity',
'MaintenanceWindow',
'NameAvailability',
'NameAvailabilityRequest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,41 +674,6 @@ def __init__(
self.status = None


class Identity(msrest.serialization.Model):
"""Identity for the resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar principal_id: The principal ID of resource identity.
:vartype principal_id: str
:ivar tenant_id: The tenant ID of resource.
:vartype tenant_id: str
:param type: The identity type. The only acceptable values to pass in are None and
"SystemAssigned". The default value is None.
:type type: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(Identity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = kwargs.get('type', None)


class MaintenanceWindow(msrest.serialization.Model):
"""Maintenance window properties of a server.
Expand Down Expand Up @@ -1066,8 +1031,6 @@ class Server(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
:param identity: The Azure Active Directory identity of the server.
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
:param sku: The SKU (pricing tier) of the server.
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:ivar system_data: The system metadata relating to this resource.
Expand Down Expand Up @@ -1129,7 +1092,6 @@ class Server(TrackedResource):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'Identity'},
'sku': {'key': 'sku', 'type': 'Sku'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
Expand All @@ -1155,7 +1117,6 @@ def __init__(
**kwargs
):
super(Server, self).__init__(**kwargs)
self.identity = kwargs.get('identity', None)
self.sku = kwargs.get('sku', None)
self.system_data = None
self.administrator_login = kwargs.get('administrator_login', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,43 +703,6 @@ def __init__(
self.status = None


class Identity(msrest.serialization.Model):
"""Identity for the resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar principal_id: The principal ID of resource identity.
:vartype principal_id: str
:ivar tenant_id: The tenant ID of resource.
:vartype tenant_id: str
:param type: The identity type. The only acceptable values to pass in are None and
"SystemAssigned". The default value is None.
:type type: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(
self,
*,
type: Optional[str] = None,
**kwargs
):
super(Identity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = type


class MaintenanceWindow(msrest.serialization.Model):
"""Maintenance window properties of a server.
Expand Down Expand Up @@ -1124,8 +1087,6 @@ class Server(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives.
:type location: str
:param identity: The Azure Active Directory identity of the server.
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
:param sku: The SKU (pricing tier) of the server.
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:ivar system_data: The system metadata relating to this resource.
Expand Down Expand Up @@ -1187,7 +1148,6 @@ class Server(TrackedResource):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'identity': {'key': 'identity', 'type': 'Identity'},
'sku': {'key': 'sku', 'type': 'Sku'},
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
Expand All @@ -1213,7 +1173,6 @@ def __init__(
*,
location: str,
tags: Optional[Dict[str, str]] = None,
identity: Optional["Identity"] = None,
sku: Optional["Sku"] = None,
administrator_login: Optional[str] = None,
administrator_login_password: Optional[str] = None,
Expand All @@ -1231,7 +1190,6 @@ def __init__(
**kwargs
):
super(Server, self).__init__(tags=tags, location=location, **kwargs)
self.identity = identity
self.sku = sku
self.system_data = None
self.administrator_login = administrator_login
Expand Down

0 comments on commit c4fda41

Please sign in to comment.