コード例 #1
0
def cli_cosmosdb_table_throughput_update(client, resource_group_name,
                                         account_name, table_name, throughput):
    """Update an Azure Cosmos DB table throughput"""
    throughput_resource = ThroughputSettingsResource(throughput=throughput)
    throughput_update_resource = ThroughputSettingsUpdateParameters(
        resource=throughput_resource)
    return client.update_table_throughput(resource_group_name, account_name,
                                          table_name,
                                          throughput_update_resource)
コード例 #2
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 = ThroughputSettingsResource(throughput=throughput)
    throughput_update_resource = ThroughputSettingsUpdateParameters(
        resource=throughput_resource)
    return client.update_mongo_db_collection_throughput(
        resource_group_name, account_name, database_name, collection_name,
        throughput_update_resource)
コード例 #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 = ThroughputSettingsResource(throughput=throughput)
    throughput_update_resource = ThroughputSettingsUpdateParameters(
        resource=throughput_resource)
    return client.update_gremlin_graph_throughput(resource_group_name,
                                                  account_name, database_name,
                                                  graph_name,
                                                  throughput_update_resource)
コード例 #4
0
def cli_cosmosdb_sql_container_throughput_update(client, resource_group_name,
                                                 account_name, database_name,
                                                 container_name, throughput):
    """Update an Azure Cosmos DB SQL container throughput"""
    throughput_resource = ThroughputSettingsResource(throughput=throughput)
    throughput_update_resource = ThroughputSettingsUpdateParameters(
        resource=throughput_resource)
    return client.update_sql_container_throughput(resource_group_name,
                                                  account_name, database_name,
                                                  container_name,
                                                  throughput_update_resource)