azure.mgmt.cosmosdb.operations module¶
-
class
azure.mgmt.cosmosdb.operations.
CassandraClustersOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CassandraClustersOperations 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_update
(resource_group_name: str, cluster_name: str, body: ‘_models.ClusterResource’, **kwargs: Any) → LROPoller[‘_models.ClusterResource’][source]¶ Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
cluster_name (str) – Managed Cassandra cluster name.
body (ClusterResource) – The properties specifying the desired state of the managed Cassandra cluster.
- 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 ClusterResource or the result of cls(response)
- Return type
- Raises
-
begin_delete
(resource_group_name: str, cluster_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes a managed Cassandra cluster.
- Parameters
- 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
- Raises
-
begin_fetch_node_status
(resource_group_name: str, cluster_name: str, **kwargs: Any) → LROPoller[‘_models.ClusterNodeStatus’][source]¶ Request the status of all nodes in the cluster (as returned by ‘nodetool status’).
- Parameters
- 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 ClusterNodeStatus or the result of cls(response)
- Return type
- Raises
-
begin_request_repair
(resource_group_name: str, cluster_name: str, body: ‘_models.RepairPostBody’, **kwargs: Any) → LROPoller[None][source]¶ Request that repair begin on this cluster as soon as possible.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
cluster_name (str) – Managed Cassandra cluster name.
body (RepairPostBody) – Specification of what keyspaces and tables to run repair on.
- 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
- Raises
-
begin_update
(resource_group_name: str, cluster_name: str, body: ‘_models.ClusterResource’, **kwargs: Any) → LROPoller[‘_models.ClusterResource’][source]¶ Updates some of the properties of a managed Cassandra cluster.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
cluster_name (str) – Managed Cassandra cluster name.
body (ClusterResource) – Parameters to provide for specifying the managed Cassandra cluster.
- 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 ClusterResource or the result of cls(response)
- Return type
- Raises
-
get
(resource_group_name: str, cluster_name: str, **kwargs: Any) → _models.ClusterResource[source]¶ Get the properties of a managed Cassandra cluster.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ClusterResource, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_backup
(resource_group_name: str, cluster_name: str, backup_id: str, **kwargs: Any) → _models.BackupResource[source]¶ Get the properties of an individual backup of this cluster that is available to restore.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
BackupResource, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_backups
(resource_group_name: str, cluster_name: str, **kwargs: Any) → Iterable[‘_models.ListBackups’][source]¶ List the backups of this cluster that are available to restore.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either ListBackups or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_resource_group
(resource_group_name: str, **kwargs: Any) → Iterable[‘_models.ListClusters’][source]¶ List all managed Cassandra clusters in this 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 ListClusters or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_subscription
(**kwargs: Any) → Iterable[‘_models.ListClusters’][source]¶ List all managed Cassandra clusters in this subscription.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either ListClusters or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CassandraDataCentersOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CassandraDataCentersOperations 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_update
(resource_group_name: str, cluster_name: str, data_center_name: str, body: ‘_models.DataCenterResource’, **kwargs: Any) → LROPoller[‘_models.DataCenterResource’][source]¶ Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
cluster_name (str) – Managed Cassandra cluster name.
data_center_name (str) – Data center name in a managed Cassandra cluster.
body (DataCenterResource) – Parameters specifying the managed Cassandra data center.
- 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 DataCenterResource or the result of cls(response)
- Return type
- Raises
-
begin_delete
(resource_group_name: str, cluster_name: str, data_center_name: str, **kwargs: Any) → LROPoller[None][source]¶ Delete a managed Cassandra data center.
- Parameters
- 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
- Raises
-
begin_update
(resource_group_name: str, cluster_name: str, data_center_name: str, body: ‘_models.DataCenterResource’, **kwargs: Any) → LROPoller[‘_models.DataCenterResource’][source]¶ Update some of the properties of a managed Cassandra data center.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
cluster_name (str) – Managed Cassandra cluster name.
data_center_name (str) – Data center name in a managed Cassandra cluster.
body (DataCenterResource) – Parameters to provide for specifying the managed Cassandra data center.
- 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 DataCenterResource or the result of cls(response)
- Return type
- Raises
-
get
(resource_group_name: str, cluster_name: str, data_center_name: str, **kwargs: Any) → _models.DataCenterResource[source]¶ Get the properties of a managed Cassandra data center.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DataCenterResource, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list
(resource_group_name: str, cluster_name: str, **kwargs: Any) → Iterable[‘_models.ListDataCenters’][source]¶ List all data centers in a particular managed Cassandra cluster.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either ListDataCenters or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CassandraResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CassandraResourcesOperations 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_update_cassandra_keyspace
(resource_group_name: str, account_name: str, keyspace_name: str, create_update_cassandra_keyspace_parameters: ‘_models.CassandraKeyspaceCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.CassandraKeyspaceGetResults’][source]¶ Create or update an Azure Cosmos DB Cassandra keyspace.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
create_update_cassandra_keyspace_parameters (CassandraKeyspaceCreateUpdateParameters) – The parameters to provide for the current Cassandra keyspace.
- 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 CassandraKeyspaceGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_cassandra_table
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, create_update_cassandra_table_parameters: ‘_models.CassandraTableCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.CassandraTableGetResults’][source]¶ Create or update an Azure Cosmos DB Cassandra Table.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
table_name (str) – Cosmos DB table name.
create_update_cassandra_table_parameters (CassandraTableCreateUpdateParameters) – The parameters to provide for the current Cassandra Table.
- 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 CassandraTableGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_cassandra_view
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, create_update_cassandra_view_parameters: ‘_models.CassandraViewCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.CassandraViewGetResults’][source]¶ Create or update an Azure Cosmos DB Cassandra View.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
view_name (str) – Cosmos DB view name.
create_update_cassandra_view_parameters (CassandraViewCreateUpdateParameters) – The parameters to provide for the current Cassandra View.
- 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 CassandraViewGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_cassandra_keyspace
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Cassandra keyspace.
- Parameters
- 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
- Raises
-
begin_delete_cassandra_table
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Cassandra table.
- Parameters
- 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
- Raises
-
begin_delete_cassandra_view
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Cassandra view.
- Parameters
- 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
- Raises
-
begin_migrate_cassandra_keyspace_to_autoscale
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_cassandra_keyspace_to_manual_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_cassandra_table_to_autoscale
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_cassandra_table_to_manual_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_cassandra_view_to_autoscale
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_cassandra_view_to_manual_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_cassandra_keyspace_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current Cassandra Keyspace.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_cassandra_table_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Cassandra table.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
table_name (str) – Cosmos DB table name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current Cassandra table.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_cassandra_view_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Cassandra view.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
keyspace_name (str) – Cosmos DB keyspace name.
view_name (str) – Cosmos DB view name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current Cassandra view.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
get_cassandra_keyspace
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → _models.CassandraKeyspaceGetResults[source]¶ Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
CassandraKeyspaceGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_cassandra_keyspace_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_cassandra_table
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) → _models.CassandraTableGetResults[source]¶ Gets the Cassandra table under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
CassandraTableGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_cassandra_table_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_cassandra_view
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, **kwargs: Any) → _models.CassandraViewGetResults[source]¶ Gets the Cassandra view under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
CassandraViewGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_cassandra_view_throughput
(resource_group_name: str, account_name: str, keyspace_name: str, view_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_cassandra_keyspaces
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.CassandraKeyspaceListResult’][source]¶ Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either CassandraKeyspaceListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_cassandra_tables
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → Iterable[‘_models.CassandraTableListResult’][source]¶ Lists the Cassandra table under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either CassandraTableListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_cassandra_views
(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) → Iterable[‘_models.CassandraViewListResult’][source]¶ Lists the Cassandra materialized views under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either CassandraViewListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CollectionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CollectionOperations 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_metric_definitions
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, **kwargs: Any) → Iterable[‘_models.MetricDefinitionsListResult’][source]¶ Retrieves metric definitions for the given collection.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricDefinitionsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_metrics
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, filter: str, **kwargs: Any) → Iterable[‘_models.MetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account and collection.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_usages
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, filter: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.UsagesResult’][source]¶ Retrieves the usages (most recent storage data) for the given collection.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either UsagesResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CollectionPartitionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CollectionPartitionOperations 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_metrics
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, filter: str, **kwargs: Any) → Iterable[‘_models.PartitionMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given collection, split by partition.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PartitionMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_usages
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, filter: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.PartitionUsagesResult’][source]¶ Retrieves the usages (most recent storage data) for the given collection, split by partition.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PartitionUsagesResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CollectionPartitionRegionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CollectionPartitionRegionOperations 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_metrics
(resource_group_name: str, account_name: str, region: str, database_rid: str, collection_rid: str, filter: str, **kwargs: Any) → Iterable[‘_models.PartitionMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region (str) – Cosmos DB region, with spaces between words and each word capitalized.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PartitionMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CollectionRegionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
CollectionRegionOperations 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_metrics
(resource_group_name: str, account_name: str, region: str, database_rid: str, collection_rid: str, filter: str, **kwargs: Any) → Iterable[‘_models.MetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account, collection and region.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region (str) – Cosmos DB region, with spaces between words and each word capitalized.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
CosmosDBManagementClientOperationsMixin
[source]¶ Bases:
object
-
location_get
(location: str, **kwargs: Any) → _models.LocationGetResult[source]¶ Get the properties of an existing Cosmos DB location.
- Parameters
location (str) – Cosmos DB region, with spaces between words and each word capitalized.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
LocationGetResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
location_list
(**kwargs: Any) → Iterable[‘_models.LocationListResult’][source]¶ List Cosmos DB locations and their properties.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either LocationListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
-
class
azure.mgmt.cosmosdb.operations.
DatabaseAccountRegionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
DatabaseAccountRegionOperations 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_metrics
(resource_group_name: str, account_name: str, region: str, filter: str, **kwargs: Any) → Iterable[‘_models.MetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account and region.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region (str) – Cosmos DB region, with spaces between words and each word capitalized.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
DatabaseAccountsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
DatabaseAccountsOperations 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, account_name: str, create_update_parameters: ‘_models.DatabaseAccountCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.DatabaseAccountGetResults’][source]¶ Creates or updates an Azure Cosmos DB database account. The “Update” method is preferred when performing updates on an account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
create_update_parameters (DatabaseAccountCreateUpdateParameters) – The parameters to provide for the current database account.
- 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 DatabaseAccountGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete
(resource_group_name: str, account_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB database account.
- Parameters
- 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
- Raises
-
begin_failover_priority_change
(resource_group_name: str, account_name: str, failover_parameters: ‘_models.FailoverPolicies’, **kwargs: Any) → LROPoller[None][source]¶ Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
failover_parameters (FailoverPolicies) – The new failover policies for the database account.
- 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
- Raises
-
begin_offline_region
(resource_group_name: str, account_name: str, region_parameter_for_offline: ‘_models.RegionForOnlineOffline’, **kwargs: Any) → LROPoller[None][source]¶ Offline the specified region for the specified Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region_parameter_for_offline (RegionForOnlineOffline) – Cosmos DB region to offline for the database account.
- 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
- Raises
-
begin_online_region
(resource_group_name: str, account_name: str, region_parameter_for_online: ‘_models.RegionForOnlineOffline’, **kwargs: Any) → LROPoller[None][source]¶ Online the specified region for the specified Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region_parameter_for_online (RegionForOnlineOffline) – Cosmos DB region to online for the database account.
- 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
- Raises
-
begin_regenerate_key
(resource_group_name: str, account_name: str, key_to_regenerate: ‘_models.DatabaseAccountRegenerateKeyParameters’, **kwargs: Any) → LROPoller[None][source]¶ Regenerates an access key for the specified Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
key_to_regenerate (DatabaseAccountRegenerateKeyParameters) – The name of the key to regenerate.
- 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
- Raises
-
begin_update
(resource_group_name: str, account_name: str, update_parameters: ‘_models.DatabaseAccountUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.DatabaseAccountGetResults’][source]¶ Updates the properties of an existing Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
update_parameters (DatabaseAccountUpdateParameters) – The parameters to provide for the current database account.
- 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 DatabaseAccountGetResults or the result of cls(response)
- Return type
- Raises
-
check_name_exists
(account_name: str, **kwargs: Any) → bool[source]¶ Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the ‘-‘ character, and must be between 3 and 50 characters.
-
get
(resource_group_name: str, account_name: str, **kwargs: Any) → _models.DatabaseAccountGetResults[source]¶ Retrieves the properties of an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DatabaseAccountGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_read_only_keys
(resource_group_name: str, account_name: str, **kwargs: Any) → _models.DatabaseAccountListReadOnlyKeysResult[source]¶ Lists the read-only access keys for the specified Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DatabaseAccountListReadOnlyKeysResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list
(**kwargs: Any) → Iterable[‘_models.DatabaseAccountsListResult’][source]¶ Lists all the Azure Cosmos DB database accounts available under the subscription.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either DatabaseAccountsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_resource_group
(resource_group_name: str, **kwargs: Any) → Iterable[‘_models.DatabaseAccountsListResult’][source]¶ Lists all the Azure Cosmos DB database accounts available under the 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 DatabaseAccountsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_connection_strings
(resource_group_name: str, account_name: str, **kwargs: Any) → _models.DatabaseAccountListConnectionStringsResult[source]¶ Lists the connection strings for the specified Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DatabaseAccountListConnectionStringsResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_keys
(resource_group_name: str, account_name: str, **kwargs: Any) → _models.DatabaseAccountListKeysResult[source]¶ Lists the access keys for the specified Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DatabaseAccountListKeysResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_metric_definitions
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.MetricDefinitionsListResult’][source]¶ Retrieves metric definitions for the given database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricDefinitionsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_metrics
(resource_group_name: str, account_name: str, filter: str, **kwargs: Any) → Iterable[‘_models.MetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_read_only_keys
(resource_group_name: str, account_name: str, **kwargs: Any) → _models.DatabaseAccountListReadOnlyKeysResult[source]¶ Lists the read-only access keys for the specified Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
DatabaseAccountListReadOnlyKeysResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_usages
(resource_group_name: str, account_name: str, filter: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.UsagesResult’][source]¶ Retrieves the usages (most recent data) for the given database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
filter (str) – An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either UsagesResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
DatabaseOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
DatabaseOperations 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_metric_definitions
(resource_group_name: str, account_name: str, database_rid: str, **kwargs: Any) → Iterable[‘_models.MetricDefinitionsListResult’][source]¶ Retrieves metric definitions for the given database.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricDefinitionsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_metrics
(resource_group_name: str, account_name: str, database_rid: str, filter: str, **kwargs: Any) → Iterable[‘_models.MetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account and database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_usages
(resource_group_name: str, account_name: str, database_rid: str, filter: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.UsagesResult’][source]¶ Retrieves the usages (most recent data) for the given database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
filter (str) – An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either UsagesResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
GraphResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
GraphResourcesOperations 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_update_graph
(resource_group_name: str, account_name: str, graph_name: str, create_update_graph_parameters: ‘_models.GraphResourceCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.GraphResourceGetResults’][source]¶ Create or update an Azure Cosmos DB Graph.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
graph_name (str) – Cosmos DB graph resource name.
create_update_graph_parameters (GraphResourceCreateUpdateParameters) – The parameters to provide for the current graph.
- 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 GraphResourceGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_graph_resource
(resource_group_name: str, account_name: str, graph_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Graph Resource.
- Parameters
- 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
- Raises
-
get_graph
(resource_group_name: str, account_name: str, graph_name: str, **kwargs: Any) → _models.GraphResourceGetResults[source]¶ Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
GraphResourceGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_graphs
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.GraphResourcesListResult’][source]¶ Lists the graphs under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either GraphResourcesListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
GremlinResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
GremlinResourcesOperations 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_update_gremlin_database
(resource_group_name: str, account_name: str, database_name: str, create_update_gremlin_database_parameters: ‘_models.GremlinDatabaseCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.GremlinDatabaseGetResults’][source]¶ Create or update an Azure Cosmos DB Gremlin database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
create_update_gremlin_database_parameters (GremlinDatabaseCreateUpdateParameters) – The parameters to provide for the current Gremlin 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 GremlinDatabaseGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_gremlin_graph
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, create_update_gremlin_graph_parameters: ‘_models.GremlinGraphCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.GremlinGraphGetResults’][source]¶ Create or update an Azure Cosmos DB Gremlin graph.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
graph_name (str) – Cosmos DB graph name.
create_update_gremlin_graph_parameters (GremlinGraphCreateUpdateParameters) – The parameters to provide for the current Gremlin graph.
- 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 GremlinGraphGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_gremlin_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Gremlin database.
- Parameters
- 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
- Raises
-
begin_delete_gremlin_graph
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Gremlin graph.
- Parameters
- 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
- Raises
-
begin_migrate_gremlin_database_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_gremlin_database_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_gremlin_graph_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_gremlin_graph_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_gremlin_database_throughput
(resource_group_name: str, account_name: str, database_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Gremlin database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current Gremlin 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_gremlin_graph_throughput
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Gremlin graph.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
graph_name (str) – Cosmos DB graph name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current Gremlin graph.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
get_gremlin_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.GremlinDatabaseGetResults[source]¶ Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
GremlinDatabaseGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_gremlin_database_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_gremlin_graph
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, **kwargs: Any) → _models.GremlinGraphGetResults[source]¶ Gets the Gremlin graph under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
GremlinGraphGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_gremlin_graph_throughput
(resource_group_name: str, account_name: str, database_name: str, graph_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_gremlin_databases
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.GremlinDatabaseListResult’][source]¶ Lists the Gremlin databases under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either GremlinDatabaseListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_gremlin_graphs
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → Iterable[‘_models.GremlinGraphListResult’][source]¶ Lists the Gremlin graph under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either GremlinGraphListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
MongoDBResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
MongoDBResourcesOperations 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_update_mongo_db_collection
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, create_update_mongo_db_collection_parameters: ‘_models.MongoDBCollectionCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.MongoDBCollectionGetResults’][source]¶ Create or update an Azure Cosmos DB MongoDB Collection.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
collection_name (str) – Cosmos DB collection name.
create_update_mongo_db_collection_parameters (MongoDBCollectionCreateUpdateParameters) – The parameters to provide for the current MongoDB Collection.
- 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 MongoDBCollectionGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_mongo_db_database
(resource_group_name: str, account_name: str, database_name: str, create_update_mongo_db_database_parameters: ‘_models.MongoDBDatabaseCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.MongoDBDatabaseGetResults’][source]¶ Create or updates Azure Cosmos DB MongoDB database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
create_update_mongo_db_database_parameters (MongoDBDatabaseCreateUpdateParameters) – The parameters to provide for the current MongoDB 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 MongoDBDatabaseGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_mongo_db_collection
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB MongoDB Collection.
- Parameters
- 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
- Raises
-
begin_delete_mongo_db_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB MongoDB database.
- Parameters
- 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
- Raises
-
begin_migrate_mongo_db_collection_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_mongo_db_collection_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_mongo_db_database_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_mongo_db_database_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_mongo_db_collection_throughput
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update the RUs per second of an Azure Cosmos DB MongoDB collection.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
collection_name (str) – Cosmos DB collection name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current MongoDB collection.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_mongo_db_database_throughput
(resource_group_name: str, account_name: str, database_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of the an Azure Cosmos DB MongoDB database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The RUs per second of the parameters to provide for the current MongoDB 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
get_mongo_db_collection
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, **kwargs: Any) → _models.MongoDBCollectionGetResults[source]¶ Gets the MongoDB collection under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
MongoDBCollectionGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_mongo_db_collection_throughput
(resource_group_name: str, account_name: str, database_name: str, collection_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_mongo_db_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.MongoDBDatabaseGetResults[source]¶ Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
MongoDBDatabaseGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_mongo_db_database_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_mongo_db_collections
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → Iterable[‘_models.MongoDBCollectionListResult’][source]¶ Lists the MongoDB collection under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MongoDBCollectionListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_mongo_db_databases
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.MongoDBDatabaseListResult’][source]¶ Lists the MongoDB databases under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either MongoDBDatabaseListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
NotebookWorkspacesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
NotebookWorkspacesOperations 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, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], notebook_create_update_parameters: ‘_models.NotebookWorkspaceCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.NotebookWorkspace’][source]¶ Creates the notebook workspace for a Cosmos DB account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
notebook_create_update_parameters (NotebookWorkspaceCreateUpdateParameters) – The notebook workspace to create for the current database account.
- 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 NotebookWorkspace or the result of cls(response)
- Return type
- Raises
-
begin_delete
(resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], **kwargs: Any) → LROPoller[None][source]¶ Deletes the notebook workspace for a Cosmos DB account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
- 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
- Raises
-
begin_regenerate_auth_token
(resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], **kwargs: Any) → LROPoller[None][source]¶ Regenerates the auth token for the notebook workspace.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
- 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
- Raises
-
begin_start
(resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], **kwargs: Any) → LROPoller[None][source]¶ Starts the notebook workspace.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
- 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
- Raises
-
get
(resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], **kwargs: Any) → _models.NotebookWorkspace[source]¶ Gets the notebook workspace for a Cosmos DB account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
NotebookWorkspace, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_database_account
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.NotebookWorkspaceListResult’][source]¶ Gets the notebook workspace resources of an existing Cosmos DB account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either NotebookWorkspaceListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_connection_info
(resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, ‘_models.NotebookWorkspaceName’], **kwargs: Any) → _models.NotebookWorkspaceConnectionInfoResult[source]¶ Retrieves the connection info for the notebook workspace.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
notebook_workspace_name (str or NotebookWorkspaceName) – The name of the notebook workspace resource.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
NotebookWorkspaceConnectionInfoResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.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) → Iterable[‘_models.OperationListResult’][source]¶ Lists all of the available Cosmos DB Resource Provider operations.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either OperationListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
PartitionKeyRangeIdOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PartitionKeyRangeIdOperations 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_metrics
(resource_group_name: str, account_name: str, database_rid: str, collection_rid: str, partition_key_range_id: str, filter: str, **kwargs: Any) → Iterable[‘_models.PartitionMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given partition key range id.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
partition_key_range_id (str) – Partition Key Range Id for which to get data.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PartitionMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
PartitionKeyRangeIdRegionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PartitionKeyRangeIdRegionOperations 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_metrics
(resource_group_name: str, account_name: str, region: str, database_rid: str, collection_rid: str, partition_key_range_id: str, filter: str, **kwargs: Any) → Iterable[‘_models.PartitionMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given partition key range id and region.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
region (str) – Cosmos DB region, with spaces between words and each word capitalized.
database_rid (str) – Cosmos DB database rid.
collection_rid (str) – Cosmos DB collection rid.
partition_key_range_id (str) – Partition Key Range Id for which to get data.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PartitionMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
PercentileOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PercentileOperations 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_metrics
(resource_group_name: str, account_name: str, filter: str, **kwargs: Any) → Iterable[‘_models.PercentileMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PercentileMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
PercentileSourceTargetOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PercentileSourceTargetOperations 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_metrics
(resource_group_name: str, account_name: str, source_region: str, target_region: str, filter: str, **kwargs: Any) → Iterable[‘_models.PercentileMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
source_region (str) – Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized.
target_region (str) – Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PercentileMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
PercentileTargetOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PercentileTargetOperations 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_metrics
(resource_group_name: str, account_name: str, target_region: str, filter: str, **kwargs: Any) → Iterable[‘_models.PercentileMetricListResult’][source]¶ Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
target_region (str) – Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized.
filter (str) – An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either PercentileMetricListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.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, account_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.
account_name (str) – Cosmos DB database account name.
private_endpoint_connection_name (str) – The name of the private endpoint connection.
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
- Raises
-
begin_delete
(resource_group_name: str, account_name: str, private_endpoint_connection_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes a private endpoint connection with a given name.
- Parameters
- 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
- Raises
-
get
(resource_group_name: str, account_name: str, private_endpoint_connection_name: str, **kwargs: Any) → _models.PrivateEndpointConnection[source]¶ Gets a private endpoint connection.
- Parameters
- 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
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_database_account
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.PrivateEndpointConnectionListResult’][source]¶ List all private endpoint connections on a Cosmos DB account.
- Parameters
- 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
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.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, account_name: str, group_name: str, **kwargs: Any) → _models.PrivateLinkResource[source]¶ Gets the private link resources that need to be created for a Cosmos DB account.
- Parameters
- 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
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_database_account
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.PrivateLinkResourceListResult’][source]¶ Gets the private link resources that need to be created for a Cosmos DB account.
- Parameters
- 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
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableDatabaseAccountsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
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.
- 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_by_location
(location: str, instance_id: str, **kwargs: Any) → _models.RestorableDatabaseAccountGetResult[source]¶ Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*’ permission.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
RestorableDatabaseAccountGetResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list
(**kwargs: Any) → Iterable[‘_models.RestorableDatabaseAccountsListResult’][source]¶ Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read’ permission.
- Keyword Arguments
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
- Raises
~azure.core.exceptions.HttpResponseError
-
list_by_location
(location: str, **kwargs: Any) → Iterable[‘_models.RestorableDatabaseAccountsListResult’][source]¶ 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.
- Parameters
location (str) – Cosmos DB region, with spaces between words and each word capitalized.
- Keyword Arguments
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
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableMongodbCollectionsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableMongodbCollectionsOperations 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: str, instance_id: str, restorable_mongodb_database_rid: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.RestorableMongodbCollectionsListResult’][source]¶ Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableMongodbCollectionsListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableMongodbDatabasesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableMongodbDatabasesOperations 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: str, instance_id: str, **kwargs: Any) → Iterable[‘_models.RestorableMongodbDatabasesListResult’][source]¶ Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableMongodbDatabasesListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableMongodbResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableMongodbResourcesOperations 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: str, instance_id: str, restore_location: Optional[str] = None, restore_timestamp_in_utc: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.RestorableMongodbResourcesListResult’][source]¶ Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
location (str) – Cosmos DB region, with spaces between words and each word capitalized.
instance_id (str) – The instanceId GUID of a restorable database account.
restore_location (str) – The location where the restorable resources are located.
restore_timestamp_in_utc (str) – The timestamp when the restorable resources existed.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableMongodbResourcesListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableSqlContainersOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableSqlContainersOperations 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: str, instance_id: str, restorable_sql_database_rid: Optional[str] = None, start_time: Optional[str] = None, end_time: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.RestorableSqlContainersListResult’][source]¶ Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
location (str) – Cosmos DB region, with spaces between words and each word capitalized.
instance_id (str) – The instanceId GUID of a restorable database account.
restorable_sql_database_rid (str) – The resource ID of the SQL database.
start_time (str) – The snapshot create timestamp after which snapshots need to be listed.
end_time (str) – The snapshot create timestamp before which snapshots need to be listed.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableSqlContainersListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableSqlDatabasesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableSqlDatabasesOperations 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: str, instance_id: str, **kwargs: Any) → Iterable[‘_models.RestorableSqlDatabasesListResult’][source]¶ Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the deletion time. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableSqlDatabasesListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
RestorableSqlResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
RestorableSqlResourcesOperations 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: str, instance_id: str, restore_location: Optional[str] = None, restore_timestamp_in_utc: Optional[str] = None, **kwargs: Any) → Iterable[‘_models.RestorableSqlResourcesListResult’][source]¶ Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires ‘Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read’ permission.
- Parameters
location (str) – Cosmos DB region, with spaces between words and each word capitalized.
instance_id (str) – The instanceId GUID of a restorable database account.
restore_location (str) – The location where the restorable resources are located.
restore_timestamp_in_utc (str) – The timestamp when the restorable resources existed.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either RestorableSqlResourcesListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
ServiceOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
ServiceOperations 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, account_name: str, service_name: str, create_update_parameters: ‘_models.ServiceResourceCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ServiceResource’][source]¶ Creates a service.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
service_name (str) – Cosmos DB service name.
create_update_parameters (ServiceResourceCreateUpdateParameters) – The Service resource parameters.
- 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 ServiceResource or the result of cls(response)
- Return type
- Raises
-
begin_delete
(resource_group_name: str, account_name: str, service_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes service with the given serviceName.
- Parameters
- 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
- Raises
-
get
(resource_group_name: str, account_name: str, service_name: str, **kwargs: Any) → _models.ServiceResource[source]¶ Gets the status of service.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ServiceResource, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.ServiceResourceListResult’][source]¶ Gets the status of service.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either ServiceResourceListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
SqlResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
SqlResourcesOperations 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_update_sql_container
(resource_group_name: str, account_name: str, database_name: str, container_name: str, create_update_sql_container_parameters: ‘_models.SqlContainerCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlContainerGetResults’][source]¶ Create or update an Azure Cosmos DB SQL container.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
create_update_sql_container_parameters (SqlContainerCreateUpdateParameters) – The parameters to provide for the current SQL container.
- 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 SqlContainerGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_database
(resource_group_name: str, account_name: str, database_name: str, create_update_sql_database_parameters: ‘_models.SqlDatabaseCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlDatabaseGetResults’][source]¶ Create or update an Azure Cosmos DB SQL database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
create_update_sql_database_parameters (SqlDatabaseCreateUpdateParameters) – The parameters to provide for the current SQL 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 SqlDatabaseGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_role_assignment
(role_assignment_id: str, resource_group_name: str, account_name: str, create_update_sql_role_assignment_parameters: ‘_models.SqlRoleAssignmentCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlRoleAssignmentGetResults’][source]¶ Creates or updates an Azure Cosmos DB SQL Role Assignment.
- Parameters
role_assignment_id (str) – The GUID for the Role Assignment.
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
create_update_sql_role_assignment_parameters (SqlRoleAssignmentCreateUpdateParameters) – The properties required to create or update a Role Assignment.
- 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 SqlRoleAssignmentGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_role_definition
(role_definition_id: str, resource_group_name: str, account_name: str, create_update_sql_role_definition_parameters: ‘_models.SqlRoleDefinitionCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlRoleDefinitionGetResults’][source]¶ Creates or updates an Azure Cosmos DB SQL Role Definition.
- Parameters
role_definition_id (str) – The GUID for the Role Definition.
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
create_update_sql_role_definition_parameters (SqlRoleDefinitionCreateUpdateParameters) – The properties required to create or update a Role Definition.
- 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 SqlRoleDefinitionGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_stored_procedure
(resource_group_name: str, account_name: str, database_name: str, container_name: str, stored_procedure_name: str, create_update_sql_stored_procedure_parameters: ‘_models.SqlStoredProcedureCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlStoredProcedureGetResults’][source]¶ Create or update an Azure Cosmos DB SQL storedProcedure.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
stored_procedure_name (str) – Cosmos DB storedProcedure name.
create_update_sql_stored_procedure_parameters (SqlStoredProcedureCreateUpdateParameters) – The parameters to provide for the current SQL storedProcedure.
- 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 SqlStoredProcedureGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_trigger
(resource_group_name: str, account_name: str, database_name: str, container_name: str, trigger_name: str, create_update_sql_trigger_parameters: ‘_models.SqlTriggerCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlTriggerGetResults’][source]¶ Create or update an Azure Cosmos DB SQL trigger.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
trigger_name (str) – Cosmos DB trigger name.
create_update_sql_trigger_parameters (SqlTriggerCreateUpdateParameters) – The parameters to provide for the current SQL trigger.
- 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 SqlTriggerGetResults or the result of cls(response)
- Return type
- Raises
-
begin_create_update_sql_user_defined_function
(resource_group_name: str, account_name: str, database_name: str, container_name: str, user_defined_function_name: str, create_update_sql_user_defined_function_parameters: ‘_models.SqlUserDefinedFunctionCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.SqlUserDefinedFunctionGetResults’][source]¶ Create or update an Azure Cosmos DB SQL userDefinedFunction.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
user_defined_function_name (str) – Cosmos DB userDefinedFunction name.
create_update_sql_user_defined_function_parameters (SqlUserDefinedFunctionCreateUpdateParameters) – The parameters to provide for the current SQL userDefinedFunction.
- 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 SqlUserDefinedFunctionGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_sql_container
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL container.
- Parameters
- 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
- Raises
-
begin_delete_sql_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL database.
- Parameters
- 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
- Raises
-
begin_delete_sql_role_assignment
(role_assignment_id: str, resource_group_name: str, account_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL Role Assignment.
- Parameters
- 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
- Raises
-
begin_delete_sql_role_definition
(role_definition_id: str, resource_group_name: str, account_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL Role Definition.
- Parameters
- 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
- Raises
-
begin_delete_sql_stored_procedure
(resource_group_name: str, account_name: str, database_name: str, container_name: str, stored_procedure_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL storedProcedure.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
stored_procedure_name (str) – Cosmos DB storedProcedure name.
- 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
- Raises
-
begin_delete_sql_trigger
(resource_group_name: str, account_name: str, database_name: str, container_name: str, trigger_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL trigger.
- Parameters
- 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
- Raises
-
begin_delete_sql_user_defined_function
(resource_group_name: str, account_name: str, database_name: str, container_name: str, user_defined_function_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
user_defined_function_name (str) – Cosmos DB userDefinedFunction name.
- 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
- Raises
-
begin_migrate_sql_container_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_sql_container_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_sql_database_to_autoscale
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_sql_database_to_manual_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_retrieve_continuous_backup_information
(resource_group_name: str, account_name: str, database_name: str, container_name: str, location: ‘_models.ContinuousBackupRestoreLocation’, **kwargs: Any) → LROPoller[‘_models.BackupInformation’][source]¶ Retrieves continuous backup information for a container resource.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
location (ContinuousBackupRestoreLocation) – The name of the continuous backup restore location.
- 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 BackupInformation or the result of cls(response)
- Return type
- Raises
-
begin_update_sql_container_throughput
(resource_group_name: str, account_name: str, database_name: str, container_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB SQL container.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The parameters to provide for the RUs per second of the current SQL container.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_sql_database_throughput
(resource_group_name: str, account_name: str, database_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB SQL database.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The parameters to provide for the RUs per second of the current SQL 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
get_sql_container
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → _models.SqlContainerGetResults[source]¶ Gets the SQL container under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlContainerGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_container_throughput
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_database
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.SqlDatabaseGetResults[source]¶ Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlDatabaseGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_database_throughput
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_role_assignment
(role_assignment_id: str, resource_group_name: str, account_name: str, **kwargs: Any) → _models.SqlRoleAssignmentGetResults[source]¶ Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlRoleAssignmentGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_role_definition
(role_definition_id: str, resource_group_name: str, account_name: str, **kwargs: Any) → _models.SqlRoleDefinitionGetResults[source]¶ Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlRoleDefinitionGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_stored_procedure
(resource_group_name: str, account_name: str, database_name: str, container_name: str, stored_procedure_name: str, **kwargs: Any) → _models.SqlStoredProcedureGetResults[source]¶ Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
stored_procedure_name (str) – Cosmos DB storedProcedure name.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlStoredProcedureGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_trigger
(resource_group_name: str, account_name: str, database_name: str, container_name: str, trigger_name: str, **kwargs: Any) → _models.SqlTriggerGetResults[source]¶ Gets the SQL trigger under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlTriggerGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_sql_user_defined_function
(resource_group_name: str, account_name: str, database_name: str, container_name: str, user_defined_function_name: str, **kwargs: Any) → _models.SqlUserDefinedFunctionGetResults[source]¶ Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
database_name (str) – Cosmos DB database name.
container_name (str) – Cosmos DB container name.
user_defined_function_name (str) – Cosmos DB userDefinedFunction name.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
SqlUserDefinedFunctionGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_containers
(resource_group_name: str, account_name: str, database_name: str, **kwargs: Any) → Iterable[‘_models.SqlContainerListResult’][source]¶ Lists the SQL container under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlContainerListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_databases
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.SqlDatabaseListResult’][source]¶ Lists the SQL databases under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlDatabaseListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_role_assignments
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.SqlRoleAssignmentListResult’][source]¶ Retrieves the list of all Azure Cosmos DB SQL Role Assignments.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlRoleAssignmentListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_role_definitions
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.SqlRoleDefinitionListResult’][source]¶ Retrieves the list of all Azure Cosmos DB SQL Role Definitions.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlRoleDefinitionListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_stored_procedures
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → Iterable[‘_models.SqlStoredProcedureListResult’][source]¶ Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlStoredProcedureListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_triggers
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → Iterable[‘_models.SqlTriggerListResult’][source]¶ Lists the SQL trigger under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlTriggerListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_sql_user_defined_functions
(resource_group_name: str, account_name: str, database_name: str, container_name: str, **kwargs: Any) → Iterable[‘_models.SqlUserDefinedFunctionListResult’][source]¶ Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SqlUserDefinedFunctionListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶
-
class
azure.mgmt.cosmosdb.operations.
TableResourcesOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
TableResourcesOperations 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_update_table
(resource_group_name: str, account_name: str, table_name: str, create_update_table_parameters: ‘_models.TableCreateUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.TableGetResults’][source]¶ Create or update an Azure Cosmos DB Table.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
table_name (str) – Cosmos DB table name.
create_update_table_parameters (TableCreateUpdateParameters) – The parameters to provide for the current Table.
- 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 TableGetResults or the result of cls(response)
- Return type
- Raises
-
begin_delete_table
(resource_group_name: str, account_name: str, table_name: str, **kwargs: Any) → LROPoller[None][source]¶ Deletes an existing Azure Cosmos DB Table.
- Parameters
- 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
- Raises
-
begin_migrate_table_to_autoscale
(resource_group_name: str, account_name: str, table_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_migrate_table_to_manual_throughput
(resource_group_name: str, account_name: str, table_name: str, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
- Parameters
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
begin_update_table_throughput
(resource_group_name: str, account_name: str, table_name: str, update_throughput_parameters: ‘_models.ThroughputSettingsUpdateParameters’, **kwargs: Any) → LROPoller[‘_models.ThroughputSettingsGetResults’][source]¶ Update RUs per second of an Azure Cosmos DB Table.
- Parameters
resource_group_name (str) – The name of the resource group. The name is case insensitive.
account_name (str) – Cosmos DB database account name.
table_name (str) – Cosmos DB table name.
update_throughput_parameters (ThroughputSettingsUpdateParameters) – The parameters to provide for the RUs per second of the current Table.
- 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 ThroughputSettingsGetResults or the result of cls(response)
- Return type
- Raises
-
get_table
(resource_group_name: str, account_name: str, table_name: str, **kwargs: Any) → _models.TableGetResults[source]¶ Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
TableGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
get_table_throughput
(resource_group_name: str, account_name: str, table_name: str, **kwargs: Any) → _models.ThroughputSettingsGetResults[source]¶ Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ThroughputSettingsGetResults, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_tables
(resource_group_name: str, account_name: str, **kwargs: Any) → Iterable[‘_models.TableListResult’][source]¶ Lists the Tables under an existing Azure Cosmos DB database account.
- Parameters
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either TableListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.cosmosdb.models' from '/mnt/vss/_work/1/s/sdk/cosmos/azure-mgmt-cosmosdb/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/cosmosdb/models/__init__.py'>¶