diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json new file mode 100644 index 000000000000..ba66ed672f3f --- /dev/null +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json @@ -0,0 +1,68 @@ +{ + "chosen_version": "", + "total_api_version_list": ["2020-02-14-preview", "2020-11-05-preview"], + "client": { + "name": "PostgreSQLManagementClient", + "filename": "_postgre_sql_management_client", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": true + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential, # type: \"AsyncTokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id" + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null + }, + "operation_groups": { + "servers": "ServersOperations", + "firewall_rules": "FirewallRulesOperations", + "configurations": "ConfigurationsOperations", + "check_name_availability": "CheckNameAvailabilityOperations", + "location_based_capabilities": "LocationBasedCapabilitiesOperations", + "virtual_network_subnet_usage": "VirtualNetworkSubnetUsageOperations", + "operations": "Operations", + "databases": "DatabasesOperations" + }, + "operation_mixins": { + }, + "sync_imports": "None", + "async_imports": "None" +} \ No newline at end of file diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py index 72d038359f15..6218a7f756d4 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py @@ -71,7 +71,6 @@ def __init__( client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.servers = ServersOperations( diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py index 4f6ecc2baff8..811eb4d56963 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py @@ -68,7 +68,6 @@ def __init__( client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.servers = ServersOperations( diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py index 77e65c9e57f6..8f699b9d7233 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py @@ -806,6 +806,12 @@ class Server(TrackedResource): :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HAEnabledEnum :param source_server_name: The source PostgreSQL server name to restore from. :type source_server_name: str + :param source_subscription_id: The subscription id of source serve PostgreSQL server name to + restore from. + :type source_subscription_id: str + :param source_resource_group_name: The resource group name of source serve PostgreSQL server + name to restore from. + :type source_resource_group_name: str :param point_in_time_utc: Restore point creation time (ISO8601 format), specifying the time to restore from. :type point_in_time_utc: ~datetime.datetime @@ -859,6 +865,8 @@ class Server(TrackedResource): 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, 'source_server_name': {'key': 'properties.sourceServerName', 'type': 'str'}, + 'source_subscription_id': {'key': 'properties.sourceSubscriptionId', 'type': 'str'}, + 'source_resource_group_name': {'key': 'properties.sourceResourceGroupName', 'type': 'str'}, 'point_in_time_utc': {'key': 'properties.pointInTimeUTC', 'type': 'iso-8601'}, 'availability_zone': {'key': 'properties.availabilityZone', 'type': 'str'}, 'standby_availability_zone': {'key': 'properties.standbyAvailabilityZone', 'type': 'str'}, @@ -887,6 +895,8 @@ def __init__( self.maintenance_window = kwargs.get('maintenance_window', None) self.ha_enabled = kwargs.get('ha_enabled', None) self.source_server_name = kwargs.get('source_server_name', None) + self.source_subscription_id = kwargs.get('source_subscription_id', None) + self.source_resource_group_name = kwargs.get('source_resource_group_name', None) self.point_in_time_utc = kwargs.get('point_in_time_utc', None) self.availability_zone = kwargs.get('availability_zone', None) self.standby_availability_zone = None diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py index 21bca1c9728b..8c8f9c244af8 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py @@ -850,6 +850,12 @@ class Server(TrackedResource): :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HAEnabledEnum :param source_server_name: The source PostgreSQL server name to restore from. :type source_server_name: str + :param source_subscription_id: The subscription id of source serve PostgreSQL server name to + restore from. + :type source_subscription_id: str + :param source_resource_group_name: The resource group name of source serve PostgreSQL server + name to restore from. + :type source_resource_group_name: str :param point_in_time_utc: Restore point creation time (ISO8601 format), specifying the time to restore from. :type point_in_time_utc: ~datetime.datetime @@ -903,6 +909,8 @@ class Server(TrackedResource): 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, 'source_server_name': {'key': 'properties.sourceServerName', 'type': 'str'}, + 'source_subscription_id': {'key': 'properties.sourceSubscriptionId', 'type': 'str'}, + 'source_resource_group_name': {'key': 'properties.sourceResourceGroupName', 'type': 'str'}, 'point_in_time_utc': {'key': 'properties.pointInTimeUTC', 'type': 'iso-8601'}, 'availability_zone': {'key': 'properties.availabilityZone', 'type': 'str'}, 'standby_availability_zone': {'key': 'properties.standbyAvailabilityZone', 'type': 'str'}, @@ -927,6 +935,8 @@ def __init__( maintenance_window: Optional["MaintenanceWindow"] = None, ha_enabled: Optional[Union[str, "HAEnabledEnum"]] = None, source_server_name: Optional[str] = None, + source_subscription_id: Optional[str] = None, + source_resource_group_name: Optional[str] = None, point_in_time_utc: Optional[datetime.datetime] = None, availability_zone: Optional[str] = None, delegated_subnet_arguments: Optional["ServerPropertiesDelegatedSubnetArguments"] = None, @@ -949,6 +959,8 @@ def __init__( self.maintenance_window = maintenance_window self.ha_enabled = ha_enabled self.source_server_name = source_server_name + self.source_subscription_id = source_subscription_id + self.source_resource_group_name = source_resource_group_name self.point_in_time_utc = point_in_time_utc self.availability_zone = availability_zone self.standby_availability_zone = None