azure_mgmt_cosmosdb 0.22.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +3 -10
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +3 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +22 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_resource.rb +20 -0
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +4 -2
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +8 -5
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +4 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_link_resources.rb +16 -6
- data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +0 -2
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +1 -2
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +0 -2
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb.rb +267 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +231 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database.rb +377 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/api_type.rb +20 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +114 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/backup_storage_redundancy.rb +17 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_mode.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/created_by_type.rb +18 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +125 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_create_update_properties.rb +324 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +552 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +341 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/database_restore_resource.rb +66 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_error_response.rb +47 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/default_request_database_account_create_update_properties.rb +255 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity.rb +102 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/operation_type.rb +18 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +77 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/permission.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/resource_identity_type.rb +18 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_account_get_result.rb +166 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_database_accounts_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_location_resource.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_get_result.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collection_properties_resource.rb +99 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_collections_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_get_result.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_database_properties_resource.rb +99 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_databases_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_mongodb_resources_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_get_result.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource.rb +110 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_container_properties_resource_container.rb +164 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_containers_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_get_result.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource.rb +110 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_database_properties_resource_database.rb +125 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_databases_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restorable_sql_resources_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_mode.rb +15 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_parameters.rb +93 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/restore_reqeust_database_account_create_update_properties.rb +268 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/role_definition_type.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +120 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb +73 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_get_results.rb +100 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_create_update_parameters.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_get_results.rb +134 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_definition_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +120 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +122 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/system_data.rb +106 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +120 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +119 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +107 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +108 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_database_accounts.rb +319 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_collections.rb +136 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_databases.rb +130 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_mongodb_resources.rb +142 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_containers.rb +136 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_databases.rb +130 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/restorable_sql_resources.rb +142 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/sql_resources.rb +4503 -0
- data/lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb.rb +219 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +2348 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +2335 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +77 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy_type.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/continuous_mode_backup_policy.rb +50 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/cors_policy.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +378 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +491 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +329 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/error_response_updated_format.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb +63 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb +65 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +65 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/resource.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +161 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +122 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +95 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +2354 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +905 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +4065 -0
- data/lib/2020-09-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1150 -0
- data/lib/azure_mgmt_cosmosdb.rb +5 -3
- data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +479 -357
- data/lib/version.rb +1 -1
- metadata +441 -3
@@ -0,0 +1,840 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Cosmosdb::Mgmt::V2020_06_01_preview
|
7
|
+
#
|
8
|
+
# TableResources
|
9
|
+
#
|
10
|
+
class TableResources
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the TableResources class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [CosmosDBManagementClient] reference to the CosmosDBManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists the Tables under an existing Azure Cosmos DB database account.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param account_name [String] Cosmos DB database account name.
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [TableListResult] operation results.
|
34
|
+
#
|
35
|
+
def list_tables(resource_group_name, account_name, custom_headers:nil)
|
36
|
+
response = list_tables_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Lists the Tables under an existing Azure Cosmos DB database account.
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
44
|
+
# is case insensitive.
|
45
|
+
# @param account_name [String] Cosmos DB database account name.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_tables_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
52
|
+
list_tables_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Lists the Tables under an existing Azure Cosmos DB database account.
|
57
|
+
#
|
58
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
59
|
+
# is case insensitive.
|
60
|
+
# @param account_name [String] Cosmos DB database account name.
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_tables_async(resource_group_name, account_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
69
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
73
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
74
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
75
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
76
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
77
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
78
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
|
+
|
84
|
+
# Set Headers
|
85
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables'
|
88
|
+
|
89
|
+
request_url = @base_url || @client.base_url
|
90
|
+
|
91
|
+
options = {
|
92
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
|
94
|
+
query_params: {'api-version' => @client.api_version},
|
95
|
+
headers: request_headers.merge(custom_headers || {}),
|
96
|
+
base_url: request_url
|
97
|
+
}
|
98
|
+
promise = @client.make_request_async(:get, path_template, options)
|
99
|
+
|
100
|
+
promise = promise.then do |result|
|
101
|
+
http_response = result.response
|
102
|
+
status_code = http_response.status
|
103
|
+
response_content = http_response.body
|
104
|
+
unless status_code == 200
|
105
|
+
error_model = JSON.load(response_content)
|
106
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
107
|
+
end
|
108
|
+
|
109
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
111
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
112
|
+
# Deserialize Response
|
113
|
+
if status_code == 200
|
114
|
+
begin
|
115
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::TableListResult.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
118
|
+
rescue Exception => e
|
119
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
result
|
124
|
+
end
|
125
|
+
|
126
|
+
promise.execute
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Gets the Tables under an existing Azure Cosmos DB database account with the
|
131
|
+
# provided name.
|
132
|
+
#
|
133
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
134
|
+
# is case insensitive.
|
135
|
+
# @param account_name [String] Cosmos DB database account name.
|
136
|
+
# @param table_name [String] Cosmos DB table name.
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
|
+
# will be added to the HTTP request.
|
139
|
+
#
|
140
|
+
# @return [TableGetResults] operation results.
|
141
|
+
#
|
142
|
+
def get_table(resource_group_name, account_name, table_name, custom_headers:nil)
|
143
|
+
response = get_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
144
|
+
response.body unless response.nil?
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Gets the Tables under an existing Azure Cosmos DB database account with the
|
149
|
+
# provided name.
|
150
|
+
#
|
151
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
152
|
+
# is case insensitive.
|
153
|
+
# @param account_name [String] Cosmos DB database account name.
|
154
|
+
# @param table_name [String] Cosmos DB table name.
|
155
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
|
+
# will be added to the HTTP request.
|
157
|
+
#
|
158
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
159
|
+
#
|
160
|
+
def get_table_with_http_info(resource_group_name, account_name, table_name, custom_headers:nil)
|
161
|
+
get_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
162
|
+
end
|
163
|
+
|
164
|
+
#
|
165
|
+
# Gets the Tables under an existing Azure Cosmos DB database account with the
|
166
|
+
# provided name.
|
167
|
+
#
|
168
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
169
|
+
# is case insensitive.
|
170
|
+
# @param account_name [String] Cosmos DB database account name.
|
171
|
+
# @param table_name [String] Cosmos DB table name.
|
172
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
173
|
+
# to the HTTP request.
|
174
|
+
#
|
175
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
176
|
+
#
|
177
|
+
def get_table_async(resource_group_name, account_name, table_name, custom_headers:nil)
|
178
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
179
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
180
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
181
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
182
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
183
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
184
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
185
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
186
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
187
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
188
|
+
fail ArgumentError, 'table_name is nil' if table_name.nil?
|
189
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
190
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
191
|
+
|
192
|
+
|
193
|
+
request_headers = {}
|
194
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
195
|
+
|
196
|
+
# Set Headers
|
197
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
198
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
199
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}'
|
200
|
+
|
201
|
+
request_url = @base_url || @client.base_url
|
202
|
+
|
203
|
+
options = {
|
204
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
205
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'tableName' => table_name},
|
206
|
+
query_params: {'api-version' => @client.api_version},
|
207
|
+
headers: request_headers.merge(custom_headers || {}),
|
208
|
+
base_url: request_url
|
209
|
+
}
|
210
|
+
promise = @client.make_request_async(:get, path_template, options)
|
211
|
+
|
212
|
+
promise = promise.then do |result|
|
213
|
+
http_response = result.response
|
214
|
+
status_code = http_response.status
|
215
|
+
response_content = http_response.body
|
216
|
+
unless status_code == 200
|
217
|
+
error_model = JSON.load(response_content)
|
218
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
219
|
+
end
|
220
|
+
|
221
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
222
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
223
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
224
|
+
# Deserialize Response
|
225
|
+
if status_code == 200
|
226
|
+
begin
|
227
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
228
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::TableGetResults.mapper()
|
229
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
230
|
+
rescue Exception => e
|
231
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
result
|
236
|
+
end
|
237
|
+
|
238
|
+
promise.execute
|
239
|
+
end
|
240
|
+
|
241
|
+
#
|
242
|
+
# Create or update an Azure Cosmos DB Table
|
243
|
+
#
|
244
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
245
|
+
# is case insensitive.
|
246
|
+
# @param account_name [String] Cosmos DB database account name.
|
247
|
+
# @param table_name [String] Cosmos DB table name.
|
248
|
+
# @param create_update_table_parameters [TableCreateUpdateParameters] The
|
249
|
+
# parameters to provide for the current Table.
|
250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
|
+
# will be added to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [TableGetResults] operation results.
|
254
|
+
#
|
255
|
+
def create_update_table(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:nil)
|
256
|
+
response = create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:custom_headers).value!
|
257
|
+
response.body unless response.nil?
|
258
|
+
end
|
259
|
+
|
260
|
+
#
|
261
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
262
|
+
# is case insensitive.
|
263
|
+
# @param account_name [String] Cosmos DB database account name.
|
264
|
+
# @param table_name [String] Cosmos DB table name.
|
265
|
+
# @param create_update_table_parameters [TableCreateUpdateParameters] The
|
266
|
+
# parameters to provide for the current Table.
|
267
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
268
|
+
# will be added to the HTTP request.
|
269
|
+
#
|
270
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
271
|
+
# response.
|
272
|
+
#
|
273
|
+
def create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:nil)
|
274
|
+
# Send request
|
275
|
+
promise = begin_create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:custom_headers)
|
276
|
+
|
277
|
+
promise = promise.then do |response|
|
278
|
+
# Defining deserialization method.
|
279
|
+
deserialize_method = lambda do |parsed_response|
|
280
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::TableGetResults.mapper()
|
281
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Waiting for response.
|
285
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
286
|
+
end
|
287
|
+
|
288
|
+
promise
|
289
|
+
end
|
290
|
+
|
291
|
+
#
|
292
|
+
# Deletes an existing Azure Cosmos DB Table.
|
293
|
+
#
|
294
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
295
|
+
# is case insensitive.
|
296
|
+
# @param account_name [String] Cosmos DB database account name.
|
297
|
+
# @param table_name [String] Cosmos DB table name.
|
298
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
299
|
+
# will be added to the HTTP request.
|
300
|
+
#
|
301
|
+
def delete_table(resource_group_name, account_name, table_name, custom_headers:nil)
|
302
|
+
response = delete_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
303
|
+
nil
|
304
|
+
end
|
305
|
+
|
306
|
+
#
|
307
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
308
|
+
# is case insensitive.
|
309
|
+
# @param account_name [String] Cosmos DB database account name.
|
310
|
+
# @param table_name [String] Cosmos DB table name.
|
311
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
312
|
+
# will be added to the HTTP request.
|
313
|
+
#
|
314
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
315
|
+
# response.
|
316
|
+
#
|
317
|
+
def delete_table_async(resource_group_name, account_name, table_name, custom_headers:nil)
|
318
|
+
# Send request
|
319
|
+
promise = begin_delete_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers)
|
320
|
+
|
321
|
+
promise = promise.then do |response|
|
322
|
+
# Defining deserialization method.
|
323
|
+
deserialize_method = lambda do |parsed_response|
|
324
|
+
end
|
325
|
+
|
326
|
+
# Waiting for response.
|
327
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
328
|
+
end
|
329
|
+
|
330
|
+
promise
|
331
|
+
end
|
332
|
+
|
333
|
+
#
|
334
|
+
# Gets the RUs per second of the Table under an existing Azure Cosmos DB
|
335
|
+
# database account with the provided name.
|
336
|
+
#
|
337
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
338
|
+
# is case insensitive.
|
339
|
+
# @param account_name [String] Cosmos DB database account name.
|
340
|
+
# @param table_name [String] Cosmos DB table name.
|
341
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
|
+
# will be added to the HTTP request.
|
343
|
+
#
|
344
|
+
# @return [ThroughputSettingsGetResults] operation results.
|
345
|
+
#
|
346
|
+
def get_table_throughput(resource_group_name, account_name, table_name, custom_headers:nil)
|
347
|
+
response = get_table_throughput_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
348
|
+
response.body unless response.nil?
|
349
|
+
end
|
350
|
+
|
351
|
+
#
|
352
|
+
# Gets the RUs per second of the Table under an existing Azure Cosmos DB
|
353
|
+
# database account with the provided name.
|
354
|
+
#
|
355
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
356
|
+
# is case insensitive.
|
357
|
+
# @param account_name [String] Cosmos DB database account name.
|
358
|
+
# @param table_name [String] Cosmos DB table name.
|
359
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
360
|
+
# will be added to the HTTP request.
|
361
|
+
#
|
362
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
363
|
+
#
|
364
|
+
def get_table_throughput_with_http_info(resource_group_name, account_name, table_name, custom_headers:nil)
|
365
|
+
get_table_throughput_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
366
|
+
end
|
367
|
+
|
368
|
+
#
|
369
|
+
# Gets the RUs per second of the Table under an existing Azure Cosmos DB
|
370
|
+
# database account with the provided name.
|
371
|
+
#
|
372
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
373
|
+
# is case insensitive.
|
374
|
+
# @param account_name [String] Cosmos DB database account name.
|
375
|
+
# @param table_name [String] Cosmos DB table name.
|
376
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
377
|
+
# to the HTTP request.
|
378
|
+
#
|
379
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
380
|
+
#
|
381
|
+
def get_table_throughput_async(resource_group_name, account_name, table_name, custom_headers:nil)
|
382
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
383
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
384
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
385
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
386
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
387
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
388
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
389
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
390
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
391
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
392
|
+
fail ArgumentError, 'table_name is nil' if table_name.nil?
|
393
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
394
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
395
|
+
|
396
|
+
|
397
|
+
request_headers = {}
|
398
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
399
|
+
|
400
|
+
# Set Headers
|
401
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
402
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
403
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default'
|
404
|
+
|
405
|
+
request_url = @base_url || @client.base_url
|
406
|
+
|
407
|
+
options = {
|
408
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
409
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'tableName' => table_name},
|
410
|
+
query_params: {'api-version' => @client.api_version},
|
411
|
+
headers: request_headers.merge(custom_headers || {}),
|
412
|
+
base_url: request_url
|
413
|
+
}
|
414
|
+
promise = @client.make_request_async(:get, path_template, options)
|
415
|
+
|
416
|
+
promise = promise.then do |result|
|
417
|
+
http_response = result.response
|
418
|
+
status_code = http_response.status
|
419
|
+
response_content = http_response.body
|
420
|
+
unless status_code == 200
|
421
|
+
error_model = JSON.load(response_content)
|
422
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
423
|
+
end
|
424
|
+
|
425
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
426
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
427
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
428
|
+
# Deserialize Response
|
429
|
+
if status_code == 200
|
430
|
+
begin
|
431
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
432
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::ThroughputSettingsGetResults.mapper()
|
433
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
434
|
+
rescue Exception => e
|
435
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
result
|
440
|
+
end
|
441
|
+
|
442
|
+
promise.execute
|
443
|
+
end
|
444
|
+
|
445
|
+
#
|
446
|
+
# Update RUs per second of an Azure Cosmos DB Table
|
447
|
+
#
|
448
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
449
|
+
# is case insensitive.
|
450
|
+
# @param account_name [String] Cosmos DB database account name.
|
451
|
+
# @param table_name [String] Cosmos DB table name.
|
452
|
+
# @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
|
453
|
+
# parameters to provide for the RUs per second of the current Table.
|
454
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
455
|
+
# will be added to the HTTP request.
|
456
|
+
#
|
457
|
+
# @return [ThroughputSettingsGetResults] operation results.
|
458
|
+
#
|
459
|
+
def update_table_throughput(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:nil)
|
460
|
+
response = update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
|
461
|
+
response.body unless response.nil?
|
462
|
+
end
|
463
|
+
|
464
|
+
#
|
465
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
466
|
+
# is case insensitive.
|
467
|
+
# @param account_name [String] Cosmos DB database account name.
|
468
|
+
# @param table_name [String] Cosmos DB table name.
|
469
|
+
# @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
|
470
|
+
# parameters to provide for the RUs per second of the current Table.
|
471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
472
|
+
# will be added to the HTTP request.
|
473
|
+
#
|
474
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
475
|
+
# response.
|
476
|
+
#
|
477
|
+
def update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:nil)
|
478
|
+
# Send request
|
479
|
+
promise = begin_update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:custom_headers)
|
480
|
+
|
481
|
+
promise = promise.then do |response|
|
482
|
+
# Defining deserialization method.
|
483
|
+
deserialize_method = lambda do |parsed_response|
|
484
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::ThroughputSettingsGetResults.mapper()
|
485
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
486
|
+
end
|
487
|
+
|
488
|
+
# Waiting for response.
|
489
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
490
|
+
end
|
491
|
+
|
492
|
+
promise
|
493
|
+
end
|
494
|
+
|
495
|
+
#
|
496
|
+
# Create or update an Azure Cosmos DB Table
|
497
|
+
#
|
498
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
499
|
+
# is case insensitive.
|
500
|
+
# @param account_name [String] Cosmos DB database account name.
|
501
|
+
# @param table_name [String] Cosmos DB table name.
|
502
|
+
# @param create_update_table_parameters [TableCreateUpdateParameters] The
|
503
|
+
# parameters to provide for the current Table.
|
504
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
505
|
+
# will be added to the HTTP request.
|
506
|
+
#
|
507
|
+
# @return [TableGetResults] operation results.
|
508
|
+
#
|
509
|
+
def begin_create_update_table(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:nil)
|
510
|
+
response = begin_create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:custom_headers).value!
|
511
|
+
response.body unless response.nil?
|
512
|
+
end
|
513
|
+
|
514
|
+
#
|
515
|
+
# Create or update an Azure Cosmos DB Table
|
516
|
+
#
|
517
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
518
|
+
# is case insensitive.
|
519
|
+
# @param account_name [String] Cosmos DB database account name.
|
520
|
+
# @param table_name [String] Cosmos DB table name.
|
521
|
+
# @param create_update_table_parameters [TableCreateUpdateParameters] The
|
522
|
+
# parameters to provide for the current Table.
|
523
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
524
|
+
# will be added to the HTTP request.
|
525
|
+
#
|
526
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
527
|
+
#
|
528
|
+
def begin_create_update_table_with_http_info(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:nil)
|
529
|
+
begin_create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:custom_headers).value!
|
530
|
+
end
|
531
|
+
|
532
|
+
#
|
533
|
+
# Create or update an Azure Cosmos DB Table
|
534
|
+
#
|
535
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
536
|
+
# is case insensitive.
|
537
|
+
# @param account_name [String] Cosmos DB database account name.
|
538
|
+
# @param table_name [String] Cosmos DB table name.
|
539
|
+
# @param create_update_table_parameters [TableCreateUpdateParameters] The
|
540
|
+
# parameters to provide for the current Table.
|
541
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
542
|
+
# to the HTTP request.
|
543
|
+
#
|
544
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
545
|
+
#
|
546
|
+
def begin_create_update_table_async(resource_group_name, account_name, table_name, create_update_table_parameters, custom_headers:nil)
|
547
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
548
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
549
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
550
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
551
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
552
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
553
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
554
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
555
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
556
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
557
|
+
fail ArgumentError, 'table_name is nil' if table_name.nil?
|
558
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
559
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
560
|
+
fail ArgumentError, 'create_update_table_parameters is nil' if create_update_table_parameters.nil?
|
561
|
+
|
562
|
+
|
563
|
+
request_headers = {}
|
564
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
565
|
+
|
566
|
+
# Set Headers
|
567
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
568
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
569
|
+
|
570
|
+
# Serialize Request
|
571
|
+
request_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::TableCreateUpdateParameters.mapper()
|
572
|
+
request_content = @client.serialize(request_mapper, create_update_table_parameters)
|
573
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
574
|
+
|
575
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}'
|
576
|
+
|
577
|
+
request_url = @base_url || @client.base_url
|
578
|
+
|
579
|
+
options = {
|
580
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
581
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'tableName' => table_name},
|
582
|
+
query_params: {'api-version' => @client.api_version},
|
583
|
+
body: request_content,
|
584
|
+
headers: request_headers.merge(custom_headers || {}),
|
585
|
+
base_url: request_url
|
586
|
+
}
|
587
|
+
promise = @client.make_request_async(:put, path_template, options)
|
588
|
+
|
589
|
+
promise = promise.then do |result|
|
590
|
+
http_response = result.response
|
591
|
+
status_code = http_response.status
|
592
|
+
response_content = http_response.body
|
593
|
+
unless status_code == 202 || status_code == 200
|
594
|
+
error_model = JSON.load(response_content)
|
595
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
596
|
+
end
|
597
|
+
|
598
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
599
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
600
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
601
|
+
# Deserialize Response
|
602
|
+
if status_code == 200
|
603
|
+
begin
|
604
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
605
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::TableGetResults.mapper()
|
606
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
607
|
+
rescue Exception => e
|
608
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
result
|
613
|
+
end
|
614
|
+
|
615
|
+
promise.execute
|
616
|
+
end
|
617
|
+
|
618
|
+
#
|
619
|
+
# Deletes an existing Azure Cosmos DB Table.
|
620
|
+
#
|
621
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
622
|
+
# is case insensitive.
|
623
|
+
# @param account_name [String] Cosmos DB database account name.
|
624
|
+
# @param table_name [String] Cosmos DB table name.
|
625
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
626
|
+
# will be added to the HTTP request.
|
627
|
+
#
|
628
|
+
#
|
629
|
+
def begin_delete_table(resource_group_name, account_name, table_name, custom_headers:nil)
|
630
|
+
response = begin_delete_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
631
|
+
nil
|
632
|
+
end
|
633
|
+
|
634
|
+
#
|
635
|
+
# Deletes an existing Azure Cosmos DB Table.
|
636
|
+
#
|
637
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
638
|
+
# is case insensitive.
|
639
|
+
# @param account_name [String] Cosmos DB database account name.
|
640
|
+
# @param table_name [String] Cosmos DB table name.
|
641
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
642
|
+
# will be added to the HTTP request.
|
643
|
+
#
|
644
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
645
|
+
#
|
646
|
+
def begin_delete_table_with_http_info(resource_group_name, account_name, table_name, custom_headers:nil)
|
647
|
+
begin_delete_table_async(resource_group_name, account_name, table_name, custom_headers:custom_headers).value!
|
648
|
+
end
|
649
|
+
|
650
|
+
#
|
651
|
+
# Deletes an existing Azure Cosmos DB Table.
|
652
|
+
#
|
653
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
654
|
+
# is case insensitive.
|
655
|
+
# @param account_name [String] Cosmos DB database account name.
|
656
|
+
# @param table_name [String] Cosmos DB table name.
|
657
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
658
|
+
# to the HTTP request.
|
659
|
+
#
|
660
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
661
|
+
#
|
662
|
+
def begin_delete_table_async(resource_group_name, account_name, table_name, custom_headers:nil)
|
663
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
664
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
665
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
666
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
667
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
668
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
669
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
670
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
671
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
672
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
673
|
+
fail ArgumentError, 'table_name is nil' if table_name.nil?
|
674
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
675
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
676
|
+
|
677
|
+
|
678
|
+
request_headers = {}
|
679
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
680
|
+
|
681
|
+
# Set Headers
|
682
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
683
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
684
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}'
|
685
|
+
|
686
|
+
request_url = @base_url || @client.base_url
|
687
|
+
|
688
|
+
options = {
|
689
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
690
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'tableName' => table_name},
|
691
|
+
query_params: {'api-version' => @client.api_version},
|
692
|
+
headers: request_headers.merge(custom_headers || {}),
|
693
|
+
base_url: request_url
|
694
|
+
}
|
695
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
696
|
+
|
697
|
+
promise = promise.then do |result|
|
698
|
+
http_response = result.response
|
699
|
+
status_code = http_response.status
|
700
|
+
response_content = http_response.body
|
701
|
+
unless status_code == 202 || status_code == 204
|
702
|
+
error_model = JSON.load(response_content)
|
703
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
704
|
+
end
|
705
|
+
|
706
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
707
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
708
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
709
|
+
|
710
|
+
result
|
711
|
+
end
|
712
|
+
|
713
|
+
promise.execute
|
714
|
+
end
|
715
|
+
|
716
|
+
#
|
717
|
+
# Update RUs per second of an Azure Cosmos DB Table
|
718
|
+
#
|
719
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
720
|
+
# is case insensitive.
|
721
|
+
# @param account_name [String] Cosmos DB database account name.
|
722
|
+
# @param table_name [String] Cosmos DB table name.
|
723
|
+
# @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
|
724
|
+
# parameters to provide for the RUs per second of the current Table.
|
725
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
726
|
+
# will be added to the HTTP request.
|
727
|
+
#
|
728
|
+
# @return [ThroughputSettingsGetResults] operation results.
|
729
|
+
#
|
730
|
+
def begin_update_table_throughput(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:nil)
|
731
|
+
response = begin_update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
|
732
|
+
response.body unless response.nil?
|
733
|
+
end
|
734
|
+
|
735
|
+
#
|
736
|
+
# Update RUs per second of an Azure Cosmos DB Table
|
737
|
+
#
|
738
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
739
|
+
# is case insensitive.
|
740
|
+
# @param account_name [String] Cosmos DB database account name.
|
741
|
+
# @param table_name [String] Cosmos DB table name.
|
742
|
+
# @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
|
743
|
+
# parameters to provide for the RUs per second of the current Table.
|
744
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
745
|
+
# will be added to the HTTP request.
|
746
|
+
#
|
747
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
748
|
+
#
|
749
|
+
def begin_update_table_throughput_with_http_info(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:nil)
|
750
|
+
begin_update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:custom_headers).value!
|
751
|
+
end
|
752
|
+
|
753
|
+
#
|
754
|
+
# Update RUs per second of an Azure Cosmos DB Table
|
755
|
+
#
|
756
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
757
|
+
# is case insensitive.
|
758
|
+
# @param account_name [String] Cosmos DB database account name.
|
759
|
+
# @param table_name [String] Cosmos DB table name.
|
760
|
+
# @param update_throughput_parameters [ThroughputSettingsUpdateParameters] The
|
761
|
+
# parameters to provide for the RUs per second of the current Table.
|
762
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
763
|
+
# to the HTTP request.
|
764
|
+
#
|
765
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
766
|
+
#
|
767
|
+
def begin_update_table_throughput_async(resource_group_name, account_name, table_name, update_throughput_parameters, custom_headers:nil)
|
768
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
769
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
770
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
771
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
772
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
773
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
774
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
775
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
776
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
777
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-z0-9]+(-[a-z0-9]+)*'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-z0-9]+(-[a-z0-9]+)*$')).nil?
|
778
|
+
fail ArgumentError, 'table_name is nil' if table_name.nil?
|
779
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
780
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
781
|
+
fail ArgumentError, 'update_throughput_parameters is nil' if update_throughput_parameters.nil?
|
782
|
+
|
783
|
+
|
784
|
+
request_headers = {}
|
785
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
786
|
+
|
787
|
+
# Set Headers
|
788
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
789
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
790
|
+
|
791
|
+
# Serialize Request
|
792
|
+
request_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::ThroughputSettingsUpdateParameters.mapper()
|
793
|
+
request_content = @client.serialize(request_mapper, update_throughput_parameters)
|
794
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
795
|
+
|
796
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default'
|
797
|
+
|
798
|
+
request_url = @base_url || @client.base_url
|
799
|
+
|
800
|
+
options = {
|
801
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
802
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'tableName' => table_name},
|
803
|
+
query_params: {'api-version' => @client.api_version},
|
804
|
+
body: request_content,
|
805
|
+
headers: request_headers.merge(custom_headers || {}),
|
806
|
+
base_url: request_url
|
807
|
+
}
|
808
|
+
promise = @client.make_request_async(:put, path_template, options)
|
809
|
+
|
810
|
+
promise = promise.then do |result|
|
811
|
+
http_response = result.response
|
812
|
+
status_code = http_response.status
|
813
|
+
response_content = http_response.body
|
814
|
+
unless status_code == 202 || status_code == 200
|
815
|
+
error_model = JSON.load(response_content)
|
816
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
817
|
+
end
|
818
|
+
|
819
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
820
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
821
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
822
|
+
# Deserialize Response
|
823
|
+
if status_code == 200
|
824
|
+
begin
|
825
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
826
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::ThroughputSettingsGetResults.mapper()
|
827
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
828
|
+
rescue Exception => e
|
829
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
result
|
834
|
+
end
|
835
|
+
|
836
|
+
promise.execute
|
837
|
+
end
|
838
|
+
|
839
|
+
end
|
840
|
+
end
|