RestorableDatabaseAccountsOperations Class

RestorableDatabaseAccountsOperations 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.

Inheritance
builtins.object
RestorableDatabaseAccountsOperations

Constructor

RestorableDatabaseAccountsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

get_by_location

Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/>>*<<' permission.

list

Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

list_by_location

Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

get_by_location

Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/>>*<<' permission.

get_by_location(location, instance_id, **kwargs)

Parameters

location
str
Required

Cosmos DB region, with spaces between words and each word capitalized.

instance_id
str
Required

The instanceId GUID of a restorable database account.

cls
callable

A custom type or function that will be passed the direct response

Returns

RestorableDatabaseAccountGetResult, or the result of cls(response)

Return type

list

Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

list(**kwargs)

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

list_by_location

Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

list_by_location(location, **kwargs)

Parameters

location
str
Required

Cosmos DB region, with spaces between words and each word capitalized.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Attributes

models

models = <module 'azure.mgmt.cosmosdb.models' from 'c:\\hostedtoolcache\\windows\\python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\cosmosdb\\models\\__init__.py'>