зеркало из
1
0
Форкнуть 0

[AutoRelease] t2-rdbms-2021-07-19-21374 (#19861)

* CodeGen from PR 15227 in Azure/azure-rest-api-specs
config (#15227)

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
This commit is contained in:
Azure CLI Bot 2021-07-20 10:43:13 +08:00 коммит произвёл GitHub
Родитель f08609cf5d
Коммит d6e2056307
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
68 изменённых файлов: 684 добавлений и 663 удалений

Просмотреть файл

@ -1,5 +1,11 @@
# Release History
## 9.1.0b1 (2021-07-19)
**Features**
- Added operation group BackupsOperations
## 9.0.0 (2021-07-01)
**Features**

Просмотреть файл

@ -4,8 +4,8 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "ecf31fd7a1f63ee6726d6fa944de7ccf7eb1b6b7",
"commit": "1a22ee0be121e33f98b6290cc737f613f2e1a2d8",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/mysql/resource-manager/readme.md"
"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/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/postgresql/resource-manager/readme.md"
}

Просмотреть файл

@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------
VERSION = "9.0.0"
VERSION = "9.1.0b1"

Просмотреть файл

@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
VERSION = "9.0.0"
VERSION = "9.1.0b1"

Просмотреть файл

@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
VERSION = "1.0.0b1"
VERSION = "9.1.0b1"

Просмотреть файл

@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
VERSION = "1.0.0b1"
VERSION = "9.1.0b1"

Просмотреть файл

@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
VERSION = "9.0.0"
VERSION = "9.1.0b1"

Просмотреть файл

@ -43,7 +43,7 @@ class CheckNameAvailabilityOperations:
async def execute(
self,
name_availability_request: "_models.NameAvailabilityRequest",
**kwargs
**kwargs: Any
) -> "_models.NameAvailability":
"""Check the availability of name for resource.
@ -97,4 +97,4 @@ class CheckNameAvailabilityOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability'} # type: ignore

Просмотреть файл

@ -49,7 +49,7 @@ class ConfigurationsOperations:
server_name: str,
configuration_name: str,
parameters: "_models.Configuration",
**kwargs
**kwargs: Any
) -> Optional["_models.Configuration"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Configuration"]]
error_map = {
@ -64,7 +64,7 @@ class ConfigurationsOperations:
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -98,7 +98,7 @@ class ConfigurationsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
async def begin_create_or_update(
self,
@ -106,7 +106,7 @@ class ConfigurationsOperations:
server_name: str,
configuration_name: str,
parameters: "_models.Configuration",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Configuration"]:
"""Updates a configuration of a server.
@ -120,8 +120,8 @@ class ConfigurationsOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Configuration or the result of cls(response)
@ -157,7 +157,7 @@ class ConfigurationsOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -174,14 +174,14 @@ class ConfigurationsOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
async def get(
self,
resource_group_name: str,
server_name: str,
configuration_name: str,
**kwargs
**kwargs: Any
) -> "_models.Configuration":
"""Gets information about a configuration of server.
@ -208,7 +208,7 @@ class ConfigurationsOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -236,13 +236,13 @@ class ConfigurationsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
def list_by_server(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ConfigurationListResult"]:
"""List all the configurations in a given server.
@ -273,7 +273,7 @@ class ConfigurationsOperations:
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -310,4 +310,4 @@ class ConfigurationsOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations'} # type: ignore

Просмотреть файл

@ -49,7 +49,7 @@ class DatabasesOperations:
server_name: str,
database_name: str,
parameters: "_models.Database",
**kwargs
**kwargs: Any
) -> Optional["_models.Database"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Database"]]
error_map = {
@ -64,7 +64,7 @@ class DatabasesOperations:
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -101,7 +101,7 @@ class DatabasesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
async def begin_create_or_update(
self,
@ -109,7 +109,7 @@ class DatabasesOperations:
server_name: str,
database_name: str,
parameters: "_models.Database",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Database"]:
"""Creates a new database or updates an existing database.
@ -123,8 +123,8 @@ class DatabasesOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.Database
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Database or the result of cls(response)
@ -160,7 +160,7 @@ class DatabasesOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -177,14 +177,14 @@ class DatabasesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
async def _delete_initial(
self,
resource_group_name: str,
server_name: str,
database_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -198,7 +198,7 @@ class DatabasesOperations:
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -223,14 +223,14 @@ class DatabasesOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
server_name: str,
database_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes a database.
@ -242,8 +242,8 @@ class DatabasesOperations:
:type database_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -275,7 +275,7 @@ class DatabasesOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -292,14 +292,14 @@ class DatabasesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
async def get(
self,
resource_group_name: str,
server_name: str,
database_name: str,
**kwargs
**kwargs: Any
) -> "_models.Database":
"""Gets information about a database.
@ -326,7 +326,7 @@ class DatabasesOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -354,13 +354,13 @@ class DatabasesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def list_by_server(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.DatabaseListResult"]:
"""List all the databases in a given server.
@ -391,7 +391,7 @@ class DatabasesOperations:
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -428,4 +428,4 @@ class DatabasesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases'} # type: ignore

Просмотреть файл

@ -49,7 +49,7 @@ class FirewallRulesOperations:
server_name: str,
firewall_rule_name: str,
parameters: "_models.FirewallRule",
**kwargs
**kwargs: Any
) -> Optional["_models.FirewallRule"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.FirewallRule"]]
error_map = {
@ -64,7 +64,7 @@ class FirewallRulesOperations:
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -101,7 +101,7 @@ class FirewallRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def begin_create_or_update(
self,
@ -109,7 +109,7 @@ class FirewallRulesOperations:
server_name: str,
firewall_rule_name: str,
parameters: "_models.FirewallRule",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.FirewallRule"]:
"""Creates a new firewall rule or updates an existing firewall rule.
@ -123,8 +123,8 @@ class FirewallRulesOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.FirewallRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either FirewallRule or the result of cls(response)
@ -160,7 +160,7 @@ class FirewallRulesOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -177,14 +177,14 @@ class FirewallRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def _delete_initial(
self,
resource_group_name: str,
server_name: str,
firewall_rule_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -198,7 +198,7 @@ class FirewallRulesOperations:
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -223,14 +223,14 @@ class FirewallRulesOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
server_name: str,
firewall_rule_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes a server firewall rule.
@ -242,8 +242,8 @@ class FirewallRulesOperations:
:type firewall_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -275,7 +275,7 @@ class FirewallRulesOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -292,14 +292,14 @@ class FirewallRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def get(
self,
resource_group_name: str,
server_name: str,
firewall_rule_name: str,
**kwargs
**kwargs: Any
) -> "_models.FirewallRule":
"""Gets information about a server firewall rule.
@ -326,7 +326,7 @@ class FirewallRulesOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -354,13 +354,13 @@ class FirewallRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def list_by_server(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.FirewallRuleListResult"]:
"""List all the firewall rules in a given server.
@ -391,7 +391,7 @@ class FirewallRulesOperations:
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -428,4 +428,4 @@ class FirewallRulesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore

Просмотреть файл

@ -44,7 +44,7 @@ class LocationBasedPerformanceTierOperations:
def list(
self,
location_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PerformanceTierListResult"]:
"""List all the performance tiers at specified location in a given subscription.
@ -109,4 +109,4 @@ class LocationBasedPerformanceTierOperations:
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/locations/{locationName}/performanceTiers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers'} # type: ignore

Просмотреть файл

@ -45,7 +45,7 @@ class LogFilesOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.LogFileListResult"]:
"""List all the log files in a given server.
@ -76,7 +76,7 @@ class LogFilesOperations:
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -113,4 +113,4 @@ class LogFilesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/logFiles'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles'} # type: ignore

Просмотреть файл

@ -42,7 +42,7 @@ class Operations:
async def list(
self,
**kwargs
**kwargs: Any
) -> "_models.OperationListResult":
"""Lists all of the available REST API operations.
@ -84,4 +84,4 @@ class Operations:
return cls(pipeline_response, deserialized, {})
return deserialized
list.metadata = {'url': '/providers/Microsoft.DBForPostgreSQL/operations'} # type: ignore
list.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/operations'} # type: ignore

Просмотреть файл

@ -48,7 +48,7 @@ class PrivateEndpointConnectionsOperations:
resource_group_name: str,
server_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
"""Gets a private endpoint connection.
@ -74,7 +74,7 @@ class PrivateEndpointConnectionsOperations:
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -111,7 +111,7 @@ class PrivateEndpointConnectionsOperations:
server_name: str,
private_endpoint_connection_name: str,
parameters: "_models.PrivateEndpointConnection",
**kwargs
**kwargs: Any
) -> Optional["_models.PrivateEndpointConnection"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]]
error_map = {
@ -125,7 +125,7 @@ class PrivateEndpointConnectionsOperations:
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -168,7 +168,7 @@ class PrivateEndpointConnectionsOperations:
server_name: str,
private_endpoint_connection_name: str,
parameters: "_models.PrivateEndpointConnection",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
"""Approve or reject a private endpoint connection with a given name.
@ -182,8 +182,8 @@ class PrivateEndpointConnectionsOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointConnection
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@ -218,7 +218,7 @@ class PrivateEndpointConnectionsOperations:
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -243,7 +243,7 @@ class PrivateEndpointConnectionsOperations:
resource_group_name: str,
server_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -256,7 +256,7 @@ class PrivateEndpointConnectionsOperations:
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -289,7 +289,7 @@ class PrivateEndpointConnectionsOperations:
resource_group_name: str,
server_name: str,
private_endpoint_connection_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes a private endpoint connection with a given name.
@ -301,8 +301,8 @@ class PrivateEndpointConnectionsOperations:
:type private_endpoint_connection_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -333,7 +333,7 @@ class PrivateEndpointConnectionsOperations:
return cls(pipeline_response, None, {})
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -359,7 +359,7 @@ class PrivateEndpointConnectionsOperations:
server_name: str,
private_endpoint_connection_name: str,
parameters: "_models.TagsObject",
**kwargs
**kwargs: Any
) -> "_models.PrivateEndpointConnection":
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"]
error_map = {
@ -374,7 +374,7 @@ class PrivateEndpointConnectionsOperations:
url = self._update_tags_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
}
@ -414,7 +414,7 @@ class PrivateEndpointConnectionsOperations:
server_name: str,
private_endpoint_connection_name: str,
parameters: "_models.TagsObject",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.PrivateEndpointConnection"]:
"""Updates tags on private endpoint connection.
@ -431,8 +431,8 @@ class PrivateEndpointConnectionsOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.TagsObject
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@ -468,7 +468,7 @@ class PrivateEndpointConnectionsOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
}
@ -491,7 +491,7 @@ class PrivateEndpointConnectionsOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]:
"""Gets all private endpoint connections on a server.
@ -521,7 +521,7 @@ class PrivateEndpointConnectionsOperations:
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}

Просмотреть файл

@ -45,7 +45,7 @@ class PrivateLinkResourcesOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PrivateLinkResourceListResult"]:
"""Gets the private link resources for PostgreSQL server.
@ -75,7 +75,7 @@ class PrivateLinkResourcesOperations:
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
@ -120,7 +120,7 @@ class PrivateLinkResourcesOperations:
resource_group_name: str,
server_name: str,
group_name: str,
**kwargs
**kwargs: Any
) -> "_models.PrivateLinkResource":
"""Gets a private link resource for PostgreSQL server.
@ -146,7 +146,7 @@ class PrivateLinkResourcesOperations:
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'groupName': self._serialize.url("group_name", group_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),

Просмотреть файл

@ -44,7 +44,7 @@ class RecoverableServersOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> "_models.RecoverableServerResource":
"""Gets a recoverable PostgreSQL Server.
@ -69,7 +69,7 @@ class RecoverableServersOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -96,4 +96,4 @@ class RecoverableServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/recoverableServers'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/recoverableServers'} # type: ignore

