Skip to content
Closed
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
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'},
Expand All @@ -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,
Expand All @@ -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
Expand Down