Skip to content

Commit bdab29a

Browse files
author
SDKAuto
committed
CodeGen from PR 16207 in Azure/azure-rest-api-specs
Merge b1a793fd9dd9b427efd4297ff926c7a0cc9c3a53 into 0e16aa6
1 parent b9211fb commit bdab29a

File tree

7 files changed

+23
-94
lines changed

7 files changed

+23
-94
lines changed

sdk/rdbms/azure-mgmt-rdbms/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "5d442a18cbb7ede47abfd7ae8b7acc20cc1d7946",
7+
"commit": "678d5a1994e1c1f888abd26b26f9cefc4b706ec3",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/mysql/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",
10-
"readme": "specification/mysql/resource-manager/readme.md"
9+
"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",
10+
"readme": "specification/postgresql/resource-manager/readme.md"
1111
}

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.1.0"
9+
VERSION = "1.0.0b1"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.1.0"
9+
VERSION = "1.0.0b1"

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from ._models_py3 import FlexibleServerEditionCapability
2323
from ._models_py3 import HighAvailability
2424
from ._models_py3 import HyperscaleNodeEditionCapability
25-
from ._models_py3 import Identity
2625
from ._models_py3 import MaintenanceWindow
2726
from ._models_py3 import NameAvailability
2827
from ._models_py3 import NameAvailabilityRequest
@@ -63,7 +62,6 @@
6362
from ._models import FlexibleServerEditionCapability # type: ignore
6463
from ._models import HighAvailability # type: ignore
6564
from ._models import HyperscaleNodeEditionCapability # type: ignore
66-
from ._models import Identity # type: ignore
6765
from ._models import MaintenanceWindow # type: ignore
6866
from ._models import NameAvailability # type: ignore
6967
from ._models import NameAvailabilityRequest # type: ignore
@@ -94,6 +92,7 @@
9492
CreateMode,
9593
CreateModeForUpdate,
9694
CreatedByType,
95+
FailoverMode,
9796
GeoRedundantBackupEnum,
9897
HighAvailabilityMode,
9998
OperationOrigin,
@@ -120,7 +119,6 @@
120119
'FlexibleServerEditionCapability',
121120
'HighAvailability',
122121
'HyperscaleNodeEditionCapability',
123-
'Identity',
124122
'MaintenanceWindow',
125123
'NameAvailability',
126124
'NameAvailabilityRequest',
@@ -149,6 +147,7 @@
149147
'CreateMode',
150148
'CreateModeForUpdate',
151149
'CreatedByType',
150+
'FailoverMode',
152151
'GeoRedundantBackupEnum',
153152
'HighAvailabilityMode',
154153
'OperationOrigin',

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -674,41 +674,6 @@ def __init__(
674674
self.status = None
675675

676676

677-
class Identity(msrest.serialization.Model):
678-
"""Identity for the resource.
679-
680-
Variables are only populated by the server, and will be ignored when sending a request.
681-
682-
:ivar principal_id: The principal ID of resource identity.
683-
:vartype principal_id: str
684-
:ivar tenant_id: The tenant ID of resource.
685-
:vartype tenant_id: str
686-
:param type: The identity type. The only acceptable values to pass in are None and
687-
"SystemAssigned". The default value is None.
688-
:type type: str
689-
"""
690-
691-
_validation = {
692-
'principal_id': {'readonly': True},
693-
'tenant_id': {'readonly': True},
694-
}
695-
696-
_attribute_map = {
697-
'principal_id': {'key': 'principalId', 'type': 'str'},
698-
'tenant_id': {'key': 'tenantId', 'type': 'str'},
699-
'type': {'key': 'type', 'type': 'str'},
700-
}
701-
702-
def __init__(
703-
self,
704-
**kwargs
705-
):
706-
super(Identity, self).__init__(**kwargs)
707-
self.principal_id = None
708-
self.tenant_id = None
709-
self.type = kwargs.get('type', None)
710-
711-
712677
class MaintenanceWindow(msrest.serialization.Model):
713678
"""Maintenance window properties of a server.
714679
@@ -984,8 +949,9 @@ class RestartParameter(msrest.serialization.Model):
984949
985950
:param restart_with_failover: Indicates whether to restart the server with failover.
986951
:type restart_with_failover: bool
987-
:param failover_mode: Failover mode.
988-
:type failover_mode: str
952+
:param failover_mode: Failover mode. Possible values include: "PlannedFailover",
953+
"ForcedFailover", "PlannedSwitchover", "ForcedSwitchover".
954+
:type failover_mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FailoverMode
989955
"""
990956

991957
_attribute_map = {
@@ -1066,8 +1032,6 @@ class Server(TrackedResource):
10661032
:type tags: dict[str, str]
10671033
:param location: Required. The geo-location where the resource lives.
10681034
:type location: str
1069-
:param identity: The Azure Active Directory identity of the server.
1070-
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
10711035
:param sku: The SKU (pricing tier) of the server.
10721036
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
10731037
:ivar system_data: The system metadata relating to this resource.
@@ -1129,7 +1093,6 @@ class Server(TrackedResource):
11291093
'type': {'key': 'type', 'type': 'str'},
11301094
'tags': {'key': 'tags', 'type': '{str}'},
11311095
'location': {'key': 'location', 'type': 'str'},
1132-
'identity': {'key': 'identity', 'type': 'Identity'},
11331096
'sku': {'key': 'sku', 'type': 'Sku'},
11341097
'system_data': {'key': 'systemData', 'type': 'SystemData'},
11351098
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
@@ -1155,7 +1118,6 @@ def __init__(
11551118
**kwargs
11561119
):
11571120
super(Server, self).__init__(**kwargs)
1158-
self.identity = kwargs.get('identity', None)
11591121
self.sku = kwargs.get('sku', None)
11601122
self.system_data = None
11611123
self.administrator_login = kwargs.get('administrator_login', None)

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -703,43 +703,6 @@ def __init__(
703703
self.status = None
704704

705705

706-
class Identity(msrest.serialization.Model):
707-
"""Identity for the resource.
708-
709-
Variables are only populated by the server, and will be ignored when sending a request.
710-
711-
:ivar principal_id: The principal ID of resource identity.
712-
:vartype principal_id: str
713-
:ivar tenant_id: The tenant ID of resource.
714-
:vartype tenant_id: str
715-
:param type: The identity type. The only acceptable values to pass in are None and
716-
"SystemAssigned". The default value is None.
717-
:type type: str
718-
"""
719-
720-
_validation = {
721-
'principal_id': {'readonly': True},
722-
'tenant_id': {'readonly': True},
723-
}
724-
725-
_attribute_map = {
726-
'principal_id': {'key': 'principalId', 'type': 'str'},
727-
'tenant_id': {'key': 'tenantId', 'type': 'str'},
728-
'type': {'key': 'type', 'type': 'str'},
729-
}
730-
731-
def __init__(
732-
self,
733-
*,
734-
type: Optional[str] = None,
735-
**kwargs
736-
):
737-
super(Identity, self).__init__(**kwargs)
738-
self.principal_id = None
739-
self.tenant_id = None
740-
self.type = type
741-
742-
743706
class MaintenanceWindow(msrest.serialization.Model):
744707
"""Maintenance window properties of a server.
745708
@@ -1036,8 +999,9 @@ class RestartParameter(msrest.serialization.Model):
1036999
10371000
:param restart_with_failover: Indicates whether to restart the server with failover.
10381001
:type restart_with_failover: bool
1039-
:param failover_mode: Failover mode.
1040-
:type failover_mode: str
1002+
:param failover_mode: Failover mode. Possible values include: "PlannedFailover",
1003+
"ForcedFailover", "PlannedSwitchover", "ForcedSwitchover".
1004+
:type failover_mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FailoverMode
10411005
"""
10421006

10431007
_attribute_map = {
@@ -1049,7 +1013,7 @@ def __init__(
10491013
self,
10501014
*,
10511015
restart_with_failover: Optional[bool] = None,
1052-
failover_mode: Optional[str] = None,
1016+
failover_mode: Optional[Union[str, "FailoverMode"]] = None,
10531017
**kwargs
10541018
):
10551019
super(RestartParameter, self).__init__(**kwargs)
@@ -1124,8 +1088,6 @@ class Server(TrackedResource):
11241088
:type tags: dict[str, str]
11251089
:param location: Required. The geo-location where the resource lives.
11261090
:type location: str
1127-
:param identity: The Azure Active Directory identity of the server.
1128-
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
11291091
:param sku: The SKU (pricing tier) of the server.
11301092
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
11311093
:ivar system_data: The system metadata relating to this resource.
@@ -1187,7 +1149,6 @@ class Server(TrackedResource):
11871149
'type': {'key': 'type', 'type': 'str'},
11881150
'tags': {'key': 'tags', 'type': '{str}'},
11891151
'location': {'key': 'location', 'type': 'str'},
1190-
'identity': {'key': 'identity', 'type': 'Identity'},
11911152
'sku': {'key': 'sku', 'type': 'Sku'},
11921153
'system_data': {'key': 'systemData', 'type': 'SystemData'},
11931154
'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'},
@@ -1213,7 +1174,6 @@ def __init__(
12131174
*,
12141175
location: str,
12151176
tags: Optional[Dict[str, str]] = None,
1216-
identity: Optional["Identity"] = None,
12171177
sku: Optional["Sku"] = None,
12181178
administrator_login: Optional[str] = None,
12191179
administrator_login_password: Optional[str] = None,
@@ -1231,7 +1191,6 @@ def __init__(
12311191
**kwargs
12321192
):
12331193
super(Server, self).__init__(tags=tags, location=location, **kwargs)
1234-
self.identity = identity
12351194
self.sku = sku
12361195
self.system_data = None
12371196
self.administrator_login = administrator_login

sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ class CreateModeForUpdate(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
6060
DEFAULT = "Default"
6161
UPDATE = "Update"
6262

63+
class FailoverMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
64+
"""Failover mode.
65+
"""
66+
67+
PLANNED_FAILOVER = "PlannedFailover"
68+
FORCED_FAILOVER = "ForcedFailover"
69+
PLANNED_SWITCHOVER = "PlannedSwitchover"
70+
FORCED_SWITCHOVER = "ForcedSwitchover"
71+
6372
class GeoRedundantBackupEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
6473
"""A value indicating whether Geo-Redundant backup is enabled on the server.
6574
"""

0 commit comments

Comments
 (0)