Просмотреть файл

@ -45,7 +45,7 @@ class ReplicasOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerListResult"]:
"""List all the replicas for a given server.
@ -76,7 +76,7 @@ class ReplicasOperations:
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -113,4 +113,4 @@ class ReplicasOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/replicas'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/replicas'} # type: ignore

Просмотреть файл

@ -47,7 +47,7 @@ class ServerAdministratorsOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> "_models.ServerAdministratorResource":
"""Gets information about a AAD server administrator.
@ -72,7 +72,7 @@ class ServerAdministratorsOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -99,14 +99,14 @@ class ServerAdministratorsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
async def _create_or_update_initial(
self,
resource_group_name: str,
server_name: str,
properties: "_models.ServerAdministratorResource",
**kwargs
**kwargs: Any
) -> "_models.ServerAdministratorResource":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerAdministratorResource"]
error_map = {
@ -121,7 +121,7 @@ class ServerAdministratorsOperations:
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -156,14 +156,14 @@ class ServerAdministratorsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
async def begin_create_or_update(
self,
resource_group_name: str,
server_name: str,
properties: "_models.ServerAdministratorResource",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ServerAdministratorResource"]:
"""Creates or update active directory administrator on an existing server. The update action will
overwrite the existing administrator.
@ -177,8 +177,8 @@ class ServerAdministratorsOperations:
:type properties: ~azure.mgmt.rdbms.postgresql.models.ServerAdministratorResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ServerAdministratorResource or the result of cls(response)
@ -213,7 +213,7 @@ class ServerAdministratorsOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -229,13 +229,13 @@ class ServerAdministratorsOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
async def _delete_initial(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -249,7 +249,7 @@ class ServerAdministratorsOperations:
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -273,13 +273,13 @@ class ServerAdministratorsOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes server active directory administrator.
@ -289,8 +289,8 @@ class ServerAdministratorsOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -321,7 +321,7 @@ class ServerAdministratorsOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -337,13 +337,13 @@ class ServerAdministratorsOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def list(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerAdministratorResourceListResult"]:
"""Returns a list of server Administrators.
@ -374,7 +374,7 @@ class ServerAdministratorsOperations:
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -411,4 +411,4 @@ class ServerAdministratorsOperations:
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators'} # type: ignore

Просмотреть файл

@ -45,7 +45,7 @@ class ServerBasedPerformanceTierOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.PerformanceTierListResult"]:
"""List all the performance tiers for a PostgreSQL server.
@ -76,7 +76,7 @@ class ServerBasedPerformanceTierOperations:
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -113,4 +113,4 @@ class ServerBasedPerformanceTierOperations:
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/performanceTiers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/performanceTiers'} # type: ignore

Просмотреть файл

@ -47,7 +47,7 @@ class ServerKeysOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerKeyListResult"]:
"""Gets a list of Server keys.
@ -78,7 +78,7 @@ class ServerKeysOperations:
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -122,7 +122,7 @@ class ServerKeysOperations:
resource_group_name: str,
server_name: str,
key_name: str,
**kwargs
**kwargs: Any
) -> "_models.ServerKey":
"""Gets a PostgreSQL Server key.
@ -148,7 +148,7 @@ class ServerKeysOperations:
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -185,7 +185,7 @@ class ServerKeysOperations:
key_name: str,
resource_group_name: str,
parameters: "_models.ServerKey",
**kwargs
**kwargs: Any
) -> "_models.ServerKey":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerKey"]
error_map = {
@ -202,7 +202,7 @@ class ServerKeysOperations:
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
@ -244,7 +244,7 @@ class ServerKeysOperations:
key_name: str,
resource_group_name: str,
parameters: "_models.ServerKey",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ServerKey"]:
"""Creates or updates a PostgreSQL Server key.
@ -258,8 +258,8 @@ class ServerKeysOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerKey
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ServerKey or the result of cls(response)
@ -297,7 +297,7 @@ class ServerKeysOperations:
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
@ -319,7 +319,7 @@ class ServerKeysOperations:
server_name: str,
key_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -335,7 +335,7 @@ class ServerKeysOperations:
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
@ -365,7 +365,7 @@ class ServerKeysOperations:
server_name: str,
key_name: str,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes the PostgreSQL Server key with the given name.
@ -377,8 +377,8 @@ class ServerKeysOperations:
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -412,7 +412,7 @@ class ServerKeysOperations:
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)

Просмотреть файл

