Esempio n. 1
0
def cli_cosmosdb_mongodb_collection_throughput_update(
        client, resource_group_name, account_name, database_name,
        collection_name, throughput):
    """Update an Azure Cosmos DB MongoDB collection throughput"""
    throughput_resource = ThroughputResource(throughput=throughput)
    return client.update_mongo_db_collection_throughput(
        resource_group_name, account_name, database_name, collection_name,
        throughput_resource)
Esempio n. 2
0
def cli_cosmosdb_sql_database_throughput_update(client, resource_group_name,
                                                account_name, database_name,
                                                throughput):
    """Update an Azure Cosmos DB SQL database throughput"""
    throughput_resource = ThroughputResource(throughput=throughput)
    return client.update_sql_database_throughput(resource_group_name,
                                                 account_name, database_name,
                                                 throughput_resource)
Esempio n. 3
0
def cli_cosmosdb_gremlin_graph_throughput_update(client, resource_group_name,
                                                 account_name, database_name,
                                                 graph_name, throughput):
    """Update an Azure Cosmos DB Gremlin graph throughput"""
    throughput_resource = ThroughputResource(throughput=throughput)
    return client.update_gremlin_graph_throughput(resource_group_name,
                                                  account_name, database_name,
                                                  graph_name,
                                                  throughput_resource)
Esempio n. 4
0
def cli_cosmosdb_cassandra_table_throughput_update(client, resource_group_name,
                                                   account_name, keyspace_name,
                                                   table_name, throughput):
    """Update an Azure Cosmos DB Cassandra table throughput"""
    throughput_resource = ThroughputResource(throughput=throughput)
    return client.update_cassandra_table_throughput(resource_group_name,
                                                    account_name,
                                                    keyspace_name, table_name,
                                                    throughput_resource)