azure.mgmt.cosmosdb.models module¶
-
exception
azure.mgmt.cosmosdb.models.
ErrorResponseException
(deserialize, response, *args)[source]¶ Bases:
msrest.exceptions.HttpOperationError
Server responsed with exception of type: ‘ErrorResponse’.
- Parameters
deserialize – A deserializer
response – Server response to be deserialized.
-
class
azure.mgmt.cosmosdb.models.
ApiProperties
(*, server_version=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
ApiProperties.
- Parameters
server_version (str or ServerVersion) – Describes the ServerVersion of an a MongoDB account. Possible values include: ‘3.2’, ‘3.6’
-
class
azure.mgmt.cosmosdb.models.
ARMProxyResource
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
ARMResourceProperties
(*, location: str = None, tags=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The core properties of ARM resources.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
AutoscaleSettings
(*, max_throughput: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
AutoscaleSettings.
- Parameters
max_throughput (int) – Represents maximum throughput, the resource can scale up to.
-
class
azure.mgmt.cosmosdb.models.
AutoscaleSettingsResource
(*, max_throughput: int, auto_upgrade_policy=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB provisioned throughput settings object.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
max_throughput (int) – Required. Represents maximum throughput container can scale up to.
auto_upgrade_policy (AutoUpgradePolicyResource) – Cosmos DB resource auto-upgrade policy
- Variables
target_max_throughput (int) – Represents target maximum throughput container can scale up to once offer is no longer in pending state.
-
class
azure.mgmt.cosmosdb.models.
AutoUpgradePolicyResource
(*, throughput_policy=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB resource auto-upgrade policy.
- Parameters
throughput_policy (ThroughputPolicyResource) – Represents throughput policy which service must adhere to for auto-upgrade
-
class
azure.mgmt.cosmosdb.models.
AzureEntityResource
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.Resource
The resource model definition for a Azure Resource Manager resource with an etag.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name (str) – The name of the resource
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
-
class
azure.mgmt.cosmosdb.models.
Capability
(*, name: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB capability object.
- Parameters
name (str) – Name of the Cosmos DB capability. For example, “name”: “EnableCassandra”. Current values also include “EnableTable” and “EnableGremlin”.
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB Cassandra keyspace.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (CassandraKeyspaceResource) – Required. The standard JSON format of a Cassandra keyspace
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
CassandraKeyspaceGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceGetPropertiesResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
CassandraKeyspaceGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Cassandra keyspace
- Variables
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB Cassandra keyspace.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (CassandraKeyspaceGetPropertiesResource) –
options (CassandraKeyspaceGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra keyspace resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Cassandra keyspace
-
class
azure.mgmt.cosmosdb.models.
CassandraPartitionKey
(*, name: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra table partition key.
- Parameters
name (str) – Name of the Cosmos DB Cassandra table partition key
-
class
azure.mgmt.cosmosdb.models.
CassandraSchema
(*, columns=None, partition_keys=None, cluster_keys=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra table schema.
- Parameters
partition_keys (list[CassandraPartitionKey]) – List of partition key.
cluster_keys (list[ClusterKey]) – List of cluster key.
-
class
azure.mgmt.cosmosdb.models.
CassandraTableCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB Cassandra table.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (CassandraTableResource) – Required. The standard JSON format of a Cassandra table
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
CassandraTableGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
CassandraTableGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
CassandraTableGetPropertiesResource
(*, id: str, default_ttl: int = None, schema=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
CassandraTableGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Cassandra table
default_ttl (int) – Time to live of the Cosmos DB Cassandra table
schema (CassandraSchema) – Schema of the Cosmos DB Cassandra table
analytical_storage_ttl (int) – Analytical TTL.
- Variables
-
class
azure.mgmt.cosmosdb.models.
CassandraTableGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB Cassandra table.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (CassandraTableGetPropertiesResource) –
options (CassandraTableGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
CassandraTableResource
(*, id: str, default_ttl: int = None, schema=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra table resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Cassandra table
default_ttl (int) – Time to live of the Cosmos DB Cassandra table
schema (CassandraSchema) – Schema of the Cosmos DB Cassandra table
analytical_storage_ttl (int) – Analytical TTL.
-
class
azure.mgmt.cosmosdb.models.
ClusterKey
(*, name: str = None, order_by: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra table cluster key.
-
class
azure.mgmt.cosmosdb.models.
Column
(*, name: str = None, type: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Cassandra table column.
-
class
azure.mgmt.cosmosdb.models.
CompositePath
(*, path: str = None, order=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
CompositePath.
- Parameters
path (str) – The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
order (str or CompositePathSortOrder) – Sort order for composite paths. Possible values include: ‘Ascending’, ‘Descending’
-
class
azure.mgmt.cosmosdb.models.
ConflictResolutionPolicy
(*, mode='LastWriterWins', conflict_resolution_path: str = None, conflict_resolution_procedure: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The conflict resolution policy for the container.
- Parameters
mode (str or ConflictResolutionMode) – Indicates the conflict resolution mode. Possible values include: ‘LastWriterWins’, ‘Custom’. Default value: “LastWriterWins” .
conflict_resolution_path (str) – The conflict resolution path in the case of LastWriterWins mode.
conflict_resolution_procedure (str) – The procedure to resolve conflicts in the case of custom mode.
-
class
azure.mgmt.cosmosdb.models.
ConsistencyPolicy
(*, default_consistency_level, max_staleness_prefix: int = None, max_interval_in_seconds: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The consistency policy for the Cosmos DB database account.
All required parameters must be populated in order to send to Azure.
- Parameters
default_consistency_level (str or DefaultConsistencyLevel) – Required. The default consistency level and configuration settings of the Cosmos DB account. Possible values include: ‘Eventual’, ‘Session’, ‘BoundedStaleness’, ‘Strong’, ‘ConsistentPrefix’
max_staleness_prefix (long) – When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to ‘BoundedStaleness’.
max_interval_in_seconds (int) – When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to ‘BoundedStaleness’.
-
class
azure.mgmt.cosmosdb.models.
ContainerPartitionKey
(*, paths=None, kind='Hash', version: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The configuration of the partition key to be used for partitioning data into multiple partitions.
- Parameters
paths (list[str]) – List of paths using which data within the container can be partitioned
kind (str or PartitionKind) – Indicates the kind of algorithm used for partitioning. Possible values include: ‘Hash’, ‘Range’. Default value: “Hash” .
version (int) – Indicates the version of the partition key definition
-
class
azure.mgmt.cosmosdb.models.
CorsPolicy
(*, allowed_origins: str, allowed_methods: str = None, allowed_headers: str = None, exposed_headers: str = None, max_age_in_seconds: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The CORS policy for the Cosmos DB database account.
All required parameters must be populated in order to send to Azure.
- Parameters
allowed_origins (str) – Required. The origin domains that are permitted to make a request against the service via CORS.
allowed_methods (str) – The methods (HTTP request verbs) that the origin domain may use for a CORS request.
allowed_headers (str) – The request headers that the origin domain may specify on the CORS request.
exposed_headers (str) – The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.
max_age_in_seconds (long) – The maximum amount time that a browser should cache the preflight OPTIONS request.
-
class
azure.mgmt.cosmosdb.models.
CreateUpdateOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are “If-Match”, “If-None-Match”, “Session-Token” and “Throughput”.
- Parameters
throughput (int) – Request Units per second. For example, “throughput”: 10000.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountConnectionString
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Connection string for the Cosmos DB account.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountCreateUpdateParameters
(*, locations, location: str = None, tags=None, kind='GlobalDocumentDB', consistency_policy=None, ip_rules=None, is_virtual_network_filter_enabled: bool = None, enable_automatic_failover: bool = None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool = None, enable_cassandra_connector: bool = None, connector_offer=None, disable_key_based_metadata_write_access: bool = None, key_vault_key_uri: str = None, public_network_access=None, enable_free_tier: bool = None, api_properties=None, enable_analytical_storage: bool = None, cors=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB database accounts.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
kind (str or DatabaseAccountKind) – Indicates the type of database account. This can only be set at database account creation. Possible values include: ‘GlobalDocumentDB’, ‘MongoDB’, ‘Parse’. Default value: “GlobalDocumentDB” .
consistency_policy (ConsistencyPolicy) – The consistency policy for the Cosmos DB account.
locations (list[Location]) – Required. An array that contains the georeplication locations enabled for the Cosmos DB account.
ip_rules (list[IpAddressOrRange]) – List of IpRules.
is_virtual_network_filter_enabled (bool) – Flag to indicate whether to enable/disable Virtual Network ACL rules.
enable_automatic_failover (bool) – Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
capabilities (list[Capability]) – List of Cosmos DB capabilities for the account
virtual_network_rules (list[VirtualNetworkRule]) – List of Virtual Network ACL rules configured for the Cosmos DB account.
enable_multiple_write_locations (bool) – Enables the account to write in multiple locations
enable_cassandra_connector (bool) – Enables the cassandra connector on the Cosmos DB C* account
connector_offer (str or ConnectorOffer) – The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: ‘Small’
disable_key_based_metadata_write_access (bool) – Disable write operations on metadata resources (databases, containers, throughput) via account keys
key_vault_key_uri (str) – The URI of the key vault
public_network_access (str or PublicNetworkAccess) – Whether requests from Public Network are allowed. Possible values include: ‘Enabled’, ‘Disabled’
enable_free_tier (bool) – Flag to indicate whether Free Tier is enabled.
api_properties (ApiProperties) – API specific properties. Currently, supported only for MongoDB API.
enable_analytical_storage (bool) – Flag to indicate whether to enable storage analytics.
cors (list[CorsPolicy]) – The CORS policy for the Cosmos DB database account.
-
database_account_offer_type
= 'Standard'¶
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountGetResults
(*, location: str = None, tags=None, kind='GlobalDocumentDB', provisioning_state: str = None, ip_rules=None, is_virtual_network_filter_enabled: bool = None, enable_automatic_failover: bool = None, consistency_policy=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool = None, enable_cassandra_connector: bool = None, connector_offer=None, disable_key_based_metadata_write_access: bool = None, key_vault_key_uri: str = None, public_network_access=None, enable_free_tier: bool = None, api_properties=None, enable_analytical_storage: bool = None, cors=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB database account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – The unique resource identifier of the ARM resource.
name (str) – The name of the ARM resource.
document_endpoint (str) – The connection endpoint for the Cosmos DB database account.
database_account_offer_type (str or DatabaseAccountOfferType) – The offer type for the Cosmos DB database account. Default value: Standard. Possible values include: ‘Standard’
write_locations (list[Location]) – An array that contains the write location for the Cosmos DB account.
read_locations (list[Location]) – An array that contains of the read locations enabled for the Cosmos DB account.
locations (list[Location]) – An array that contains all of the locations enabled for the Cosmos DB account.
failover_policies (list[FailoverPolicy]) – An array that contains the regions ordered by their failover priorities.
private_endpoint_connections (list[PrivateEndpointConnection]) – List of Private Endpoint Connections configured for the Cosmos DB account.
- Parameters
location (str) – The location of the resource group to which the resource belongs.
kind (str or DatabaseAccountKind) – Indicates the type of database account. This can only be set at database account creation. Possible values include: ‘GlobalDocumentDB’, ‘MongoDB’, ‘Parse’. Default value: “GlobalDocumentDB” .
provisioning_state (str) –
ip_rules (list[IpAddressOrRange]) – List of IpRules.
is_virtual_network_filter_enabled (bool) – Flag to indicate whether to enable/disable Virtual Network ACL rules.
enable_automatic_failover (bool) – Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
consistency_policy (ConsistencyPolicy) – The consistency policy for the Cosmos DB database account.
capabilities (list[Capability]) – List of Cosmos DB capabilities for the account
virtual_network_rules (list[VirtualNetworkRule]) – List of Virtual Network ACL rules configured for the Cosmos DB account.
enable_multiple_write_locations (bool) – Enables the account to write in multiple locations
enable_cassandra_connector (bool) – Enables the cassandra connector on the Cosmos DB C* account
connector_offer (str or ConnectorOffer) – The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: ‘Small’
disable_key_based_metadata_write_access (bool) – Disable write operations on metadata resources (databases, containers, throughput) via account keys
key_vault_key_uri (str) – The URI of the key vault
public_network_access (str or PublicNetworkAccess) – Whether requests from Public Network are allowed. Possible values include: ‘Enabled’, ‘Disabled’
enable_free_tier (bool) – Flag to indicate whether Free Tier is enabled.
api_properties (ApiProperties) – API specific properties.
enable_analytical_storage (bool) – Flag to indicate whether to enable storage analytics.
cors (list[CorsPolicy]) – The CORS policy for the Cosmos DB database account.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountListConnectionStringsResult
(*, connection_strings=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The connection strings for the given database account.
- Parameters
connection_strings (list[DatabaseAccountConnectionString]) – An array that contains the connection strings for the Cosmos DB account.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountListKeysResult
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.DatabaseAccountListReadOnlyKeysResult
The access keys for the given database account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
primary_readonly_master_key (str) – Base 64 encoded value of the primary read-only key.
secondary_readonly_master_key (str) – Base 64 encoded value of the secondary read-only key.
primary_master_key (str) – Base 64 encoded value of the primary read-write key.
secondary_master_key (str) – Base 64 encoded value of the secondary read-write key.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountListReadOnlyKeysResult
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The read-only access keys for the given database account.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountRegenerateKeyParameters
(*, key_kind, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Parameters to regenerate the keys within the database account.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountUpdateParameters
(*, tags=None, location: str = None, consistency_policy=None, locations=None, ip_rules=None, is_virtual_network_filter_enabled: bool = None, enable_automatic_failover: bool = None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool = None, enable_cassandra_connector: bool = None, connector_offer=None, disable_key_based_metadata_write_access: bool = None, key_vault_key_uri: str = None, public_network_access=None, enable_free_tier: bool = None, api_properties=None, enable_analytical_storage: bool = None, cors=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Parameters for patching Azure Cosmos DB database account properties.
- Parameters
location (str) – The location of the resource group to which the resource belongs.
consistency_policy (ConsistencyPolicy) – The consistency policy for the Cosmos DB account.
locations (list[Location]) – An array that contains the georeplication locations enabled for the Cosmos DB account.
ip_rules (list[IpAddressOrRange]) – List of IpRules.
is_virtual_network_filter_enabled (bool) – Flag to indicate whether to enable/disable Virtual Network ACL rules.
enable_automatic_failover (bool) – Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.
capabilities (list[Capability]) – List of Cosmos DB capabilities for the account
virtual_network_rules (list[VirtualNetworkRule]) – List of Virtual Network ACL rules configured for the Cosmos DB account.
enable_multiple_write_locations (bool) – Enables the account to write in multiple locations
enable_cassandra_connector (bool) – Enables the cassandra connector on the Cosmos DB C* account
connector_offer (str or ConnectorOffer) – The cassandra connector offer type for the Cosmos DB database C* account. Possible values include: ‘Small’
disable_key_based_metadata_write_access (bool) – Disable write operations on metadata resources (databases, containers, throughput) via account keys
key_vault_key_uri (str) – The URI of the key vault
public_network_access (str or PublicNetworkAccess) – Whether requests from Public Network are allowed. Possible values include: ‘Enabled’, ‘Disabled’
enable_free_tier (bool) – Flag to indicate whether Free Tier is enabled.
api_properties (ApiProperties) – API specific properties. Currently, supported only for MongoDB API.
enable_analytical_storage (bool) – Flag to indicate whether to enable storage analytics.
cors (list[CorsPolicy]) – The CORS policy for the Cosmos DB database account.
-
class
azure.mgmt.cosmosdb.models.
ErrorResponse
(*, code: str = None, message: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Error Response.
-
class
azure.mgmt.cosmosdb.models.
ExcludedPath
(*, path: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
ExcludedPath.
-
class
azure.mgmt.cosmosdb.models.
ExtendedResourceProperties
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The system generated resource properties associated with SQL databases, SQL containers, Gremlin databases and Gremlin graphs.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
FailoverPolicies
(*, failover_policies, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The list of new failover policies for the failover priority change.
All required parameters must be populated in order to send to Azure.
- Parameters
failover_policies (list[FailoverPolicy]) – Required. List of failover policies.
-
class
azure.mgmt.cosmosdb.models.
FailoverPolicy
(*, location_name: str = None, failover_priority: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The failover policy for a given region of a database account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>.
- Parameters
location_name (str) – The name of the region in which the database account exists.
failover_priority (int) – The failover priority of the region. 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.
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB Gremlin database.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (GremlinDatabaseResource) – Required. The standard JSON format of a Gremlin database
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
GremlinDatabaseGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseGetPropertiesResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
GremlinDatabaseGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Gremlin database
- Variables
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB Gremlin database.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (GremlinDatabaseGetPropertiesResource) –
options (GremlinDatabaseGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Gremlin database resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Gremlin database
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB Gremlin graph.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (GremlinGraphResource) – Required. The standard JSON format of a Gremlin graph
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
GremlinGraphGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphGetPropertiesResource
(*, id: str, indexing_policy=None, partition_key=None, default_ttl: int = None, unique_key_policy=None, conflict_resolution_policy=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
GremlinGraphGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Gremlin graph
indexing_policy (IndexingPolicy) – The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
partition_key (ContainerPartitionKey) – The configuration of the partition key to be used for partitioning data into multiple partitions
default_ttl (int) – Default time to live
unique_key_policy (UniqueKeyPolicy) – The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
conflict_resolution_policy (ConflictResolutionPolicy) – The conflict resolution policy for the graph.
- Variables
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB Gremlin graph.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (GremlinGraphGetPropertiesResource) –
options (GremlinGraphGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphResource
(*, id: str, indexing_policy=None, partition_key=None, default_ttl: int = None, unique_key_policy=None, conflict_resolution_policy=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB Gremlin graph resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB Gremlin graph
indexing_policy (IndexingPolicy) – The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph
partition_key (ContainerPartitionKey) – The configuration of the partition key to be used for partitioning data into multiple partitions
default_ttl (int) – Default time to live
unique_key_policy (UniqueKeyPolicy) – The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
conflict_resolution_policy (ConflictResolutionPolicy) – The conflict resolution policy for the graph.
-
class
azure.mgmt.cosmosdb.models.
IncludedPath
(*, path: str = None, indexes=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The paths that are included in indexing.
-
class
azure.mgmt.cosmosdb.models.
Indexes
(*, data_type='String', precision: int = None, kind='Hash', **kwargs)[source]¶ Bases:
msrest.serialization.Model
The indexes for the path.
- Parameters
data_type (str or DataType) – The datatype for which the indexing behavior is applied to. Possible values include: ‘String’, ‘Number’, ‘Point’, ‘Polygon’, ‘LineString’, ‘MultiPolygon’. Default value: “String” .
precision (int) – The precision of the index. -1 is maximum precision.
kind (str or IndexKind) – Indicates the type of index. Possible values include: ‘Hash’, ‘Range’, ‘Spatial’. Default value: “Hash” .
-
class
azure.mgmt.cosmosdb.models.
IndexingPolicy
(*, automatic: bool = None, indexing_mode='Consistent', included_paths=None, excluded_paths=None, composite_indexes=None, spatial_indexes=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB indexing policy.
- Parameters
automatic (bool) – Indicates if the indexing policy is automatic
indexing_mode (str or IndexingMode) – Indicates the indexing mode. Possible values include: ‘Consistent’, ‘Lazy’, ‘None’. Default value: “Consistent” .
included_paths (list[IncludedPath]) – List of paths to include in the indexing
excluded_paths (list[ExcludedPath]) – List of paths to exclude from indexing
composite_indexes (list[list[CompositePath]]) – List of composite path list
spatial_indexes (list[SpatialSpec]) – List of spatial specifics
-
class
azure.mgmt.cosmosdb.models.
IpAddressOrRange
(*, ip_address_or_range: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
IpAddressOrRange object.
- Parameters
ip_address_or_range (str) – A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.
-
class
azure.mgmt.cosmosdb.models.
Location
(*, location_name: str = None, provisioning_state: str = None, failover_priority: int = None, is_zone_redundant: bool = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
A region in which the Azure Cosmos DB database account is deployed.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – The unique identifier of the region within the database account. Example: <accountName>-<locationName>.
document_endpoint (str) – The connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/
- Parameters
location_name (str) – The name of the region.
provisioning_state (str) –
failover_priority (int) – The failover priority of the region. 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.
is_zone_redundant (bool) – Flag to indicate whether or not this region is an AvailabilityZone region
-
class
azure.mgmt.cosmosdb.models.
Metric
(*, unit=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Metric data.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
start_time (datetime) – The start time for the metric (ISO-8601 format).
end_time (datetime) – The end time for the metric (ISO-8601 format).
time_grain (str) – The time grain to be used to summarize the metric values.
name (MetricName) – The name information for the metric.
metric_values (list[MetricValue]) – The metric values for the specified time window and timestep.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
-
class
azure.mgmt.cosmosdb.models.
MetricAvailability
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The availability of the metric.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
MetricDefinition
(*, unit=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The definition of a metric.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
metric_availabilities (list[MetricAvailability]) – The list of metric availabilities for the account.
primary_aggregation_type (str or PrimaryAggregationType) – The primary aggregation type of the metric. Possible values include: ‘None’, ‘Average’, ‘Total’, ‘Minimum’, ‘Maximum’, ‘Last’
resource_uri (str) – The resource uri of the database.
name (MetricName) – The name information for the metric.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
-
class
azure.mgmt.cosmosdb.models.
MetricName
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
A metric name.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
MetricValue
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Represents metrics values.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
_count (float) – The number of values for the metric.
timestamp (datetime) – The metric timestamp (ISO-8601 format).
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB MongoDB collection.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (MongoDBCollectionResource) – Required. The standard JSON format of a MongoDB collection
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
MongoDBCollectionGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionGetPropertiesResource
(*, id: str, shard_key=None, indexes=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
MongoDBCollectionGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
- Variables
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB MongoDB collection.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (MongoDBCollectionGetPropertiesResource) –
options (MongoDBCollectionGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionResource
(*, id: str, shard_key=None, indexes=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB MongoDB collection resource object.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB MongoDB database.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (MongoDBDatabaseResource) – Required. The standard JSON format of a MongoDB database
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
MongoDBDatabaseGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseGetPropertiesResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
MongoDBDatabaseGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB MongoDB database
- Variables
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB MongoDB database.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (MongoDBDatabaseGetPropertiesResource) –
options (MongoDBDatabaseGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB MongoDB database resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB MongoDB database
-
class
azure.mgmt.cosmosdb.models.
MongoIndex
(*, key=None, options=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB MongoDB collection index key.
- Parameters
key (MongoIndexKeys) – Cosmos DB MongoDB collection index keys
options (MongoIndexOptions) – Cosmos DB MongoDB collection index key options
-
class
azure.mgmt.cosmosdb.models.
MongoIndexKeys
(*, keys=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB MongoDB collection resource object.
-
class
azure.mgmt.cosmosdb.models.
MongoIndexOptions
(*, expire_after_seconds: int = None, unique: bool = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB MongoDB collection index options.
-
class
azure.mgmt.cosmosdb.models.
NotebookWorkspace
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMProxyResource
A notebook workspace resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – The unique resource identifier of the database account.
name (str) – The name of the database account.
notebook_server_endpoint (str) – Specifies the endpoint of Notebook server.
status (str) – Status of the notebook workspace. Possible values are: Creating, Online, Deleting, Failed, Updating.
-
class
azure.mgmt.cosmosdb.models.
NotebookWorkspaceConnectionInfoResult
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The connection info for the given notebook workspace.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
NotebookWorkspaceCreateUpdateParameters
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMProxyResource
Parameters to create a notebook workspace resource.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
Operation
(*, name: str = None, display=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
REST API operation.
- Parameters
name (str) – Operation name: {provider}/{resource}/{operation}
display (OperationDisplay) – The object that represents the operation.
-
class
azure.mgmt.cosmosdb.models.
OperationDisplay
(*, provider: str = None, resource: str = None, operation: str = None, description: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The object that represents the operation.
-
class
azure.mgmt.cosmosdb.models.
OptionsResource
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB options resource object.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
PartitionMetric
(*, unit=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.Metric
The metric values for a single partition.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
start_time (datetime) – The start time for the metric (ISO-8601 format).
end_time (datetime) – The end time for the metric (ISO-8601 format).
time_grain (str) – The time grain to be used to summarize the metric values.
name (MetricName) – The name information for the metric.
metric_values (list[MetricValue]) – The metric values for the specified time window and timestep.
partition_id (str) – The partition id (GUID identifier) of the metric values.
partition_key_range_id (str) – The partition key range id (integer identifier) of the metric values.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
-
class
azure.mgmt.cosmosdb.models.
PartitionUsage
(*, unit=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.Usage
The partition level usage data for a usage request.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
- Variables
name (MetricName) – The name information for the metric.
quota_period (str) – The quota period used to summarize the usage values.
limit (long) – Maximum value for this metric
current_value (long) – Current value for this metric
partition_id (str) – The partition id (GUID identifier) of the usages.
partition_key_range_id (str) – The partition key range id (integer identifier) of the usages.
-
class
azure.mgmt.cosmosdb.models.
PercentileMetric
(*, unit=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Percentile Metric data.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
start_time (datetime) – The start time for the metric (ISO-8601 format).
end_time (datetime) – The end time for the metric (ISO-8601 format).
time_grain (str) – The time grain to be used to summarize the metric values.
name (MetricName) – The name information for the metric.
metric_values (list[PercentileMetricValue]) – The percentile metric values for the specified time window and timestep.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
-
class
azure.mgmt.cosmosdb.models.
PercentileMetricValue
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.MetricValue
Represents percentile metrics values.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
_count (float) – The number of values for the metric.
timestamp (datetime) – The metric timestamp (ISO-8601 format).
p10 (float) – The 10th percentile value for the metric.
p25 (float) – The 25th percentile value for the metric.
p50 (float) – The 50th percentile value for the metric.
p75 (float) – The 75th percentile value for the metric.
p90 (float) – The 90th percentile value for the metric.
p95 (float) – The 95th percentile value for the metric.
p99 (float) – The 99th percentile value for the metric.
-
class
azure.mgmt.cosmosdb.models.
PrivateEndpointConnection
(*, private_endpoint=None, private_link_service_connection_state=None, group_id: str = None, provisioning_state: str = None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ProxyResource
A private endpoint connection.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name (str) – The name of the resource
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Parameters
private_endpoint (PrivateEndpointProperty) – Private endpoint which the connection belongs to.
private_link_service_connection_state (PrivateLinkServiceConnectionStateProperty) – Connection State of the Private Endpoint Connection.
group_id (str) – Group id of the private endpoint.
provisioning_state (str) – Provisioning state of the private endpoint.
-
class
azure.mgmt.cosmosdb.models.
PrivateEndpointProperty
(*, id: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Private endpoint which the connection belongs to.
- Parameters
id (str) – Resource id of the private endpoint.
-
class
azure.mgmt.cosmosdb.models.
PrivateLinkResource
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMProxyResource
A private link resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – The unique resource identifier of the database account.
name (str) – The name of the database account.
group_id (str) – The private link resource group id.
required_members (list[str]) – The private link resource required member names.
required_zone_names (list[str]) – The private link resource required zone names.
-
class
azure.mgmt.cosmosdb.models.
PrivateLinkServiceConnectionStateProperty
(*, status: str = None, description: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Connection State of the Private Endpoint Connection.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.cosmosdb.models.
ProxyResource
(**kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.Resource
The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name (str) – The name of the resource
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
-
class
azure.mgmt.cosmosdb.models.
RegionForOnlineOffline
(*, region: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB region to online or offline.
All required parameters must be populated in order to send to Azure.
- Parameters
region (str) – Required. Cosmos DB region, with spaces between words and each word capitalized.
-
class
azure.mgmt.cosmosdb.models.
Resource
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name (str) – The name of the resource
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
-
class
azure.mgmt.cosmosdb.models.
SpatialSpec
(*, path: str = None, types=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SpatialSpec.
- Parameters
path (str) – The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
types (list[str or SpatialType]) – List of path’s spatial type
-
class
azure.mgmt.cosmosdb.models.
SqlContainerCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB container.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlContainerResource) – Required. The standard JSON format of a container
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
SqlContainerGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
SqlContainerGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
SqlContainerGetPropertiesResource
(*, id: str, indexing_policy=None, partition_key=None, default_ttl: int = None, unique_key_policy=None, conflict_resolution_policy=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SqlContainerGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB SQL container
indexing_policy (IndexingPolicy) – The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
partition_key (ContainerPartitionKey) – The configuration of the partition key to be used for partitioning data into multiple partitions
default_ttl (int) – Default time to live
unique_key_policy (UniqueKeyPolicy) – The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
conflict_resolution_policy (ConflictResolutionPolicy) – The conflict resolution policy for the container.
analytical_storage_ttl (long) – Analytical TTL.
- Variables
-
class
azure.mgmt.cosmosdb.models.
SqlContainerGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB container.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlContainerGetPropertiesResource) –
options (SqlContainerGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
SqlContainerResource
(*, id: str, indexing_policy=None, partition_key=None, default_ttl: int = None, unique_key_policy=None, conflict_resolution_policy=None, analytical_storage_ttl: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB SQL container resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB SQL container
indexing_policy (IndexingPolicy) – The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
partition_key (ContainerPartitionKey) – The configuration of the partition key to be used for partitioning data into multiple partitions
default_ttl (int) – Default time to live
unique_key_policy (UniqueKeyPolicy) – The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
conflict_resolution_policy (ConflictResolutionPolicy) – The conflict resolution policy for the container.
analytical_storage_ttl (long) – Analytical TTL.
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB SQL database.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlDatabaseResource) – Required. The standard JSON format of a SQL database
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
SqlDatabaseGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseGetPropertiesResource
(*, id: str, _colls: str = None, _users: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SqlDatabaseGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
- Variables
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB SQL database.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlDatabaseGetPropertiesResource) –
options (SqlDatabaseGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB SQL database resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB SQL database
-
class
azure.mgmt.cosmosdb.models.
SqlStoredProcedureCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB storedProcedure.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlStoredProcedureResource) – Required. The standard JSON format of a storedProcedure
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
SqlStoredProcedureGetPropertiesResource
(*, id: str, body: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SqlStoredProcedureGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
- Variables
-
class
azure.mgmt.cosmosdb.models.
SqlStoredProcedureGetResults
(*, location: str = None, tags=None, resource=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB storedProcedure.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlStoredProcedureGetPropertiesResource) –
-
class
azure.mgmt.cosmosdb.models.
SqlStoredProcedureResource
(*, id: str, body: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB SQL storedProcedure resource object.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.cosmosdb.models.
SqlTriggerCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB trigger.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlTriggerResource) – Required. The standard JSON format of a trigger
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
SqlTriggerGetPropertiesResource
(*, id: str, body: str = None, trigger_type=None, trigger_operation=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SqlTriggerGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB SQL trigger
body (str) – Body of the Trigger
trigger_type (str or TriggerType) – Type of the Trigger. Possible values include: ‘Pre’, ‘Post’
trigger_operation (str or TriggerOperation) – The operation the trigger is associated with. Possible values include: ‘All’, ‘Create’, ‘Update’, ‘Delete’, ‘Replace’
- Variables
-
class
azure.mgmt.cosmosdb.models.
SqlTriggerGetResults
(*, location: str = None, tags=None, resource=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB trigger.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlTriggerGetPropertiesResource) –
-
class
azure.mgmt.cosmosdb.models.
SqlTriggerResource
(*, id: str, body: str = None, trigger_type=None, trigger_operation=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB SQL trigger resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB SQL trigger
body (str) – Body of the Trigger
trigger_type (str or TriggerType) – Type of the Trigger. Possible values include: ‘Pre’, ‘Post’
trigger_operation (str or TriggerOperation) – The operation the trigger is associated with. Possible values include: ‘All’, ‘Create’, ‘Update’, ‘Delete’, ‘Replace’
-
class
azure.mgmt.cosmosdb.models.
SqlUserDefinedFunctionCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB userDefinedFunction.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlUserDefinedFunctionResource) – Required. The standard JSON format of a userDefinedFunction
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
SqlUserDefinedFunctionGetPropertiesResource
(*, id: str, body: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
SqlUserDefinedFunctionGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
- Variables
-
class
azure.mgmt.cosmosdb.models.
SqlUserDefinedFunctionGetResults
(*, location: str = None, tags=None, resource=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB userDefinedFunction.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (SqlUserDefinedFunctionGetPropertiesResource) –
-
class
azure.mgmt.cosmosdb.models.
SqlUserDefinedFunctionResource
(*, id: str, body: str = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB SQL userDefinedFunction resource object.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.cosmosdb.models.
TableCreateUpdateParameters
(*, resource, options, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to create and update Cosmos DB Table.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (TableResource) – Required. The standard JSON format of a Table
options (CreateUpdateOptions) – Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
-
class
azure.mgmt.cosmosdb.models.
TableGetPropertiesOptions
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.OptionsResource
TableGetPropertiesOptions.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
autoscale_settings (AutoscaleSettings) – Specifies the Autoscale settings.
-
class
azure.mgmt.cosmosdb.models.
TableGetPropertiesResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
TableGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB table
- Variables
-
class
azure.mgmt.cosmosdb.models.
TableGetResults
(*, location: str = None, tags=None, resource=None, options=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB Table.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (TableGetPropertiesResource) –
options (TableGetPropertiesOptions) –
-
class
azure.mgmt.cosmosdb.models.
TableResource
(*, id: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB table resource object.
All required parameters must be populated in order to send to Azure.
- Parameters
id (str) – Required. Name of the Cosmos DB table
-
class
azure.mgmt.cosmosdb.models.
ThroughputPolicyResource
(*, is_enabled: bool = None, increment_percent: int = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB resource throughput policy.
-
class
azure.mgmt.cosmosdb.models.
ThroughputSettingsGetPropertiesResource
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
ThroughputSettingsGetPropertiesResource.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.
autoscale_settings (AutoscaleSettingsResource) – Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.
- Variables
minimum_throughput (str) – The minimum throughput of the resource
offer_replace_pending (str) – The throughput replace is pending
_rid (str) – A system generated property. A unique identifier.
_ts (object) – A system generated property that denotes the last updated timestamp of the resource.
_etag (str) – A system generated property representing the resource etag required for optimistic concurrency control.
-
class
azure.mgmt.cosmosdb.models.
ThroughputSettingsGetResults
(*, location: str = None, tags=None, resource=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
An Azure Cosmos DB resource throughput.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (ThroughputSettingsGetPropertiesResource) –
-
class
azure.mgmt.cosmosdb.models.
ThroughputSettingsResource
(*, throughput: int = None, autoscale_settings=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
throughput (int) – Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.
autoscale_settings (AutoscaleSettingsResource) – Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.
- Variables
-
class
azure.mgmt.cosmosdb.models.
ThroughputSettingsUpdateParameters
(*, resource, location: str = None, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.ARMResourceProperties
Parameters to update Cosmos DB resource throughput.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
- Parameters
location (str) – The location of the resource group to which the resource belongs.
resource (ThroughputSettingsResource) – Required. The standard JSON format of a resource throughput
-
class
azure.mgmt.cosmosdb.models.
TrackedResource
(*, location: str, tags=None, **kwargs)[source]¶ Bases:
azure.mgmt.cosmosdb.models._models_py3.Resource
The resource model definition for a ARM tracked top level resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
name (str) – The name of the resource
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Parameters
-
class
azure.mgmt.cosmosdb.models.
UniqueKey
(*, paths=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
-
class
azure.mgmt.cosmosdb.models.
UniqueKeyPolicy
(*, unique_keys=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
-
class
azure.mgmt.cosmosdb.models.
Usage
(*, unit=None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The usage data for a usage request.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
unit (str or UnitType) – The unit of the metric. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
- Variables
name (MetricName) – The name information for the metric.
quota_period (str) – The quota period used to summarize the usage values.
limit (long) – Maximum value for this metric
current_value (long) – Current value for this metric
-
class
azure.mgmt.cosmosdb.models.
VirtualNetworkRule
(*, id: str = None, ignore_missing_vnet_service_endpoint: bool = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Virtual Network ACL Rule object.
- Parameters
id (str) – Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
ignore_missing_vnet_service_endpoint (bool) – Create firewall rule before the virtual network has vnet service endpoint enabled.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
DatabaseAccountGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
MetricPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Metric
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
UsagePaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Usage
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
MetricDefinitionPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
MetricDefinition
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
OperationPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
Operation
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
PercentileMetricPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PercentileMetric
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
PartitionMetricPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PartitionMetric
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
PartitionUsagePaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PartitionUsage
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
SqlDatabaseGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
SqlDatabaseGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
SqlContainerGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
SqlContainerGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
SqlStoredProcedureGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
SqlStoredProcedureGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
SqlUserDefinedFunctionGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
SqlUserDefinedFunctionGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
SqlTriggerGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
SqlTriggerGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
MongoDBDatabaseGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
MongoDBDatabaseGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
MongoDBCollectionGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
MongoDBCollectionGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
TableGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
TableGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
CassandraKeyspaceGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
CassandraKeyspaceGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
CassandraTableGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
CassandraTableGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
GremlinDatabaseGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
GremlinDatabaseGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
GremlinGraphGetResultsPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
GremlinGraphGetResults
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
NotebookWorkspacePaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
NotebookWorkspace
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
PrivateLinkResourcePaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PrivateLinkResource
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
PrivateEndpointConnectionPaged
(*args, **kwargs)[source]¶ Bases:
msrest.paging.Paged
A paging container for iterating over a list of
PrivateEndpointConnection
objectBring async to Paging.
“async_command” is mandatory keyword argument for this mixin to work.
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountKind
[source]¶ -
An enumeration.
-
global_document_db
= 'GlobalDocumentDB'¶
-
mongo_db
= 'MongoDB'¶
-
parse
= 'Parse'¶
-
-
class
azure.mgmt.cosmosdb.models.
DatabaseAccountOfferType
[source]¶ -
An enumeration.
-
standard
= 'Standard'¶
-
-
class
azure.mgmt.cosmosdb.models.
DefaultConsistencyLevel
[source]¶ -
An enumeration.
-
bounded_staleness
= 'BoundedStaleness'¶
-
consistent_prefix
= 'ConsistentPrefix'¶
-
eventual
= 'Eventual'¶
-
session
= 'Session'¶
-
strong
= 'Strong'¶
-
-
class
azure.mgmt.cosmosdb.models.
PublicNetworkAccess
[source]¶ -
An enumeration.
-
disabled
= 'Disabled'¶
-
enabled
= 'Enabled'¶
-
-
class
azure.mgmt.cosmosdb.models.
ServerVersion
[source]¶ -
An enumeration.
-
three_full_stop_six
= '3.6'¶
-
three_full_stop_two
= '3.2'¶
-
-
class
azure.mgmt.cosmosdb.models.
IndexingMode
[source]¶ -
An enumeration.
-
consistent
= 'Consistent'¶
-
lazy
= 'Lazy'¶
-
none
= 'None'¶
-
-
class
azure.mgmt.cosmosdb.models.
DataType
[source]¶ -
An enumeration.
-
line_string
= 'LineString'¶
-
multi_polygon
= 'MultiPolygon'¶
-
number
= 'Number'¶
-
point
= 'Point'¶
-
polygon
= 'Polygon'¶
-
string
= 'String'¶
-
-
class
azure.mgmt.cosmosdb.models.
IndexKind
[source]¶ -
An enumeration.
-
hash
= 'Hash'¶
-
range
= 'Range'¶
-
spatial
= 'Spatial'¶
-
-
class
azure.mgmt.cosmosdb.models.
CompositePathSortOrder
[source]¶ -
An enumeration.
-
ascending
= 'Ascending'¶
-
descending
= 'Descending'¶
-
-
class
azure.mgmt.cosmosdb.models.
SpatialType
[source]¶ -
An enumeration.
-
line_string
= 'LineString'¶
-
multi_polygon
= 'MultiPolygon'¶
-
point
= 'Point'¶
-
polygon
= 'Polygon'¶
-
-
class
azure.mgmt.cosmosdb.models.
PartitionKind
[source]¶ -
An enumeration.
-
hash
= 'Hash'¶
-
range
= 'Range'¶
-
-
class
azure.mgmt.cosmosdb.models.
ConflictResolutionMode
[source]¶ -
An enumeration.
-
custom
= 'Custom'¶
-
last_writer_wins
= 'LastWriterWins'¶
-
-
class
azure.mgmt.cosmosdb.models.
TriggerOperation
[source]¶ -
An enumeration.
-
all
= 'All'¶
-
create
= 'Create'¶
-
delete
= 'Delete'¶
-
replace
= 'Replace'¶
-
update
= 'Update'¶
-
-
class
azure.mgmt.cosmosdb.models.
KeyKind
[source]¶ -
An enumeration.
-
primary
= 'primary'¶
-
primary_readonly
= 'primaryReadonly'¶
-
secondary
= 'secondary'¶
-
secondary_readonly
= 'secondaryReadonly'¶
-