@ -47,7 +47,7 @@ class ServerParametersOperations:
resource_group_name: str,
server_name: str,
value: "_models.ConfigurationListResult",
**kwargs
**kwargs: Any
) -> Optional["_models.ConfigurationListResult"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ConfigurationListResult"]]
error_map = {
@ -62,7 +62,7 @@ class ServerParametersOperations:
url = self._list_update_configurations_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -95,14 +95,14 @@ class ServerParametersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_list_update_configurations_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
_list_update_configurations_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
async def begin_list_update_configurations(
self,
resource_group_name: str,
server_name: str,
value: "_models.ConfigurationListResult",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ConfigurationListResult"]:
"""Update a list of configurations in a given server.
@ -114,8 +114,8 @@ class ServerParametersOperations:
:type value: ~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ConfigurationListResult or the result of cls(response)
@ -150,7 +150,7 @@ class ServerParametersOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -166,4 +166,4 @@ class ServerParametersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_list_update_configurations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
begin_list_update_configurations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore

Просмотреть файл

@ -48,7 +48,7 @@ class ServerSecurityAlertPoliciesOperations:
resource_group_name: str,
server_name: str,
security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"],
**kwargs
**kwargs: Any
) -> "_models.ServerSecurityAlertPolicy":
"""Get a server's security alert policy.
@ -74,7 +74,7 @@ class ServerSecurityAlertPoliciesOperations:
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -111,7 +111,7 @@ class ServerSecurityAlertPoliciesOperations:
server_name: str,
security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"],
parameters: "_models.ServerSecurityAlertPolicy",
**kwargs
**kwargs: Any
) -> Optional["_models.ServerSecurityAlertPolicy"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ServerSecurityAlertPolicy"]]
error_map = {
@ -125,7 +125,7 @@ class ServerSecurityAlertPoliciesOperations:
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -168,7 +168,7 @@ class ServerSecurityAlertPoliciesOperations:
server_name: str,
security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"],
parameters: "_models.ServerSecurityAlertPolicy",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.ServerSecurityAlertPolicy"]:
"""Creates or updates a threat detection policy.
@ -182,8 +182,8 @@ class ServerSecurityAlertPoliciesOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicy
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ServerSecurityAlertPolicy or the result of cls(response)
@ -218,7 +218,7 @@ class ServerSecurityAlertPoliciesOperations:
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -242,7 +242,7 @@ class ServerSecurityAlertPoliciesOperations:
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerSecurityAlertPolicyListResult"]:
"""Get the server's threat detection policies.
@ -272,7 +272,7 @@ class ServerSecurityAlertPoliciesOperations:
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}

Просмотреть файл

@ -48,7 +48,7 @@ class ServersOperations:
resource_group_name: str,
server_name: str,
parameters: "_models.ServerForCreate",
**kwargs
**kwargs: Any
) -> Optional["_models.Server"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]]
error_map = {
@ -63,7 +63,7 @@ class ServersOperations:
url = self._create_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -99,14 +99,14 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def begin_create(
self,
resource_group_name: str,
server_name: str,
parameters: "_models.ServerForCreate",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Server"]:
"""Creates a new server, or will overwrite an existing server.
@ -118,8 +118,8 @@ class ServersOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForCreate
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Server or the result of cls(response)
@ -154,7 +154,7 @@ class ServersOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -170,14 +170,14 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def _update_initial(
self,
resource_group_name: str,
server_name: str,
parameters: "_models.ServerUpdateParameters",
**kwargs
**kwargs: Any
) -> Optional["_models.Server"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]]
error_map = {
@ -192,7 +192,7 @@ class ServersOperations:
url = self._update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -225,14 +225,14 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def begin_update(
self,
resource_group_name: str,
server_name: str,
parameters: "_models.ServerUpdateParameters",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.Server"]:
"""Updates an existing server. The request body can contain one to many of the properties present
in the normal server definition.
@ -245,8 +245,8 @@ class ServersOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerUpdateParameters
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Server or the result of cls(response)
@ -281,7 +281,7 @@ class ServersOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -297,13 +297,13 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def _delete_initial(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -317,7 +317,7 @@ class ServersOperations:
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -341,13 +341,13 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes a server.
@ -357,8 +357,8 @@ class ServersOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -389,7 +389,7 @@ class ServersOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -405,13 +405,13 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
async def get(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> "_models.Server":
"""Gets information about a server.
@ -436,7 +436,7 @@ class ServersOperations:
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -463,12 +463,12 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerListResult"]:
"""List all the servers in a given resource group.
@ -497,7 +497,7 @@ class ServersOperations:
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@ -533,11 +533,11 @@ class ServersOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers'} # type: ignore
def list(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ServerListResult"]:
"""List all the servers in a given subscription.
@ -599,13 +599,13 @@ class ServersOperations:
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers'} # type: ignore
async def _restart_initial(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -619,7 +619,7 @@ class ServersOperations:
url = self._restart_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -643,13 +643,13 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart'} # type: ignore
async def begin_restart(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Restarts a server.
@ -659,8 +659,8 @@ class ServersOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -691,7 +691,7 @@ class ServersOperations:
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -707,4 +707,4 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart'} # type: ignore

Просмотреть файл

@ -48,7 +48,7 @@ class VirtualNetworkRulesOperations:
resource_group_name: str,
server_name: str,
virtual_network_rule_name: str,
**kwargs
**kwargs: Any
) -> "_models.VirtualNetworkRule":
"""Gets a virtual network rule.
@ -74,7 +74,7 @@ class VirtualNetworkRulesOperations:
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -103,7 +103,7 @@ class VirtualNetworkRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
async def _create_or_update_initial(
self,
@ -111,7 +111,7 @@ class VirtualNetworkRulesOperations:
server_name: str,
virtual_network_rule_name: str,
parameters: "_models.VirtualNetworkRule",
**kwargs
**kwargs: Any
) -> Optional["_models.VirtualNetworkRule"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualNetworkRule"]]
error_map = {
@ -125,7 +125,7 @@ class VirtualNetworkRulesOperations:
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -163,7 +163,7 @@ class VirtualNetworkRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
async def begin_create_or_update(
self,
@ -171,7 +171,7 @@ class VirtualNetworkRulesOperations:
server_name: str,
virtual_network_rule_name: str,
parameters: "_models.VirtualNetworkRule",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.VirtualNetworkRule"]:
"""Creates or updates an existing virtual network rule.
@ -185,8 +185,8 @@ class VirtualNetworkRulesOperations:
:type parameters: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either VirtualNetworkRule or the result of cls(response)
@ -221,7 +221,7 @@ class VirtualNetworkRulesOperations:
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -239,14 +239,14 @@ class VirtualNetworkRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
async def _delete_initial(
self,
resource_group_name: str,
server_name: str,
virtual_network_rule_name: str,
**kwargs
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
@ -258,7 +258,7 @@ class VirtualNetworkRulesOperations:
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -283,14 +283,14 @@ class VirtualNetworkRulesOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
async def begin_delete(
self,
resource_group_name: str,
server_name: str,
virtual_network_rule_name: str,
**kwargs
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes the virtual network rule with the given name.
@ -302,8 +302,8 @@ class VirtualNetworkRulesOperations:
:type virtual_network_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@ -334,7 +334,7 @@ class VirtualNetworkRulesOperations:
return cls(pipeline_response, None, {})
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -352,13 +352,13 @@ class VirtualNetworkRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def list_by_server(
self,
resource_group_name: str,
server_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.VirtualNetworkRuleListResult"]:
"""Gets a list of virtual network rules in a server.
@ -388,7 +388,7 @@ class VirtualNetworkRulesOperations:
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
@ -426,4 +426,4 @@ class VirtualNetworkRulesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules'} # type: ignore

Просмотреть файл

@ -230,7 +230,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model):
:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: str
:vartype info: any
"""
_validation = {
@ -240,7 +240,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model):
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'info': {'key': 'info', 'type': 'str'},
'info': {'key': 'info', 'type': 'object'},
}
def __init__(
@ -508,7 +508,7 @@ class Operation(msrest.serialization.Model):
"user", "system".
:vartype origin: str or ~azure.mgmt.rdbms.postgresql.models.OperationOrigin
:ivar properties: Additional descriptions for the operation.
:vartype properties: dict[str, str]
:vartype properties: dict[str, any]
"""
_validation = {
@ -522,7 +522,7 @@ class Operation(msrest.serialization.Model):
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
'properties': {'key': 'properties', 'type': '{object}'},
}
def __init__(
@ -1230,8 +1230,9 @@ class ServerAdministratorResource(ProxyResource):
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar administrator_type: The type of administrator. Default value: "ActiveDirectory".
:vartype administrator_type: str
:param administrator_type: The type of administrator. The only acceptable values to pass in are
None and "ActiveDirectory". The default value is None.
:type administrator_type: str
:param login: The server administrator login account name.
:type login: str
:param sid: The server administrator Sid (Secure ID).
@ -1244,7 +1245,6 @@ class ServerAdministratorResource(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'administrator_type': {'constant': True},
}
_attribute_map = {
@ -1257,13 +1257,12 @@ class ServerAdministratorResource(ProxyResource):
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
}
administrator_type = "ActiveDirectory"
def __init__(
self,
**kwargs
):
super(ServerAdministratorResource, self).__init__(**kwargs)
self.administrator_type = kwargs.get('administrator_type', None)
self.login = kwargs.get('login', None)
self.sid = kwargs.get('sid', None)
self.tenant_id = kwargs.get('tenant_id', None)

Просмотреть файл

@ -245,7 +245,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model):
:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: str
:vartype info: any
"""
_validation = {
@ -255,7 +255,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model):
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'info': {'key': 'info', 'type': 'str'},
'info': {'key': 'info', 'type': 'object'},
}
def __init__(
@ -541,7 +541,7 @@ class Operation(msrest.serialization.Model):
"user", "system".
:vartype origin: str or ~azure.mgmt.rdbms.postgresql.models.OperationOrigin
:ivar properties: Additional descriptions for the operation.
:vartype properties: dict[str, str]
:vartype properties: dict[str, any]
"""
_validation = {
@ -555,7 +555,7 @@ class Operation(msrest.serialization.Model):
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
'properties': {'key': 'properties', 'type': '{object}'},
}
def __init__(
@ -1316,8 +1316,9 @@ class ServerAdministratorResource(ProxyResource):
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar administrator_type: The type of administrator. Default value: "ActiveDirectory".
:vartype administrator_type: str
:param administrator_type: The type of administrator. The only acceptable values to pass in are
None and "ActiveDirectory". The default value is None.
:type administrator_type: str
:param login: The server administrator login account name.
:type login: str
:param sid: The server administrator Sid (Secure ID).
@ -1330,7 +1331,6 @@ class ServerAdministratorResource(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'administrator_type': {'constant': True},
}
_attribute_map = {
@ -1343,17 +1343,17 @@ class ServerAdministratorResource(ProxyResource):
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
}
administrator_type = "ActiveDirectory"
def __init__(
self,
*,
administrator_type: Optional[str] = None,
login: Optional[str] = None,
sid: Optional[str] = None,
tenant_id: Optional[str] = None,
**kwargs
):
super(ServerAdministratorResource, self).__init__(**kwargs)
self.administrator_type = administrator_type
self.login = login
self.sid = sid
self.tenant_id = tenant_id

Просмотреть файл

@ -102,4 +102,4 @@ class CheckNameAvailabilityOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability'} # type: ignore

Просмотреть файл

@ -69,7 +69,7 @@ class ConfigurationsOperations(object):
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -103,7 +103,7 @@ class ConfigurationsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
def begin_create_or_update(
self,
@ -126,8 +126,8 @@ class ConfigurationsOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Configuration or the result of cls(response)
@ -163,7 +163,7 @@ class ConfigurationsOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -180,7 +180,7 @@ class ConfigurationsOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
def get(
self,
@ -215,7 +215,7 @@ class ConfigurationsOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'),
}
@ -243,7 +243,7 @@ class ConfigurationsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore
def list_by_server(
self,
@ -281,7 +281,7 @@ class ConfigurationsOperations(object):
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -318,4 +318,4 @@ class ConfigurationsOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/configurations'} # type: ignore

Просмотреть файл

@ -69,7 +69,7 @@ class DatabasesOperations(object):
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -106,7 +106,7 @@ class DatabasesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def begin_create_or_update(
self,
@ -129,8 +129,8 @@ class DatabasesOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.Database
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Database or the result of cls(response)
@ -166,7 +166,7 @@ class DatabasesOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -183,7 +183,7 @@ class DatabasesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def _delete_initial(
self,
@ -205,7 +205,7 @@ class DatabasesOperations(object):
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -230,7 +230,7 @@ class DatabasesOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def begin_delete(
self,
@ -250,8 +250,8 @@ class DatabasesOperations(object):
:type database_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -283,7 +283,7 @@ class DatabasesOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -300,7 +300,7 @@ class DatabasesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def get(
self,
@ -335,7 +335,7 @@ class DatabasesOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'databaseName': self._serialize.url("database_name", database_name, 'str'),
}
@ -363,7 +363,7 @@ class DatabasesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore
def list_by_server(
self,
@ -401,7 +401,7 @@ class DatabasesOperations(object):
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -438,4 +438,4 @@ class DatabasesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases'} # type: ignore

Просмотреть файл

@ -69,7 +69,7 @@ class FirewallRulesOperations(object):
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -106,7 +106,7 @@ class FirewallRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def begin_create_or_update(
self,
@ -129,8 +129,8 @@ class FirewallRulesOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.FirewallRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either FirewallRule or the result of cls(response)
@ -166,7 +166,7 @@ class FirewallRulesOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -183,7 +183,7 @@ class FirewallRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def _delete_initial(
self,
@ -205,7 +205,7 @@ class FirewallRulesOperations(object):
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -230,7 +230,7 @@ class FirewallRulesOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def begin_delete(
self,
@ -250,8 +250,8 @@ class FirewallRulesOperations(object):
:type firewall_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -283,7 +283,7 @@ class FirewallRulesOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -300,7 +300,7 @@ class FirewallRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def get(
self,
@ -335,7 +335,7 @@ class FirewallRulesOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, 'str'),
}
@ -363,7 +363,7 @@ class FirewallRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def list_by_server(
self,
@ -401,7 +401,7 @@ class FirewallRulesOperations(object):
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -438,4 +438,4 @@ class FirewallRulesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore

Просмотреть файл

@ -114,4 +114,4 @@ class LocationBasedPerformanceTierOperations(object):
return ItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/locations/{locationName}/performanceTiers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers'} # type: ignore

Просмотреть файл

@ -81,7 +81,7 @@ class LogFilesOperations(object):
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -118,4 +118,4 @@ class LogFilesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/logFiles'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/logFiles'} # type: ignore

Просмотреть файл

@ -89,4 +89,4 @@ class Operations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
list.metadata = {'url': '/providers/Microsoft.DBForPostgreSQL/operations'} # type: ignore
list.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/operations'} # type: ignore

Просмотреть файл

@ -79,7 +79,7 @@ class PrivateEndpointConnectionsOperations(object):
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -131,7 +131,7 @@ class PrivateEndpointConnectionsOperations(object):
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -189,8 +189,8 @@ class PrivateEndpointConnectionsOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointConnection
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@ -225,7 +225,7 @@ class PrivateEndpointConnectionsOperations(object):
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -264,7 +264,7 @@ class PrivateEndpointConnectionsOperations(object):
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -310,8 +310,8 @@ class PrivateEndpointConnectionsOperations(object):
:type private_endpoint_connection_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -342,7 +342,7 @@ class PrivateEndpointConnectionsOperations(object):
return cls(pipeline_response, None, {})
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -384,7 +384,7 @@ class PrivateEndpointConnectionsOperations(object):
url = self._update_tags_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
}
@ -442,8 +442,8 @@ class PrivateEndpointConnectionsOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.TagsObject
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)
@ -479,7 +479,7 @@ class PrivateEndpointConnectionsOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'),
}
@ -533,7 +533,7 @@ class PrivateEndpointConnectionsOperations(object):
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}

Просмотреть файл

@ -80,7 +80,7 @@ class PrivateLinkResourcesOperations(object):
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
@ -152,7 +152,7 @@ class PrivateLinkResourcesOperations(object):
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'groupName': self._serialize.url("group_name", group_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),

Просмотреть файл

@ -74,7 +74,7 @@ class RecoverableServersOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -101,4 +101,4 @@ class RecoverableServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/recoverableServers'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/recoverableServers'} # type: ignore

Просмотреть файл

@ -81,7 +81,7 @@ class ReplicasOperations(object):
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -118,4 +118,4 @@ class ReplicasOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/replicas'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/replicas'} # type: ignore

Просмотреть файл

@ -77,7 +77,7 @@ class ServerAdministratorsOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -104,7 +104,7 @@ class ServerAdministratorsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def _create_or_update_initial(
self,
@ -127,7 +127,7 @@ class ServerAdministratorsOperations(object):
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -162,7 +162,7 @@ class ServerAdministratorsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def begin_create_or_update(
self,
@ -184,8 +184,8 @@ class ServerAdministratorsOperations(object):
:type properties: ~azure.mgmt.rdbms.postgresql.models.ServerAdministratorResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either ServerAdministratorResource or the result of cls(response)
@ -220,7 +220,7 @@ class ServerAdministratorsOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -236,7 +236,7 @@ class ServerAdministratorsOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def _delete_initial(
self,
@ -257,7 +257,7 @@ class ServerAdministratorsOperations(object):
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -281,7 +281,7 @@ class ServerAdministratorsOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def begin_delete(
self,
@ -298,8 +298,8 @@ class ServerAdministratorsOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -330,7 +330,7 @@ class ServerAdministratorsOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -346,7 +346,7 @@ class ServerAdministratorsOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators/activeDirectory'} # type: ignore
def list(
self,
@ -384,7 +384,7 @@ class ServerAdministratorsOperations(object):
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -421,4 +421,4 @@ class ServerAdministratorsOperations(object):
return ItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/administrators'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators'} # type: ignore

Просмотреть файл

@ -81,7 +81,7 @@ class ServerBasedPerformanceTierOperations(object):
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -118,4 +118,4 @@ class ServerBasedPerformanceTierOperations(object):
return ItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/performanceTiers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/performanceTiers'} # type: ignore

Просмотреть файл

@ -83,7 +83,7 @@ class ServerKeysOperations(object):
url = self.list.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -154,7 +154,7 @@ class ServerKeysOperations(object):
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -209,7 +209,7 @@ class ServerKeysOperations(object):
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
@ -266,8 +266,8 @@ class ServerKeysOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerKey
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either ServerKey or the result of cls(response)
@ -305,7 +305,7 @@ class ServerKeysOperations(object):
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)
@ -344,7 +344,7 @@ class ServerKeysOperations(object):
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
@ -387,8 +387,8 @@ class ServerKeysOperations(object):
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -422,7 +422,7 @@ class ServerKeysOperations(object):
'serverName': self._serialize.url("server_name", server_name, 'str'),
'keyName': self._serialize.url("key_name", key_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs)

Просмотреть файл

@ -67,7 +67,7 @@ class ServerParametersOperations(object):
url = self._list_update_configurations_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -100,7 +100,7 @@ class ServerParametersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_list_update_configurations_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
_list_update_configurations_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
def begin_list_update_configurations(
self,
@ -120,8 +120,8 @@ class ServerParametersOperations(object):
:type value: ~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either ConfigurationListResult or the result of cls(response)
@ -156,7 +156,7 @@ class ServerParametersOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -172,4 +172,4 @@ class ServerParametersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_list_update_configurations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore
begin_list_update_configurations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/updateConfigurations'} # type: ignore

Просмотреть файл

@ -79,7 +79,7 @@ class ServerSecurityAlertPoliciesOperations(object):
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -131,7 +131,7 @@ class ServerSecurityAlertPoliciesOperations(object):
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -189,8 +189,8 @@ class ServerSecurityAlertPoliciesOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicy
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either ServerSecurityAlertPolicy or the result of cls(response)
@ -225,7 +225,7 @@ class ServerSecurityAlertPoliciesOperations(object):
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'securityAlertPolicyName': self._serialize.url("security_alert_policy_name", security_alert_policy_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -280,7 +280,7 @@ class ServerSecurityAlertPoliciesOperations(object):
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}

Просмотреть файл

@ -68,7 +68,7 @@ class ServersOperations(object):
url = self._create_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -104,7 +104,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def begin_create(
self,
@ -124,8 +124,8 @@ class ServersOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForCreate
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Server or the result of cls(response)
@ -160,7 +160,7 @@ class ServersOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -176,7 +176,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def _update_initial(
self,
@ -199,7 +199,7 @@ class ServersOperations(object):
url = self._update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -232,7 +232,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def begin_update(
self,
@ -253,8 +253,8 @@ class ServersOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerUpdateParameters
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Server or the result of cls(response)
@ -289,7 +289,7 @@ class ServersOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -305,7 +305,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def _delete_initial(
self,
@ -326,7 +326,7 @@ class ServersOperations(object):
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -350,7 +350,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def begin_delete(
self,
@ -367,8 +367,8 @@ class ServersOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -399,7 +399,7 @@ class ServersOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -415,7 +415,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def get(
self,
@ -447,7 +447,7 @@ class ServersOperations(object):
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -474,7 +474,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}'} # type: ignore
def list_by_resource_group(
self,
@ -509,7 +509,7 @@ class ServersOperations(object):
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@ -545,7 +545,7 @@ class ServersOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers'} # type: ignore
def list(
self,
@ -612,7 +612,7 @@ class ServersOperations(object):
return ItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers'} # type: ignore
def _restart_initial(
self,
@ -633,7 +633,7 @@ class ServersOperations(object):
url = self._restart_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@ -657,7 +657,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart'} # type: ignore
def begin_restart(
self,
@ -674,8 +674,8 @@ class ServersOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -706,7 +706,7 @@ class ServersOperations(object):
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
}
@ -722,4 +722,4 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/restart'} # type: ignore

Просмотреть файл

@ -79,7 +79,7 @@ class VirtualNetworkRulesOperations(object):
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -108,7 +108,7 @@ class VirtualNetworkRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def _create_or_update_initial(
self,
@ -131,7 +131,7 @@ class VirtualNetworkRulesOperations(object):
# Construct URL
url = self._create_or_update_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -169,7 +169,7 @@ class VirtualNetworkRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def begin_create_or_update(
self,
@ -192,8 +192,8 @@ class VirtualNetworkRulesOperations(object):
:type parameters: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either VirtualNetworkRule or the result of cls(response)
@ -228,7 +228,7 @@ class VirtualNetworkRulesOperations(object):
return deserialized
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
@ -246,7 +246,7 @@ class VirtualNetworkRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def _delete_initial(
self,
@ -266,7 +266,7 @@ class VirtualNetworkRulesOperations(object):
# Construct URL
url = self._delete_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -291,7 +291,7 @@ class VirtualNetworkRulesOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def begin_delete(
self,
@ -311,8 +311,8 @@ class VirtualNetworkRulesOperations(object):
:type virtual_network_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the ARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be ARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either None or the result of cls(response)
@ -343,7 +343,7 @@ class VirtualNetworkRulesOperations(object):
return cls(pipeline_response, None, {})
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'virtualNetworkRuleName': self._serialize.url("virtual_network_rule_name", virtual_network_rule_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
@ -361,7 +361,7 @@ class VirtualNetworkRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}'} # type: ignore
def list_by_server(
self,
@ -398,7 +398,7 @@ class VirtualNetworkRulesOperations(object):
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
@ -436,4 +436,4 @@ class VirtualNetworkRulesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/virtualNetworkRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/virtualNetworkRules'} # type: ignore

Просмотреть файл

@ -35,23 +35,23 @@ class PostgreSQLManagementClient(object):
"""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.
:ivar servers: ServersOperations operations
:vartype servers: postgre_sql_management_client.operations.ServersOperations
:vartype servers: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ServersOperations
:ivar firewall_rules: FirewallRulesOperations operations
:vartype firewall_rules: postgre_sql_management_client.operations.FirewallRulesOperations
:vartype firewall_rules: azure.mgmt.rdbms.postgresql_flexibleservers.operations.FirewallRulesOperations
:ivar configurations: ConfigurationsOperations operations
:vartype configurations: postgre_sql_management_client.operations.ConfigurationsOperations
:vartype configurations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.ConfigurationsOperations
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability: postgre_sql_management_client.operations.CheckNameAvailabilityOperations
:vartype check_name_availability: azure.mgmt.rdbms.postgresql_flexibleservers.operations.CheckNameAvailabilityOperations
:ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations
:vartype location_based_capabilities: postgre_sql_management_client.operations.LocationBasedCapabilitiesOperations
:vartype location_based_capabilities: azure.mgmt.rdbms.postgresql_flexibleservers.operations.LocationBasedCapabilitiesOperations
:ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations
:vartype virtual_network_subnet_usage: postgre_sql_management_client.operations.VirtualNetworkSubnetUsageOperations
:vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql_flexibleservers.operations.VirtualNetworkSubnetUsageOperations
:ivar operations: Operations operations
:vartype operations: postgre_sql_management_client.operations.Operations
:vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.Operations
:ivar databases: DatabasesOperations operations
:vartype databases: postgre_sql_management_client.operations.DatabasesOperations
:vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.operations.DatabasesOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix: postgre_sql_management_client.operations.GetPrivateDnsZoneSuffixOperations
:vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.operations.GetPrivateDnsZoneSuffixOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.

Просмотреть файл

@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
VERSION = "9.0.0"
VERSION = "9.1.0b1"

Просмотреть файл

@ -33,23 +33,23 @@ class PostgreSQLManagementClient(object):
"""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.
:ivar servers: ServersOperations operations
:vartype servers: postgre_sql_management_client.aio.operations.ServersOperations
:vartype servers: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.ServersOperations
:ivar firewall_rules: FirewallRulesOperations operations
:vartype firewall_rules: postgre_sql_management_client.aio.operations.FirewallRulesOperations
:vartype firewall_rules: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.FirewallRulesOperations
:ivar configurations: ConfigurationsOperations operations
:vartype configurations: postgre_sql_management_client.aio.operations.ConfigurationsOperations
:vartype configurations: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.ConfigurationsOperations
:ivar check_name_availability: CheckNameAvailabilityOperations operations
:vartype check_name_availability: postgre_sql_management_client.aio.operations.CheckNameAvailabilityOperations
:vartype check_name_availability: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.CheckNameAvailabilityOperations
:ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations
:vartype location_based_capabilities: postgre_sql_management_client.aio.operations.LocationBasedCapabilitiesOperations
:vartype location_based_capabilities: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.LocationBasedCapabilitiesOperations
:ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations
:vartype virtual_network_subnet_usage: postgre_sql_management_client.aio.operations.VirtualNetworkSubnetUsageOperations
:vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.VirtualNetworkSubnetUsageOperations
:ivar operations: Operations operations
:vartype operations: postgre_sql_management_client.aio.operations.Operations
:vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.Operations
:ivar databases: DatabasesOperations operations
:vartype databases: postgre_sql_management_client.aio.operations.DatabasesOperations
:vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.DatabasesOperations
:ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations
:vartype get_private_dns_zone_suffix: postgre_sql_management_client.aio.operations.GetPrivateDnsZoneSuffixOperations
:vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.GetPrivateDnsZoneSuffixOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.

Просмотреть файл

@ -25,7 +25,7 @@ class CheckNameAvailabilityOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -49,10 +49,10 @@ class CheckNameAvailabilityOperations:
:param name_availability_request: The required parameters for checking if resource name is
available.
:type name_availability_request: ~postgre_sql_management_client.models.NameAvailabilityRequest
:type name_availability_request: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailabilityRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:return: NameAvailability, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.NameAvailability
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailability
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailability"]
@ -97,4 +97,4 @@ class CheckNameAvailabilityOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability'} # type: ignore

Просмотреть файл

@ -28,7 +28,7 @@ class ConfigurationsOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -57,7 +57,7 @@ class ConfigurationsOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ConfigurationListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.ConfigurationListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ConfigurationListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"]
@ -115,7 +115,7 @@ class ConfigurationsOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations'} # type: ignore
async def get(
self,
@ -134,7 +134,7 @@ class ConfigurationsOperations:
:type configuration_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Configuration, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Configuration
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"]
@ -177,7 +177,7 @@ class ConfigurationsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
async def _update_initial(
self,
@ -234,7 +234,7 @@ class ConfigurationsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
async def begin_update(
self,
@ -253,7 +253,7 @@ class ConfigurationsOperations:
:param configuration_name: The name of the server configuration.
:type configuration_name: str
:param parameters: The required parameters for updating a server configuration.
:type parameters: ~postgre_sql_management_client.models.Configuration
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -261,7 +261,7 @@ class ConfigurationsOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Configuration or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.Configuration]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -310,7 +310,7 @@ class ConfigurationsOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
async def _put_initial(
self,
@ -367,7 +367,7 @@ class ConfigurationsOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
_put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
async def begin_put(
self,
@ -386,7 +386,7 @@ class ConfigurationsOperations:
:param configuration_name: The name of the server configuration.
:type configuration_name: str
:param parameters: The required parameters for updating a server configuration.
:type parameters: ~postgre_sql_management_client.models.Configuration
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -394,7 +394,7 @@ class ConfigurationsOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Configuration or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.Configuration]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -443,4 +443,4 @@ class ConfigurationsOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore

Просмотреть файл

@ -28,7 +28,7 @@ class DatabasesOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -101,7 +101,7 @@ class DatabasesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
async def begin_create(
self,
@ -120,7 +120,7 @@ class DatabasesOperations:
:param database_name: The name of the database.
:type database_name: str
:param parameters: The required parameters for creating or updating a database.
:type parameters: ~postgre_sql_management_client.models.Database
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -128,7 +128,7 @@ class DatabasesOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Database or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.Database]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -177,7 +177,7 @@ class DatabasesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
async def _delete_initial(
self,
@ -223,7 +223,7 @@ class DatabasesOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
async def begin_delete(
self,
@ -292,7 +292,7 @@ class DatabasesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
async def get(
self,
@ -311,7 +311,7 @@ class DatabasesOperations:
:type database_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Database, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Database
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Database"]
@ -354,7 +354,7 @@ class DatabasesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def list_by_server(
self,
@ -370,7 +370,7 @@ class DatabasesOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DatabaseListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.DatabaseListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.DatabaseListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.DatabaseListResult"]
@ -428,4 +428,4 @@ class DatabasesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases'} # type: ignore

Просмотреть файл

@ -28,7 +28,7 @@ class FirewallRulesOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -101,7 +101,7 @@ class FirewallRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def begin_create_or_update(
self,
@ -120,7 +120,7 @@ class FirewallRulesOperations:
:param firewall_rule_name: The name of the server firewall rule.
:type firewall_rule_name: str
:param parameters: The required parameters for creating or updating a firewall rule.
:type parameters: ~postgre_sql_management_client.models.FirewallRule
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -128,7 +128,7 @@ class FirewallRulesOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either FirewallRule or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.FirewallRule]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -177,7 +177,7 @@ class FirewallRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def _delete_initial(
self,
@ -223,7 +223,7 @@ class FirewallRulesOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def begin_delete(
self,
@ -292,7 +292,7 @@ class FirewallRulesOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
async def get(
self,
@ -311,7 +311,7 @@ class FirewallRulesOperations:
:type firewall_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: FirewallRule, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.FirewallRule
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.FirewallRule"]
@ -354,7 +354,7 @@ class FirewallRulesOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def list_by_server(
self,
@ -370,7 +370,7 @@ class FirewallRulesOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either FirewallRuleListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.FirewallRuleListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRuleListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.FirewallRuleListResult"]
@ -428,4 +428,4 @@ class FirewallRulesOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules'} # type: ignore

Просмотреть файл

@ -25,7 +25,7 @@ class GetPrivateDnsZoneSuffixOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -84,4 +84,4 @@ class GetPrivateDnsZoneSuffixOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix'} # type: ignore
execute.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix'} # type: ignore

Просмотреть файл

@ -26,7 +26,7 @@ class LocationBasedCapabilitiesOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -52,7 +52,7 @@ class LocationBasedCapabilitiesOperations:
:type location_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either CapabilitiesListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.CapabilitiesListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.CapabilitiesListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilitiesListResult"]
@ -109,4 +109,4 @@ class LocationBasedCapabilitiesOperations:
return AsyncItemPaged(
get_next, extract_data
)
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities'} # type: ignore

Просмотреть файл

@ -25,7 +25,7 @@ class Operations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -48,7 +48,7 @@ class Operations:
:keyword callable cls: A custom type or function that will be passed the direct response
:return: OperationListResult, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.OperationListResult
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationListResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"]
@ -84,4 +84,4 @@ class Operations:
return cls(pipeline_response, deserialized, {})
return deserialized
list.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/operations'} # type: ignore
list.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/operations'} # type: ignore

Просмотреть файл

@ -28,7 +28,7 @@ class ServersOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -99,7 +99,7 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def begin_create(
self,
@ -115,7 +115,7 @@ class ServersOperations:
:param server_name: The name of the server.
:type server_name: str
:param parameters: The required parameters for creating or updating a server.
:type parameters: ~postgre_sql_management_client.models.Server
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -123,7 +123,7 @@ class ServersOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Server or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.Server]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -170,7 +170,7 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def _update_initial(
self,
@ -225,7 +225,7 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def begin_update(
self,
@ -242,7 +242,7 @@ class ServersOperations:
:param server_name: The name of the server.
:type server_name: str
:param parameters: The required parameters for updating a server.
:type parameters: ~postgre_sql_management_client.models.ServerForUpdate
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -250,7 +250,7 @@ class ServersOperations:
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either Server or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~postgre_sql_management_client.models.Server]
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
@ -297,7 +297,7 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def _delete_initial(
self,
@ -341,7 +341,7 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def begin_delete(
self,
@ -405,7 +405,7 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
async def get(
self,
@ -421,7 +421,7 @@ class ServersOperations:
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Server, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Server
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Server"]
@ -463,7 +463,7 @@ class ServersOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def list_by_resource_group(
self,
@ -476,7 +476,7 @@ class ServersOperations:
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ServerListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.ServerListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerListResult"]
@ -533,7 +533,7 @@ class ServersOperations:
return AsyncItemPaged(
get_next, extract_data
)
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers'} # type: ignore
def list(
self,
@ -543,7 +543,7 @@ class ServersOperations:
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ServerListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~postgre_sql_management_client.models.ServerListResult]
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerListResult"]
@ -599,7 +599,7 @@ class ServersOperations:
return AsyncItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers'} # type: ignore
async def _restart_initial(
self,
@ -652,7 +652,7 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart'} # type: ignore
async def begin_restart(
self,
@ -668,7 +668,7 @@ class ServersOperations:
:param server_name: The name of the server.
:type server_name: str
:param parameters: The parameters for restarting a server.
:type parameters: ~postgre_sql_management_client.models.RestartParameter
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.RestartParameter
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
@ -720,7 +720,7 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart'} # type: ignore
async def _start_initial(
self,
@ -764,7 +764,7 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore
_start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start'} # type: ignore
async def begin_start(
self,
@ -828,7 +828,7 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore
begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start'} # type: ignore
async def _stop_initial(
self,
@ -872,7 +872,7 @@ class ServersOperations:
if cls:
return cls(pipeline_response, None, {})
_stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore
_stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop'} # type: ignore
async def begin_stop(
self,
@ -936,4 +936,4 @@ class ServersOperations:
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore
begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop'} # type: ignore

Просмотреть файл

@ -25,7 +25,7 @@ class VirtualNetworkSubnetUsageOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -51,10 +51,10 @@ class VirtualNetworkSubnetUsageOperations:
:param location_name: The name of the location.
:type location_name: str
:param parameters: The required parameters for creating or updating a server.
:type parameters: ~postgre_sql_management_client.models.VirtualNetworkSubnetUsageParameter
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.VirtualNetworkSubnetUsageParameter
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VirtualNetworkSubnetUsageResult, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.VirtualNetworkSubnetUsageResult
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.VirtualNetworkSubnetUsageResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkSubnetUsageResult"]
@ -100,4 +100,4 @@ class VirtualNetworkSubnetUsageOperations:
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore

Просмотреть файл

@ -18,7 +18,8 @@ class Backup(msrest.serialization.Model):
:type backup_retention_days: int
:param geo_redundant_backup: A value indicating whether Geo-Redundant backup is enabled on the
server. Possible values include: "Enabled", "Disabled".
:type geo_redundant_backup: str or ~postgre_sql_management_client.models.GeoRedundantBackupEnum
:type geo_redundant_backup: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.GeoRedundantBackupEnum
:ivar earliest_restore_date: The earliest restore point time (ISO8601 format) for server.
:vartype earliest_restore_date: ~datetime.datetime
"""
@ -49,7 +50,7 @@ class CapabilitiesListResult(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.
:ivar value: A list of supported capabilities.
:vartype value: list[~postgre_sql_management_client.models.CapabilityProperties]
:vartype value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.CapabilityProperties]
:ivar next_link: Link to retrieve next page of results.
:vartype next_link: str
"""
@ -91,10 +92,10 @@ class CapabilityProperties(msrest.serialization.Model):
:vartype zone_redundant_ha_and_geo_backup_supported: bool
:ivar supported_flexible_server_editions:
:vartype supported_flexible_server_editions:
list[~postgre_sql_management_client.models.FlexibleServerEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FlexibleServerEditionCapability]
:ivar supported_hyperscale_node_editions:
:vartype supported_hyperscale_node_editions:
list[~postgre_sql_management_client.models.HyperscaleNodeEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.HyperscaleNodeEditionCapability]
:ivar status: The status.
:vartype status: str
"""
@ -218,7 +219,7 @@ class Configuration(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param value: Value of the configuration.
:type value: str
:ivar description: Description of the configuration.
@ -227,7 +228,8 @@ class Configuration(ProxyResource):
:vartype default_value: str
:ivar data_type: Data type of the configuration. Possible values include: "Boolean", "Numeric",
"Integer", "Enumeration".
:vartype data_type: str or ~postgre_sql_management_client.models.ConfigurationDataType
:vartype data_type: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.ConfigurationDataType
:ivar allowed_values: Allowed values of the configuration.
:vartype allowed_values: str
:param source: Source of the configuration.
@ -276,7 +278,7 @@ class ConfigurationListResult(msrest.serialization.Model):
"""A list of server configurations.
:param value: The list of server configurations.
:type value: list[~postgre_sql_management_client.models.Configuration]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -309,7 +311,7 @@ class Database(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param charset: The charset of the database.
:type charset: str
:param collation: The collation of the database.
@ -346,7 +348,7 @@ class DatabaseListResult(msrest.serialization.Model):
"""A List of databases.
:param value: The list of databases housed in a server.
:type value: list[~postgre_sql_management_client.models.Database]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database]
:param next_link: The link used to get the next page of databases.
:type next_link: str
"""
@ -437,9 +439,10 @@ class ErrorResponse(msrest.serialization.Model):
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list[~postgre_sql_management_client.models.ErrorResponse]
:vartype details: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ErrorResponse]
:ivar additional_info: The error additional info.
:vartype additional_info: list[~postgre_sql_management_client.models.ErrorAdditionalInfo]
:vartype additional_info:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ErrorAdditionalInfo]
"""
_validation = {
@ -486,7 +489,7 @@ class FirewallRule(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param start_ip_address: Required. The start IP address of the server firewall rule. Must be
IPv4 format.
:type start_ip_address: str
@ -527,7 +530,7 @@ class FirewallRuleListResult(msrest.serialization.Model):
"""A list of firewall rules.
:param value: The list of firewall rules in a server.
:type value: list[~postgre_sql_management_client.models.FirewallRule]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -555,10 +558,10 @@ class FlexibleServerEditionCapability(msrest.serialization.Model):
:vartype name: str
:ivar supported_storage_editions: The list of editions supported by this server edition.
:vartype supported_storage_editions:
list[~postgre_sql_management_client.models.StorageEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageEditionCapability]
:ivar supported_server_versions: The list of server versions supported by this server edition.
:vartype supported_server_versions:
list[~postgre_sql_management_client.models.ServerVersionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersionCapability]
:ivar status: The status.
:vartype status: str
"""
@ -594,11 +597,11 @@ class HighAvailability(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.
:param mode: The HA mode for the server. Possible values include: "Disabled", "ZoneRedundant".
:type mode: str or ~postgre_sql_management_client.models.HighAvailabilityMode
:type mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailabilityMode
:ivar state: A state of a HA server that is visible to user. Possible values include:
"NotEnabled", "CreatingStandby", "ReplicatingData", "FailingOver", "Healthy",
"RemovingStandby".
:vartype state: str or ~postgre_sql_management_client.models.ServerHAState
:vartype state: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerHAState
:param standby_availability_zone: availability zone information of the standby.
:type standby_availability_zone: str
"""
@ -632,12 +635,13 @@ class HyperscaleNodeEditionCapability(msrest.serialization.Model):
:vartype name: str
:ivar supported_storage_editions: The list of editions supported by this server edition.
:vartype supported_storage_editions:
list[~postgre_sql_management_client.models.StorageEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageEditionCapability]
:ivar supported_server_versions: The list of server versions supported by this server edition.
:vartype supported_server_versions:
list[~postgre_sql_management_client.models.ServerVersionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersionCapability]
:ivar supported_node_types: The list of Node Types supported by this server edition.
:vartype supported_node_types: list[~postgre_sql_management_client.models.NodeTypeCapability]
:vartype supported_node_types:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.NodeTypeCapability]
:ivar status: The status.
:vartype status: str
"""
@ -804,7 +808,7 @@ class Network(msrest.serialization.Model):
:ivar public_network_access: public network access is enabled or not. Possible values include:
"Enabled", "Disabled".
:vartype public_network_access: str or
~postgre_sql_management_client.models.ServerPublicNetworkAccessState
~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerPublicNetworkAccessState
:param delegated_subnet_resource_id: delegated subnet arm resource id.
:type delegated_subnet_resource_id: str
:param private_dns_zone_arm_resource_id: private dns zone arm resource id.
@ -874,12 +878,12 @@ class Operation(msrest.serialization.Model):
:ivar name: The name of the operation being performed on this particular object.
:vartype name: str
:ivar display: The localized display information for this particular operation or action.
:vartype display: ~postgre_sql_management_client.models.OperationDisplay
:vartype display: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationDisplay
:param is_data_action: Indicates whether the operation is a data action.
:type is_data_action: bool
:ivar origin: The intended executor of the operation. Possible values include: "NotSpecified",
"user", "system".
:vartype origin: str or ~postgre_sql_management_client.models.OperationOrigin
:vartype origin: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationOrigin
:ivar properties: Additional descriptions for the operation.
:vartype properties: dict[str, any]
"""
@ -955,7 +959,7 @@ class OperationListResult(msrest.serialization.Model):
"""A list of resource provider operations.
:param value: Collection of available operation details.
:type value: list[~postgre_sql_management_client.models.Operation]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Operation]
:param next_link: URL client should use to fetch the next page (per server side paging).
It's null for now, added for future use.
:type next_link: str
@ -1063,11 +1067,11 @@ class Server(TrackedResource):
: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: ~postgre_sql_management_client.models.Identity
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
:param sku: The SKU (pricing tier) of the server.
:type sku: ~postgre_sql_management_client.models.Sku
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param administrator_login: The administrator's login name of a server. Can only be specified
when the server is being created (and is required for creation).
:type administrator_login: str
@ -1075,24 +1079,24 @@ class Server(TrackedResource):
creation).
:type administrator_login_password: str
:param version: PostgreSQL Server version. Possible values include: "13", "12", "11".
:type version: str or ~postgre_sql_management_client.models.ServerVersion
:type version: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersion
:ivar minor_version: The minor version of the server.
:vartype minor_version: str
:ivar state: A state of a server that is visible to user. Possible values include: "Ready",
"Dropping", "Disabled", "Starting", "Stopping", "Stopped", "Updating".
:vartype state: str or ~postgre_sql_management_client.models.ServerState
:vartype state: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerState
:ivar fully_qualified_domain_name: The fully qualified domain name of a server.
:vartype fully_qualified_domain_name: str
:param storage: Storage properties of a server.
:type storage: ~postgre_sql_management_client.models.Storage
:type storage: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Storage
:param backup: Backup properties of a server.
:type backup: ~postgre_sql_management_client.models.Backup
:type backup: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Backup
:param network: Network properties of a server.
:type network: ~postgre_sql_management_client.models.Network
:type network: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Network
:param high_availability: High availability properties of a server.
:type high_availability: ~postgre_sql_management_client.models.HighAvailability
:type high_availability: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailability
:param maintenance_window: Maintenance window properties of a server.
:type maintenance_window: ~postgre_sql_management_client.models.MaintenanceWindow
:type maintenance_window: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.MaintenanceWindow
:param source_server_resource_id: The source server resource ID to restore from. It's required
when 'createMode' is 'PointInTimeRestore'.
:type source_server_resource_id: str
@ -1103,7 +1107,7 @@ class Server(TrackedResource):
:type availability_zone: str
:param create_mode: The mode to create a new PostgreSQL server. Possible values include:
"Default", "Create", "Update", "PointInTimeRestore".
:type create_mode: str or ~postgre_sql_management_client.models.CreateMode
:type create_mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreateMode
:param tags_properties_tags: Application-specific metadata in the form of key-value pairs.
:type tags_properties_tags: dict[str, str]
"""
@ -1178,22 +1182,23 @@ class ServerForUpdate(msrest.serialization.Model):
:param location: The location the resource resides in.
:type location: str
:param sku: The SKU (pricing tier) of the server.
:type sku: ~postgre_sql_management_client.models.Sku
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:param tags: A set of tags. Application-specific metadata in the form of key-value pairs.
:type tags: dict[str, str]
:param administrator_login_password: The password of the administrator login.
:type administrator_login_password: str
:param storage: Storage properties of a server.
:type storage: ~postgre_sql_management_client.models.Storage
:type storage: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Storage
:param backup: Backup properties of a server.
:type backup: ~postgre_sql_management_client.models.Backup
:type backup: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Backup
:param high_availability: High availability properties of a server.
:type high_availability: ~postgre_sql_management_client.models.HighAvailability
:type high_availability: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailability
:param maintenance_window: Maintenance window properties of a server.
:type maintenance_window: ~postgre_sql_management_client.models.MaintenanceWindow
:type maintenance_window: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.MaintenanceWindow
:param create_mode: The mode to update a new PostgreSQL server. Possible values include:
"Default", "Update".
:type create_mode: str or ~postgre_sql_management_client.models.CreateModeForUpdate
:type create_mode: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreateModeForUpdate
"""
_attribute_map = {
@ -1228,7 +1233,7 @@ class ServerListResult(msrest.serialization.Model):
"""A list of servers.
:param value: The list of flexible servers.
:type value: list[~postgre_sql_management_client.models.Server]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -1255,7 +1260,8 @@ class ServerVersionCapability(msrest.serialization.Model):
:ivar name: server version.
:vartype name: str
:ivar supported_vcores:
:vartype supported_vcores: list[~postgre_sql_management_client.models.VcoreCapability]
:vartype supported_vcores:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.VcoreCapability]
:ivar status: The status.
:vartype status: str
"""
@ -1292,7 +1298,7 @@ class Sku(msrest.serialization.Model):
:type name: str
:param tier: Required. The tier of the particular SKU, e.g. Burstable. Possible values include:
"Burstable", "GeneralPurpose", "MemoryOptimized".
:type tier: str or ~postgre_sql_management_client.models.SkuTier
:type tier: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SkuTier
"""
_validation = {
@ -1341,7 +1347,8 @@ class StorageEditionCapability(msrest.serialization.Model):
:ivar name: storage edition name.
:vartype name: str
:ivar supported_storage_mb:
:vartype supported_storage_mb: list[~postgre_sql_management_client.models.StorageMBCapability]
:vartype supported_storage_mb:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageMBCapability]
:ivar status: The status.
:vartype status: str
"""
@ -1415,14 +1422,15 @@ class SystemData(msrest.serialization.Model):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
:type created_by_type: str or ~postgre_sql_management_client.models.CreatedByType
:type created_by_type: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
:type last_modified_by_type: str or ~postgre_sql_management_client.models.CreatedByType
:type last_modified_by_type: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@ -1520,7 +1528,7 @@ class VirtualNetworkSubnetUsageResult(msrest.serialization.Model):
:ivar delegated_subnets_usage:
:vartype delegated_subnets_usage:
list[~postgre_sql_management_client.models.DelegatedSubnetUsage]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.DelegatedSubnetUsage]
"""
_validation = {

Просмотреть файл

@ -23,7 +23,8 @@ class Backup(msrest.serialization.Model):
:type backup_retention_days: int
:param geo_redundant_backup: A value indicating whether Geo-Redundant backup is enabled on the
server. Possible values include: "Enabled", "Disabled".
:type geo_redundant_backup: str or ~postgre_sql_management_client.models.GeoRedundantBackupEnum
:type geo_redundant_backup: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.GeoRedundantBackupEnum
:ivar earliest_restore_date: The earliest restore point time (ISO8601 format) for server.
:vartype earliest_restore_date: ~datetime.datetime
"""
@ -57,7 +58,7 @@ class CapabilitiesListResult(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.
:ivar value: A list of supported capabilities.
:vartype value: list[~postgre_sql_management_client.models.CapabilityProperties]
:vartype value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.CapabilityProperties]
:ivar next_link: Link to retrieve next page of results.
:vartype next_link: str
"""
@ -99,10 +100,10 @@ class CapabilityProperties(msrest.serialization.Model):
:vartype zone_redundant_ha_and_geo_backup_supported: bool
:ivar supported_flexible_server_editions:
:vartype supported_flexible_server_editions:
list[~postgre_sql_management_client.models.FlexibleServerEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FlexibleServerEditionCapability]
:ivar supported_hyperscale_node_editions:
:vartype supported_hyperscale_node_editions:
list[~postgre_sql_management_client.models.HyperscaleNodeEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.HyperscaleNodeEditionCapability]
:ivar status: The status.
:vartype status: str
"""
@ -226,7 +227,7 @@ class Configuration(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param value: Value of the configuration.
:type value: str
:ivar description: Description of the configuration.
@ -235,7 +236,8 @@ class Configuration(ProxyResource):
:vartype default_value: str
:ivar data_type: Data type of the configuration. Possible values include: "Boolean", "Numeric",
"Integer", "Enumeration".
:vartype data_type: str or ~postgre_sql_management_client.models.ConfigurationDataType
:vartype data_type: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.ConfigurationDataType
:ivar allowed_values: Allowed values of the configuration.
:vartype allowed_values: str
:param source: Source of the configuration.
@ -287,7 +289,7 @@ class ConfigurationListResult(msrest.serialization.Model):
"""A list of server configurations.
:param value: The list of server configurations.
:type value: list[~postgre_sql_management_client.models.Configuration]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -323,7 +325,7 @@ class Database(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param charset: The charset of the database.
:type charset: str
:param collation: The collation of the database.
@ -363,7 +365,7 @@ class DatabaseListResult(msrest.serialization.Model):
"""A List of databases.
:param value: The list of databases housed in a server.
:type value: list[~postgre_sql_management_client.models.Database]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database]
:param next_link: The link used to get the next page of databases.
:type next_link: str
"""
@ -457,9 +459,10 @@ class ErrorResponse(msrest.serialization.Model):
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list[~postgre_sql_management_client.models.ErrorResponse]
:vartype details: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ErrorResponse]
:ivar additional_info: The error additional info.
:vartype additional_info: list[~postgre_sql_management_client.models.ErrorAdditionalInfo]
:vartype additional_info:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ErrorAdditionalInfo]
"""
_validation = {
@ -506,7 +509,7 @@ class FirewallRule(ProxyResource):
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param start_ip_address: Required. The start IP address of the server firewall rule. Must be
IPv4 format.
:type start_ip_address: str
@ -550,7 +553,7 @@ class FirewallRuleListResult(msrest.serialization.Model):
"""A list of firewall rules.
:param value: The list of firewall rules in a server.
:type value: list[~postgre_sql_management_client.models.FirewallRule]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -581,10 +584,10 @@ class FlexibleServerEditionCapability(msrest.serialization.Model):
:vartype name: str
:ivar supported_storage_editions: The list of editions supported by this server edition.
:vartype supported_storage_editions:
list[~postgre_sql_management_client.models.StorageEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageEditionCapability]
:ivar supported_server_versions: The list of server versions supported by this server edition.
:vartype supported_server_versions:
list[~postgre_sql_management_client.models.ServerVersionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersionCapability]
:ivar status: The status.
:vartype status: str
"""
@ -620,11 +623,11 @@ class HighAvailability(msrest.serialization.Model):
Variables are only populated by the server, and will be ignored when sending a request.
:param mode: The HA mode for the server. Possible values include: "Disabled", "ZoneRedundant".
:type mode: str or ~postgre_sql_management_client.models.HighAvailabilityMode
:type mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailabilityMode
:ivar state: A state of a HA server that is visible to user. Possible values include:
"NotEnabled", "CreatingStandby", "ReplicatingData", "FailingOver", "Healthy",
"RemovingStandby".
:vartype state: str or ~postgre_sql_management_client.models.ServerHAState
:vartype state: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerHAState
:param standby_availability_zone: availability zone information of the standby.
:type standby_availability_zone: str
"""
@ -661,12 +664,13 @@ class HyperscaleNodeEditionCapability(msrest.serialization.Model):
:vartype name: str
:ivar supported_storage_editions: The list of editions supported by this server edition.
:vartype supported_storage_editions:
list[~postgre_sql_management_client.models.StorageEditionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageEditionCapability]
:ivar supported_server_versions: The list of server versions supported by this server edition.
:vartype supported_server_versions:
list[~postgre_sql_management_client.models.ServerVersionCapability]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersionCapability]
:ivar supported_node_types: The list of Node Types supported by this server edition.
:vartype supported_node_types: list[~postgre_sql_management_client.models.NodeTypeCapability]
:vartype supported_node_types:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.NodeTypeCapability]
:ivar status: The status.
:vartype status: str
"""
@ -848,7 +852,7 @@ class Network(msrest.serialization.Model):
:ivar public_network_access: public network access is enabled or not. Possible values include:
"Enabled", "Disabled".
:vartype public_network_access: str or
~postgre_sql_management_client.models.ServerPublicNetworkAccessState
~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerPublicNetworkAccessState
:param delegated_subnet_resource_id: delegated subnet arm resource id.
:type delegated_subnet_resource_id: str
:param private_dns_zone_arm_resource_id: private dns zone arm resource id.
@ -921,12 +925,12 @@ class Operation(msrest.serialization.Model):
:ivar name: The name of the operation being performed on this particular object.
:vartype name: str
:ivar display: The localized display information for this particular operation or action.
:vartype display: ~postgre_sql_management_client.models.OperationDisplay
:vartype display: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationDisplay
:param is_data_action: Indicates whether the operation is a data action.
:type is_data_action: bool
:ivar origin: The intended executor of the operation. Possible values include: "NotSpecified",
"user", "system".
:vartype origin: str or ~postgre_sql_management_client.models.OperationOrigin
:vartype origin: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationOrigin
:ivar properties: Additional descriptions for the operation.
:vartype properties: dict[str, any]
"""
@ -1004,7 +1008,7 @@ class OperationListResult(msrest.serialization.Model):
"""A list of resource provider operations.
:param value: Collection of available operation details.
:type value: list[~postgre_sql_management_client.models.Operation]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Operation]
:param next_link: URL client should use to fetch the next page (per server side paging).
It's null for now, added for future use.
:type next_link: str
@ -1121,11 +1125,11 @@ class Server(TrackedResource):
: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: ~postgre_sql_management_client.models.Identity
:type identity: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Identity
:param sku: The SKU (pricing tier) of the server.
:type sku: ~postgre_sql_management_client.models.Sku
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:ivar system_data: The system metadata relating to this resource.
:vartype system_data: ~postgre_sql_management_client.models.SystemData
:vartype system_data: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SystemData
:param administrator_login: The administrator's login name of a server. Can only be specified
when the server is being created (and is required for creation).
:type administrator_login: str
@ -1133,24 +1137,24 @@ class Server(TrackedResource):
creation).
:type administrator_login_password: str
:param version: PostgreSQL Server version. Possible values include: "13", "12", "11".
:type version: str or ~postgre_sql_management_client.models.ServerVersion
:type version: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerVersion
:ivar minor_version: The minor version of the server.
:vartype minor_version: str
:ivar state: A state of a server that is visible to user. Possible values include: "Ready",
"Dropping", "Disabled", "Starting", "Stopping", "Stopped", "Updating".
:vartype state: str or ~postgre_sql_management_client.models.ServerState
:vartype state: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerState
:ivar fully_qualified_domain_name: The fully qualified domain name of a server.
:vartype fully_qualified_domain_name: str
:param storage: Storage properties of a server.
:type storage: ~postgre_sql_management_client.models.Storage
:type storage: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Storage
:param backup: Backup properties of a server.
:type backup: ~postgre_sql_management_client.models.Backup
:type backup: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Backup
:param network: Network properties of a server.
:type network: ~postgre_sql_management_client.models.Network
:type network: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Network
:param high_availability: High availability properties of a server.
:type high_availability: ~postgre_sql_management_client.models.HighAvailability
:type high_availability: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailability
:param maintenance_window: Maintenance window properties of a server.
:type maintenance_window: ~postgre_sql_management_client.models.MaintenanceWindow
:type maintenance_window: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.MaintenanceWindow
:param source_server_resource_id: The source server resource ID to restore from. It's required
when 'createMode' is 'PointInTimeRestore'.
:type source_server_resource_id: str
@ -1161,7 +1165,7 @@ class Server(TrackedResource):
:type availability_zone: str
:param create_mode: The mode to create a new PostgreSQL server. Possible values include:
"Default", "Create", "Update", "PointInTimeRestore".
:type create_mode: str or ~postgre_sql_management_client.models.CreateMode
:type create_mode: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreateMode
:param tags_properties_tags: Application-specific metadata in the form of key-value pairs.
:type tags_properties_tags: dict[str, str]
"""
@ -1254,22 +1258,23 @@ class ServerForUpdate(msrest.serialization.Model):
:param location: The location the resource resides in.
:type location: str
:param sku: The SKU (pricing tier) of the server.
:type sku: ~postgre_sql_management_client.models.Sku
:type sku: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Sku
:param tags: A set of tags. Application-specific metadata in the form of key-value pairs.
:type tags: dict[str, str]
:param administrator_login_password: The password of the administrator login.
:type administrator_login_password: str
:param storage: Storage properties of a server.
:type storage: ~postgre_sql_management_client.models.Storage
:type storage: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Storage
:param backup: Backup properties of a server.
:type backup: ~postgre_sql_management_client.models.Backup
:type backup: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Backup
:param high_availability: High availability properties of a server.
:type high_availability: ~postgre_sql_management_client.models.HighAvailability
:type high_availability: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.HighAvailability
:param maintenance_window: Maintenance window properties of a server.
:type maintenance_window: ~postgre_sql_management_client.models.MaintenanceWindow
:type maintenance_window: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.MaintenanceWindow
:param create_mode: The mode to update a new PostgreSQL server. Possible values include:
"Default", "Update".
:type create_mode: str or ~postgre_sql_management_client.models.CreateModeForUpdate
:type create_mode: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreateModeForUpdate
"""
_attribute_map = {
@ -1314,7 +1319,7 @@ class ServerListResult(msrest.serialization.Model):
"""A list of servers.
:param value: The list of flexible servers.
:type value: list[~postgre_sql_management_client.models.Server]
:type value: list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:param next_link: The link used to get the next page of operations.
:type next_link: str
"""
@ -1344,7 +1349,8 @@ class ServerVersionCapability(msrest.serialization.Model):
:ivar name: server version.
:vartype name: str
:ivar supported_vcores:
:vartype supported_vcores: list[~postgre_sql_management_client.models.VcoreCapability]
:vartype supported_vcores:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.VcoreCapability]
:ivar status: The status.
:vartype status: str
"""
@ -1381,7 +1387,7 @@ class Sku(msrest.serialization.Model):
:type name: str
:param tier: Required. The tier of the particular SKU, e.g. Burstable. Possible values include:
"Burstable", "GeneralPurpose", "MemoryOptimized".
:type tier: str or ~postgre_sql_management_client.models.SkuTier
:type tier: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.SkuTier
"""
_validation = {
@ -1435,7 +1441,8 @@ class StorageEditionCapability(msrest.serialization.Model):
:ivar name: storage edition name.
:vartype name: str
:ivar supported_storage_mb:
:vartype supported_storage_mb: list[~postgre_sql_management_client.models.StorageMBCapability]
:vartype supported_storage_mb:
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.StorageMBCapability]
:ivar status: The status.
:vartype status: str
"""
@ -1509,14 +1516,15 @@ class SystemData(msrest.serialization.Model):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
:type created_by_type: str or ~postgre_sql_management_client.models.CreatedByType
:type created_by_type: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
:type last_modified_by_type: str or ~postgre_sql_management_client.models.CreatedByType
:type last_modified_by_type: str or
~azure.mgmt.rdbms.postgresql_flexibleservers.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@ -1623,7 +1631,7 @@ class VirtualNetworkSubnetUsageResult(msrest.serialization.Model):
:ivar delegated_subnets_usage:
:vartype delegated_subnets_usage:
list[~postgre_sql_management_client.models.DelegatedSubnetUsage]
list[~azure.mgmt.rdbms.postgresql_flexibleservers.models.DelegatedSubnetUsage]
"""
_validation = {

Просмотреть файл

@ -29,7 +29,7 @@ class CheckNameAvailabilityOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -54,10 +54,10 @@ class CheckNameAvailabilityOperations(object):
:param name_availability_request: The required parameters for checking if resource name is
available.
:type name_availability_request: ~postgre_sql_management_client.models.NameAvailabilityRequest
:type name_availability_request: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailabilityRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:return: NameAvailability, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.NameAvailability
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.NameAvailability
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailability"]
@ -102,4 +102,4 @@ class CheckNameAvailabilityOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability'} # type: ignore

Просмотреть файл

@ -32,7 +32,7 @@ class ConfigurationsOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -62,7 +62,7 @@ class ConfigurationsOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ConfigurationListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.ConfigurationListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ConfigurationListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"]
@ -120,7 +120,7 @@ class ConfigurationsOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations'} # type: ignore
def get(
self,
@ -140,7 +140,7 @@ class ConfigurationsOperations(object):
:type configuration_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Configuration, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Configuration
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"]
@ -183,7 +183,7 @@ class ConfigurationsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
def _update_initial(
self,
@ -241,7 +241,7 @@ class ConfigurationsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
def begin_update(
self,
@ -261,7 +261,7 @@ class ConfigurationsOperations(object):
:param configuration_name: The name of the server configuration.
:type configuration_name: str
:param parameters: The required parameters for updating a server configuration.
:type parameters: ~postgre_sql_management_client.models.Configuration
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -269,7 +269,7 @@ class ConfigurationsOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Configuration or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.Configuration]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -318,7 +318,7 @@ class ConfigurationsOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
def _put_initial(
self,
@ -376,7 +376,7 @@ class ConfigurationsOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
_put_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
def begin_put(
self,
@ -396,7 +396,7 @@ class ConfigurationsOperations(object):
:param configuration_name: The name of the server configuration.
:type configuration_name: str
:param parameters: The required parameters for updating a server configuration.
:type parameters: ~postgre_sql_management_client.models.Configuration
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -404,7 +404,7 @@ class ConfigurationsOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Configuration or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.Configuration]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Configuration]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -453,4 +453,4 @@ class ConfigurationsOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore
begin_put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore

Просмотреть файл

@ -32,7 +32,7 @@ class DatabasesOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -106,7 +106,7 @@ class DatabasesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def begin_create(
self,
@ -126,7 +126,7 @@ class DatabasesOperations(object):
:param database_name: The name of the database.
:type database_name: str
:param parameters: The required parameters for creating or updating a database.
:type parameters: ~postgre_sql_management_client.models.Database
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -134,7 +134,7 @@ class DatabasesOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Database or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.Database]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -183,7 +183,7 @@ class DatabasesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def _delete_initial(
self,
@ -230,7 +230,7 @@ class DatabasesOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def begin_delete(
self,
@ -300,7 +300,7 @@ class DatabasesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def get(
self,
@ -320,7 +320,7 @@ class DatabasesOperations(object):
:type database_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Database, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Database
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Database
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Database"]
@ -363,7 +363,7 @@ class DatabasesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore
def list_by_server(
self,
@ -380,7 +380,7 @@ class DatabasesOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DatabaseListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.DatabaseListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.DatabaseListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.DatabaseListResult"]
@ -438,4 +438,4 @@ class DatabasesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases'} # type: ignore

Просмотреть файл

@ -32,7 +32,7 @@ class FirewallRulesOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -106,7 +106,7 @@ class FirewallRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def begin_create_or_update(
self,
@ -126,7 +126,7 @@ class FirewallRulesOperations(object):
:param firewall_rule_name: The name of the server firewall rule.
:type firewall_rule_name: str
:param parameters: The required parameters for creating or updating a firewall rule.
:type parameters: ~postgre_sql_management_client.models.FirewallRule
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -134,7 +134,7 @@ class FirewallRulesOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either FirewallRule or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.FirewallRule]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -183,7 +183,7 @@ class FirewallRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def _delete_initial(
self,
@ -230,7 +230,7 @@ class FirewallRulesOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def begin_delete(
self,
@ -300,7 +300,7 @@ class FirewallRulesOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def get(
self,
@ -320,7 +320,7 @@ class FirewallRulesOperations(object):
:type firewall_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: FirewallRule, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.FirewallRule
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRule
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.FirewallRule"]
@ -363,7 +363,7 @@ class FirewallRulesOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore
def list_by_server(
self,
@ -380,7 +380,7 @@ class FirewallRulesOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either FirewallRuleListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.FirewallRuleListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.FirewallRuleListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.FirewallRuleListResult"]
@ -438,4 +438,4 @@ class FirewallRulesOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules'} # type: ignore
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules'} # type: ignore

Просмотреть файл

@ -29,7 +29,7 @@ class GetPrivateDnsZoneSuffixOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -89,4 +89,4 @@ class GetPrivateDnsZoneSuffixOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/getPrivateDnsZoneSuffix'} # type: ignore
execute.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix'} # type: ignore

Просмотреть файл

@ -30,7 +30,7 @@ class LocationBasedCapabilitiesOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -57,7 +57,7 @@ class LocationBasedCapabilitiesOperations(object):
:type location_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either CapabilitiesListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.CapabilitiesListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.CapabilitiesListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilitiesListResult"]
@ -114,4 +114,4 @@ class LocationBasedCapabilitiesOperations(object):
return ItemPaged(
get_next, extract_data
)
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities'} # type: ignore

Просмотреть файл

@ -29,7 +29,7 @@ class Operations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -53,7 +53,7 @@ class Operations(object):
:keyword callable cls: A custom type or function that will be passed the direct response
:return: OperationListResult, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.OperationListResult
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationListResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"]
@ -89,4 +89,4 @@ class Operations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
list.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/operations'} # type: ignore
list.metadata = {'url': '/providers/Microsoft.DBforPostgreSQL/operations'} # type: ignore

Просмотреть файл

@ -32,7 +32,7 @@ class ServersOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -104,7 +104,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def begin_create(
self,
@ -121,7 +121,7 @@ class ServersOperations(object):
:param server_name: The name of the server.
:type server_name: str
:param parameters: The required parameters for creating or updating a server.
:type parameters: ~postgre_sql_management_client.models.Server
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -129,7 +129,7 @@ class ServersOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Server or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.Server]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -176,7 +176,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def _update_initial(
self,
@ -232,7 +232,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def begin_update(
self,
@ -250,7 +250,7 @@ class ServersOperations(object):
:param server_name: The name of the server.
:type server_name: str
:param parameters: The required parameters for updating a server.
:type parameters: ~postgre_sql_management_client.models.ServerForUpdate
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -258,7 +258,7 @@ class ServersOperations(object):
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either Server or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~postgre_sql_management_client.models.Server]
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
@ -305,7 +305,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def _delete_initial(
self,
@ -350,7 +350,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
_delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def begin_delete(
self,
@ -415,7 +415,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def get(
self,
@ -432,7 +432,7 @@ class ServersOperations(object):
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: Server, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.Server
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Server
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.Server"]
@ -474,7 +474,7 @@ class ServersOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}'} # type: ignore
def list_by_resource_group(
self,
@ -488,7 +488,7 @@ class ServersOperations(object):
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ServerListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.ServerListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerListResult"]
@ -545,7 +545,7 @@ class ServersOperations(object):
return ItemPaged(
get_next, extract_data
)
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers'} # type: ignore
def list(
self,
@ -556,7 +556,7 @@ class ServersOperations(object):
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either ServerListResult or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~postgre_sql_management_client.models.ServerListResult]
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql_flexibleservers.models.ServerListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerListResult"]
@ -612,7 +612,7 @@ class ServersOperations(object):
return ItemPaged(
get_next, extract_data
)
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore
list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers'} # type: ignore
def _restart_initial(
self,
@ -666,7 +666,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore
_restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart'} # type: ignore
def begin_restart(
self,
@ -683,7 +683,7 @@ class ServersOperations(object):
:param server_name: The name of the server.
:type server_name: str
:param parameters: The parameters for restarting a server.
:type parameters: ~postgre_sql_management_client.models.RestartParameter
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.RestartParameter
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling.
@ -735,7 +735,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore
begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart'} # type: ignore
def _start_initial(
self,
@ -780,7 +780,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore
_start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start'} # type: ignore
def begin_start(
self,
@ -845,7 +845,7 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore
begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start'} # type: ignore
def _stop_initial(
self,
@ -890,7 +890,7 @@ class ServersOperations(object):
if cls:
return cls(pipeline_response, None, {})
_stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore
_stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop'} # type: ignore
def begin_stop(
self,
@ -955,4 +955,4 @@ class ServersOperations(object):
)
else:
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore
begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop'} # type: ignore

Просмотреть файл

@ -29,7 +29,7 @@ class VirtualNetworkSubnetUsageOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~postgre_sql_management_client.models
:type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@ -56,10 +56,10 @@ class VirtualNetworkSubnetUsageOperations(object):
:param location_name: The name of the location.
:type location_name: str
:param parameters: The required parameters for creating or updating a server.
:type parameters: ~postgre_sql_management_client.models.VirtualNetworkSubnetUsageParameter
:type parameters: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.VirtualNetworkSubnetUsageParameter
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VirtualNetworkSubnetUsageResult, or the result of cls(response)
:rtype: ~postgre_sql_management_client.models.VirtualNetworkSubnetUsageResult
:rtype: ~azure.mgmt.rdbms.postgresql_flexibleservers.models.VirtualNetworkSubnetUsageResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkSubnetUsageResult"]
@ -105,4 +105,4 @@ class VirtualNetworkSubnetUsageOperations(object):
return cls(pipeline_response, deserialized, {})
return deserialized
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore
execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore