azure.mgmt.rdbms.postgresql.operations module

class azure.mgmt.rdbms.postgresql.operations.CheckNameAvailabilityOperations(client, config, serializer, deserializer)[source]

Bases: object

CheckNameAvailabilityOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

execute(name_availability_request: ‘_models.NameAvailabilityRequest’, **kwargs: Any)_models.NameAvailability[source]

Check the availability of name for resource.

Parameters

name_availability_request (NameAvailabilityRequest) – The required parameters for checking if resource name is available.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

NameAvailability, or the result of cls(response)

Return type

NameAvailability

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ConfigurationsOperations(client, config, serializer, deserializer)[source]

Bases: object

ConfigurationsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, configuration_name: str, parameters: ‘_models.Configuration’, **kwargs: Any)LROPoller[‘_models.Configuration’][source]

Updates a configuration of a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • configuration_name (str) – The name of the server configuration.

  • parameters (Configuration) – The required parameters for updating a server configuration.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Configuration or the result of cls(response)

Return type

LROPoller[Configuration]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, configuration_name: str, **kwargs: Any)_models.Configuration[source]

Gets information about a configuration of server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • configuration_name (str) – The name of the server configuration.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Configuration, or the result of cls(response)

Return type

Configuration

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.ConfigurationListResult’][source]

List all the configurations in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ConfigurationListResult or the result of cls(response)

Return type

ItemPaged[ConfigurationListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.DatabasesOperations(client, config, serializer, deserializer)[source]

Bases: object

DatabasesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, database_name: str, parameters: ‘_models.Database’, **kwargs: Any)LROPoller[‘_models.Database’][source]

Creates a new database or updates an existing database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • database_name (str) – The name of the database.

  • parameters (Database) – The required parameters for creating or updating a database.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Database or the result of cls(response)

Return type

LROPoller[Database]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, database_name: str, **kwargs: Any)LROPoller[None][source]

Deletes a database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • database_name (str) – The name of the database.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, database_name: str, **kwargs: Any)_models.Database[source]

Gets information about a database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • database_name (str) – The name of the database.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Database, or the result of cls(response)

Return type

Database

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.DatabaseListResult’][source]

List all the databases in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either DatabaseListResult or the result of cls(response)

Return type

ItemPaged[DatabaseListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.FirewallRulesOperations(client, config, serializer, deserializer)[source]

Bases: object

FirewallRulesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, firewall_rule_name: str, parameters: ‘_models.FirewallRule’, **kwargs: Any)LROPoller[‘_models.FirewallRule’][source]

Creates a new firewall rule or updates an existing firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • firewall_rule_name (str) – The name of the server firewall rule.

  • parameters (FirewallRule) – The required parameters for creating or updating a firewall rule.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either FirewallRule or the result of cls(response)

Return type

LROPoller[FirewallRule]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, firewall_rule_name: str, **kwargs: Any)LROPoller[None][source]

Deletes a server firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • firewall_rule_name (str) – The name of the server firewall rule.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, firewall_rule_name: str, **kwargs: Any)_models.FirewallRule[source]

Gets information about a server firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • firewall_rule_name (str) – The name of the server firewall rule.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

FirewallRule, or the result of cls(response)

Return type

FirewallRule

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.FirewallRuleListResult’][source]

List all the firewall rules in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either FirewallRuleListResult or the result of cls(response)

Return type

ItemPaged[FirewallRuleListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.LocationBasedPerformanceTierOperations(client, config, serializer, deserializer)[source]

Bases: object

LocationBasedPerformanceTierOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list(location_name: str, **kwargs: Any)Iterable[‘_models.PerformanceTierListResult’][source]

List all the performance tiers at specified location in a given subscription.

Parameters

location_name (str) – The name of the location.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PerformanceTierListResult or the result of cls(response)

Return type

ItemPaged[PerformanceTierListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.LogFilesOperations(client, config, serializer, deserializer)[source]

Bases: object

LogFilesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.LogFileListResult’][source]

List all the log files in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either LogFileListResult or the result of cls(response)

Return type

ItemPaged[LogFileListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list(**kwargs: Any)_models.OperationListResult[source]

Lists all of the available REST API operations.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

OperationListResult, or the result of cls(response)

Return type

OperationListResult

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.PrivateEndpointConnectionsOperations(client, config, serializer, deserializer)[source]

Bases: object

PrivateEndpointConnectionsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: ‘_models.PrivateEndpointConnection’, **kwargs: Any)LROPoller[‘_models.PrivateEndpointConnection’][source]

Approve or reject a private endpoint connection with a given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • private_endpoint_connection_name (str) –

  • parameters (PrivateEndpointConnection) –

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)

Return type

LROPoller[PrivateEndpointConnection]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, **kwargs: Any)LROPoller[None][source]

Deletes a private endpoint connection with a given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • private_endpoint_connection_name (str) –

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_update_tags(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: ‘_models.TagsObject’, **kwargs: Any)LROPoller[‘_models.PrivateEndpointConnection’][source]

Updates tags on private endpoint connection.

Updates private endpoint connection with the specified tags.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • private_endpoint_connection_name (str) –

  • parameters (TagsObject) – Parameters supplied to the Update private endpoint connection Tags operation.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)

Return type

LROPoller[PrivateEndpointConnection]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, **kwargs: Any)_models.PrivateEndpointConnection[source]

Gets a private endpoint connection.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • private_endpoint_connection_name (str) – The name of the private endpoint connection.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PrivateEndpointConnection, or the result of cls(response)

Return type

PrivateEndpointConnection

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.PrivateEndpointConnectionListResult’][source]

Gets all private endpoint connections on a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PrivateEndpointConnectionListResult or the result of cls(response)

Return type

ItemPaged[PrivateEndpointConnectionListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.PrivateLinkResourcesOperations(client, config, serializer, deserializer)[source]

Bases: object

PrivateLinkResourcesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

get(resource_group_name: str, server_name: str, group_name: str, **kwargs: Any)_models.PrivateLinkResource[source]

Gets a private link resource for PostgreSQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • group_name (str) – The name of the private link resource.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PrivateLinkResource, or the result of cls(response)

Return type

PrivateLinkResource

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.PrivateLinkResourceListResult’][source]

Gets the private link resources for PostgreSQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PrivateLinkResourceListResult or the result of cls(response)

Return type

ItemPaged[PrivateLinkResourceListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.RecoverableServersOperations(client, config, serializer, deserializer)[source]

Bases: object

RecoverableServersOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

get(resource_group_name: str, server_name: str, **kwargs: Any)_models.RecoverableServerResource[source]

Gets a recoverable PostgreSQL Server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

RecoverableServerResource, or the result of cls(response)

Return type

RecoverableServerResource

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ReplicasOperations(client, config, serializer, deserializer)[source]

Bases: object

ReplicasOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.ServerListResult’][source]

List all the replicas for a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerListResult or the result of cls(response)

Return type

ItemPaged[ServerListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServerAdministratorsOperations(client, config, serializer, deserializer)[source]

Bases: object

ServerAdministratorsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, properties: ‘_models.ServerAdministratorResource’, **kwargs: Any)LROPoller[‘_models.ServerAdministratorResource’][source]

Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • properties (ServerAdministratorResource) – The required parameters for creating or updating an AAD server administrator.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerAdministratorResource or the result of cls(response)

Return type

LROPoller[ServerAdministratorResource]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, **kwargs: Any)LROPoller[None][source]

Deletes server active directory administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, **kwargs: Any)_models.ServerAdministratorResource[source]

Gets information about a AAD server administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerAdministratorResource, or the result of cls(response)

Return type

ServerAdministratorResource

Raises

~azure.core.exceptions.HttpResponseError

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.ServerAdministratorResourceListResult’][source]

Returns a list of server Administrators.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerAdministratorResourceListResult or the result of cls(response)

Return type

ItemPaged[ServerAdministratorResourceListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServerBasedPerformanceTierOperations(client, config, serializer, deserializer)[source]

Bases: object

ServerBasedPerformanceTierOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.PerformanceTierListResult’][source]

List all the performance tiers for a PostgreSQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PerformanceTierListResult or the result of cls(response)

Return type

ItemPaged[PerformanceTierListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServerKeysOperations(client, config, serializer, deserializer)[source]

Bases: object

ServerKeysOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(server_name: str, key_name: str, resource_group_name: str, parameters: ‘_models.ServerKey’, **kwargs: Any)LROPoller[‘_models.ServerKey’][source]

Creates or updates a PostgreSQL Server key.

Parameters
  • server_name (str) – The name of the server.

  • key_name (str) – The name of the PostgreSQL Server key to be operated on (updated or created).

  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • parameters (ServerKey) – The requested PostgreSQL Server key resource state.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerKey or the result of cls(response)

Return type

LROPoller[ServerKey]

Raises

HttpResponseError

begin_delete(server_name: str, key_name: str, resource_group_name: str, **kwargs: Any)LROPoller[None][source]

Deletes the PostgreSQL Server key with the given name.

Parameters
  • server_name (str) – The name of the server.

  • key_name (str) – The name of the PostgreSQL Server key to be deleted.

  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, key_name: str, **kwargs: Any)_models.ServerKey[source]

Gets a PostgreSQL Server key.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • key_name (str) – The name of the PostgreSQL Server key to be retrieved.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerKey, or the result of cls(response)

Return type

ServerKey

Raises

~azure.core.exceptions.HttpResponseError

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.ServerKeyListResult’][source]

Gets a list of Server keys.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerKeyListResult or the result of cls(response)

Return type

ItemPaged[ServerKeyListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServerParametersOperations(client, config, serializer, deserializer)[source]

Bases: object

ServerParametersOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_list_update_configurations(resource_group_name: str, server_name: str, value: ‘_models.ConfigurationListResult’, **kwargs: Any)LROPoller[‘_models.ConfigurationListResult’][source]

Update a list of configurations in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • value (ConfigurationListResult) – The parameters for updating a list of server configuration.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ConfigurationListResult or the result of cls(response)

Return type

LROPoller[ConfigurationListResult]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServerSecurityAlertPoliciesOperations(client, config, serializer, deserializer)[source]

Bases: object

ServerSecurityAlertPoliciesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, ‘_models.SecurityAlertPolicyName’], parameters: ‘_models.ServerSecurityAlertPolicy’, **kwargs: Any)LROPoller[‘_models.ServerSecurityAlertPolicy’][source]

Creates or updates a threat detection policy.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • security_alert_policy_name (str or SecurityAlertPolicyName) – The name of the threat detection policy.

  • parameters (ServerSecurityAlertPolicy) – The server security alert policy.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerSecurityAlertPolicy or the result of cls(response)

Return type

LROPoller[ServerSecurityAlertPolicy]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, ‘_models.SecurityAlertPolicyName’], **kwargs: Any)_models.ServerSecurityAlertPolicy[source]

Get a server’s security alert policy.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • security_alert_policy_name (str or SecurityAlertPolicyName) – The name of the security alert policy.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerSecurityAlertPolicy, or the result of cls(response)

Return type

ServerSecurityAlertPolicy

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.ServerSecurityAlertPolicyListResult’][source]

Get the server’s threat detection policies.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerSecurityAlertPolicyListResult or the result of cls(response)

Return type

ItemPaged[ServerSecurityAlertPolicyListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.ServersOperations(client, config, serializer, deserializer)[source]

Bases: object

ServersOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create(resource_group_name: str, server_name: str, parameters: ‘_models.ServerForCreate’, **kwargs: Any)LROPoller[‘_models.Server’][source]

Creates a new server, or will overwrite an existing server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • parameters (ServerForCreate) – The required parameters for creating or updating a server.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Server or the result of cls(response)

Return type

LROPoller[Server]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, **kwargs: Any)LROPoller[None][source]

Deletes a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_restart(resource_group_name: str, server_name: str, **kwargs: Any)LROPoller[None][source]

Restarts a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_update(resource_group_name: str, server_name: str, parameters: ‘_models.ServerUpdateParameters’, **kwargs: Any)LROPoller[‘_models.Server’][source]

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • parameters (ServerUpdateParameters) – The required parameters for updating a server.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Server or the result of cls(response)

Return type

LROPoller[Server]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, **kwargs: Any)_models.Server[source]

Gets information about a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Server, or the result of cls(response)

Return type

Server

Raises

~azure.core.exceptions.HttpResponseError

list(**kwargs: Any)Iterable[‘_models.ServerListResult’][source]

List all the servers in a given subscription.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerListResult or the result of cls(response)

Return type

ItemPaged[ServerListResult]

Raises

~azure.core.exceptions.HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any)Iterable[‘_models.ServerListResult’][source]

List all the servers in a given resource group.

Parameters

resource_group_name (str) – The name of the resource group. The name is case insensitive.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerListResult or the result of cls(response)

Return type

ItemPaged[ServerListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>
class azure.mgmt.rdbms.postgresql.operations.VirtualNetworkRulesOperations(client, config, serializer, deserializer)[source]

Bases: object

VirtualNetworkRulesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create_or_update(resource_group_name: str, server_name: str, virtual_network_rule_name: str, parameters: ‘_models.VirtualNetworkRule’, **kwargs: Any)LROPoller[‘_models.VirtualNetworkRule’][source]

Creates or updates an existing virtual network rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • virtual_network_rule_name (str) – The name of the virtual network rule.

  • parameters (VirtualNetworkRule) – The requested virtual Network Rule Resource state.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either VirtualNetworkRule or the result of cls(response)

Return type

LROPoller[VirtualNetworkRule]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, virtual_network_rule_name: str, **kwargs: Any)LROPoller[None][source]

Deletes the virtual network rule with the given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • virtual_network_rule_name (str) – The name of the virtual network rule.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – 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.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, virtual_network_rule_name: str, **kwargs: Any)_models.VirtualNetworkRule[source]

Gets a virtual network rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

  • virtual_network_rule_name (str) – The name of the virtual network rule.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

VirtualNetworkRule, or the result of cls(response)

Return type

VirtualNetworkRule

Raises

~azure.core.exceptions.HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[‘_models.VirtualNetworkRuleListResult’][source]

Gets a list of virtual network rules in a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • server_name (str) – The name of the server.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either VirtualNetworkRuleListResult or the result of cls(response)

Return type

ItemPaged[VirtualNetworkRuleListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.rdbms.postgresql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/rdbms/postgresql/models/__init__.py'>