azure_mgmt_cosmosdb 0.21.1 → 0.21.2
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 +1 -1
- data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +1 -1
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb.rb +190 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1628 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection.rb +374 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition.rb +269 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +156 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/collection_region.rb +156 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +210 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database.rb +362 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_account_region.rb +148 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/database_accounts.rb +2184 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1623 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +290 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +382 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +241 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1634 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +156 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +163 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile.rb +141 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +158 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/percentile_target.rb +148 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/sql_resources.rb +3289 -0
- data/lib/2019-12-12/generated/azure_mgmt_cosmosdb/table_resources.rb +804 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb.rb +208 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +68 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +302 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +416 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +253 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +47 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb +73 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +44 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +125 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +87 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
- data/lib/2020-03-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb.rb +212 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1700 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection.rb +389 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +279 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +161 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/collection_region.rb +161 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/cosmos_dbmanagement_client.rb +203 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database.rb +377 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +153 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +2281 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1695 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/api_properties.rb +48 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armproxy_resource.rb +73 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/armresource_properties.rb +102 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/auto_upgrade_policy_resource.rb +48 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings.rb +48 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/autoscale_settings_resource.rb +73 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/azure_entity_resource.rb +75 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +119 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +80 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/connector_offer.rb +15 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +85 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/create_update_options.rb +61 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +342 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_get_results.rb +455 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +77 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_account_update_parameters.rb +293 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +74 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +147 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/ip_address_or_range.rb +51 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/location.rb +114 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +136 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +97 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace.rb +87 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_connection_info_result.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_create_update_parameters.rb +62 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/notebook_workspace_list_result.rb +56 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_connection.rb +88 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_endpoint_property.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/private_link_service_connection_state_property.rb +60 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/proxy_resource.rb +63 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/public_network_access.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/resource.rb +83 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/server_version.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +111 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_create_update_parameters.rb +112 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +98 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_resource.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_create_update_parameters.rb +111 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +98 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_resource.rb +82 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_create_update_parameters.rb +113 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +98 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_list_result.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_resource.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +111 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_options.rb +53 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +110 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb +59 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +124 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +98 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb +86 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_update_parameters.rb +99 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/tracked_resource.rb +92 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_operation.rb +19 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/trigger_type.rb +16 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1706 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/notebook_workspaces.rb +907 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/operations.rb +220 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +161 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +168 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile.rb +146 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +163 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +153 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +3433 -0
- data/lib/2020-04-01/generated/azure_mgmt_cosmosdb/table_resources.rb +840 -0
- data/lib/azure_mgmt_cosmosdb.rb +5 -2
- data/lib/version.rb +1 -1
- metadata +540 -2
@@ -0,0 +1,907 @@
|
|
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::V2019_12_12
|
7
|
+
#
|
8
|
+
# Azure Cosmos DB Database Service Resource Provider REST API
|
9
|
+
#
|
10
|
+
class NotebookWorkspaces
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the NotebookWorkspaces 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
|
+
# Gets the notebook workspace resources of an existing Cosmos DB 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 [NotebookWorkspaceListResult] operation results.
|
34
|
+
#
|
35
|
+
def list_by_database_account(resource_group_name, account_name, custom_headers:nil)
|
36
|
+
response = list_by_database_account_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the notebook workspace resources of an existing Cosmos DB 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_by_database_account_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
52
|
+
list_by_database_account_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Gets the notebook workspace resources of an existing Cosmos DB 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_by_database_account_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, '@client.api_version is nil' if @client.api_version.nil?
|
74
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
75
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
76
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
77
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
78
|
+
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?
|
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}/notebookWorkspaces'
|
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 MsRest::HttpOperationError.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::V2019_12_12::Models::NotebookWorkspaceListResult.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 notebook workspace for a Cosmos DB account.
|
131
|
+
#
|
132
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
133
|
+
# is case insensitive.
|
134
|
+
# @param account_name [String] Cosmos DB database account name.
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
137
|
+
#
|
138
|
+
# @return [NotebookWorkspace] operation results.
|
139
|
+
#
|
140
|
+
def get(resource_group_name, account_name, custom_headers:nil)
|
141
|
+
response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
142
|
+
response.body unless response.nil?
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Gets the notebook workspace for a Cosmos DB account.
|
147
|
+
#
|
148
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
149
|
+
# is case insensitive.
|
150
|
+
# @param account_name [String] Cosmos DB database account name.
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
|
+
#
|
156
|
+
def get_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
157
|
+
get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
158
|
+
end
|
159
|
+
|
160
|
+
#
|
161
|
+
# Gets the notebook workspace for a Cosmos DB account.
|
162
|
+
#
|
163
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
164
|
+
# is case insensitive.
|
165
|
+
# @param account_name [String] Cosmos DB database account name.
|
166
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
167
|
+
# to the HTTP request.
|
168
|
+
#
|
169
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
170
|
+
#
|
171
|
+
def get_async(resource_group_name, account_name, custom_headers:nil)
|
172
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
173
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
174
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
175
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
176
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
177
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
178
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
179
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
180
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
181
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
182
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
183
|
+
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?
|
184
|
+
notebook_workspace_name = 'default'
|
185
|
+
|
186
|
+
|
187
|
+
request_headers = {}
|
188
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
189
|
+
|
190
|
+
# Set Headers
|
191
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
192
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
193
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}'
|
194
|
+
|
195
|
+
request_url = @base_url || @client.base_url
|
196
|
+
|
197
|
+
options = {
|
198
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
199
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'notebookWorkspaceName' => notebook_workspace_name},
|
200
|
+
query_params: {'api-version' => @client.api_version},
|
201
|
+
headers: request_headers.merge(custom_headers || {}),
|
202
|
+
base_url: request_url
|
203
|
+
}
|
204
|
+
promise = @client.make_request_async(:get, path_template, options)
|
205
|
+
|
206
|
+
promise = promise.then do |result|
|
207
|
+
http_response = result.response
|
208
|
+
status_code = http_response.status
|
209
|
+
response_content = http_response.body
|
210
|
+
unless status_code == 200
|
211
|
+
error_model = JSON.load(response_content)
|
212
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
213
|
+
end
|
214
|
+
|
215
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
216
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
217
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
218
|
+
# Deserialize Response
|
219
|
+
if status_code == 200
|
220
|
+
begin
|
221
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
222
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspace.mapper()
|
223
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
224
|
+
rescue Exception => e
|
225
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
result
|
230
|
+
end
|
231
|
+
|
232
|
+
promise.execute
|
233
|
+
end
|
234
|
+
|
235
|
+
#
|
236
|
+
# Creates the notebook workspace for a Cosmos DB account.
|
237
|
+
#
|
238
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
239
|
+
# is case insensitive.
|
240
|
+
# @param account_name [String] Cosmos DB database account name.
|
241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
|
+
# will be added to the HTTP request.
|
243
|
+
#
|
244
|
+
# @return [NotebookWorkspace] operation results.
|
245
|
+
#
|
246
|
+
def create_or_update(resource_group_name, account_name, custom_headers:nil)
|
247
|
+
response = create_or_update_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
248
|
+
response.body unless response.nil?
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
253
|
+
# is case insensitive.
|
254
|
+
# @param account_name [String] Cosmos DB database account name.
|
255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
|
+
# will be added to the HTTP request.
|
257
|
+
#
|
258
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
259
|
+
# response.
|
260
|
+
#
|
261
|
+
def create_or_update_async(resource_group_name, account_name, custom_headers:nil)
|
262
|
+
# Send request
|
263
|
+
promise = begin_create_or_update_async(resource_group_name, account_name, custom_headers:custom_headers)
|
264
|
+
|
265
|
+
promise = promise.then do |response|
|
266
|
+
# Defining deserialization method.
|
267
|
+
deserialize_method = lambda do |parsed_response|
|
268
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspace.mapper()
|
269
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Waiting for response.
|
273
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
274
|
+
end
|
275
|
+
|
276
|
+
promise
|
277
|
+
end
|
278
|
+
|
279
|
+
#
|
280
|
+
# Deletes the notebook workspace for a Cosmos DB account.
|
281
|
+
#
|
282
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
283
|
+
# is case insensitive.
|
284
|
+
# @param account_name [String] Cosmos DB database account name.
|
285
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
286
|
+
# will be added to the HTTP request.
|
287
|
+
#
|
288
|
+
def delete(resource_group_name, account_name, custom_headers:nil)
|
289
|
+
response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
290
|
+
nil
|
291
|
+
end
|
292
|
+
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
298
|
+
# will be added to the HTTP request.
|
299
|
+
#
|
300
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
301
|
+
# response.
|
302
|
+
#
|
303
|
+
def delete_async(resource_group_name, account_name, custom_headers:nil)
|
304
|
+
# Send request
|
305
|
+
promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers)
|
306
|
+
|
307
|
+
promise = promise.then do |response|
|
308
|
+
# Defining deserialization method.
|
309
|
+
deserialize_method = lambda do |parsed_response|
|
310
|
+
end
|
311
|
+
|
312
|
+
# Waiting for response.
|
313
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
314
|
+
end
|
315
|
+
|
316
|
+
promise
|
317
|
+
end
|
318
|
+
|
319
|
+
#
|
320
|
+
# Retrieves the connection info for the notebook workspace
|
321
|
+
#
|
322
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
323
|
+
# is case insensitive.
|
324
|
+
# @param account_name [String] Cosmos DB database account name.
|
325
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
326
|
+
# will be added to the HTTP request.
|
327
|
+
#
|
328
|
+
# @return [NotebookWorkspaceConnectionInfoResult] operation results.
|
329
|
+
#
|
330
|
+
def list_connection_info(resource_group_name, account_name, custom_headers:nil)
|
331
|
+
response = list_connection_info_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
332
|
+
response.body unless response.nil?
|
333
|
+
end
|
334
|
+
|
335
|
+
#
|
336
|
+
# Retrieves the connection info for the notebook workspace
|
337
|
+
#
|
338
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
339
|
+
# is case insensitive.
|
340
|
+
# @param account_name [String] Cosmos DB database account 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 [MsRestAzure::AzureOperationResponse] HTTP response information.
|
345
|
+
#
|
346
|
+
def list_connection_info_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
347
|
+
list_connection_info_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# Retrieves the connection info for the notebook workspace
|
352
|
+
#
|
353
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
354
|
+
# is case insensitive.
|
355
|
+
# @param account_name [String] Cosmos DB database account name.
|
356
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
357
|
+
# to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
360
|
+
#
|
361
|
+
def list_connection_info_async(resource_group_name, account_name, custom_headers:nil)
|
362
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
363
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
364
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
365
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
366
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
367
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
368
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
369
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
370
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
371
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
372
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
373
|
+
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?
|
374
|
+
notebook_workspace_name = 'default'
|
375
|
+
|
376
|
+
|
377
|
+
request_headers = {}
|
378
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
379
|
+
|
380
|
+
# Set Headers
|
381
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
382
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
383
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/listConnectionInfo'
|
384
|
+
|
385
|
+
request_url = @base_url || @client.base_url
|
386
|
+
|
387
|
+
options = {
|
388
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
389
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'notebookWorkspaceName' => notebook_workspace_name},
|
390
|
+
query_params: {'api-version' => @client.api_version},
|
391
|
+
headers: request_headers.merge(custom_headers || {}),
|
392
|
+
base_url: request_url
|
393
|
+
}
|
394
|
+
promise = @client.make_request_async(:post, path_template, options)
|
395
|
+
|
396
|
+
promise = promise.then do |result|
|
397
|
+
http_response = result.response
|
398
|
+
status_code = http_response.status
|
399
|
+
response_content = http_response.body
|
400
|
+
unless status_code == 200
|
401
|
+
error_model = JSON.load(response_content)
|
402
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
403
|
+
end
|
404
|
+
|
405
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
406
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
407
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
408
|
+
# Deserialize Response
|
409
|
+
if status_code == 200
|
410
|
+
begin
|
411
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
412
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspaceConnectionInfoResult.mapper()
|
413
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
414
|
+
rescue Exception => e
|
415
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
result
|
420
|
+
end
|
421
|
+
|
422
|
+
promise.execute
|
423
|
+
end
|
424
|
+
|
425
|
+
#
|
426
|
+
# Regenerates the auth token for the notebook workspace
|
427
|
+
#
|
428
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
429
|
+
# is case insensitive.
|
430
|
+
# @param account_name [String] Cosmos DB database account name.
|
431
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
432
|
+
# will be added to the HTTP request.
|
433
|
+
#
|
434
|
+
def regenerate_auth_token(resource_group_name, account_name, custom_headers:nil)
|
435
|
+
response = regenerate_auth_token_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
436
|
+
nil
|
437
|
+
end
|
438
|
+
|
439
|
+
#
|
440
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
441
|
+
# is case insensitive.
|
442
|
+
# @param account_name [String] Cosmos DB database account name.
|
443
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
444
|
+
# will be added to the HTTP request.
|
445
|
+
#
|
446
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
447
|
+
# response.
|
448
|
+
#
|
449
|
+
def regenerate_auth_token_async(resource_group_name, account_name, custom_headers:nil)
|
450
|
+
# Send request
|
451
|
+
promise = begin_regenerate_auth_token_async(resource_group_name, account_name, custom_headers:custom_headers)
|
452
|
+
|
453
|
+
promise = promise.then do |response|
|
454
|
+
# Defining deserialization method.
|
455
|
+
deserialize_method = lambda do |parsed_response|
|
456
|
+
end
|
457
|
+
|
458
|
+
# Waiting for response.
|
459
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
460
|
+
end
|
461
|
+
|
462
|
+
promise
|
463
|
+
end
|
464
|
+
|
465
|
+
#
|
466
|
+
# Starts the notebook workspace
|
467
|
+
#
|
468
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
469
|
+
# is case insensitive.
|
470
|
+
# @param account_name [String] Cosmos DB database account name.
|
471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
472
|
+
# will be added to the HTTP request.
|
473
|
+
#
|
474
|
+
def start(resource_group_name, account_name, custom_headers:nil)
|
475
|
+
response = start_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
476
|
+
nil
|
477
|
+
end
|
478
|
+
|
479
|
+
#
|
480
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
481
|
+
# is case insensitive.
|
482
|
+
# @param account_name [String] Cosmos DB database account name.
|
483
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
|
+
# will be added to the HTTP request.
|
485
|
+
#
|
486
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
487
|
+
# response.
|
488
|
+
#
|
489
|
+
def start_async(resource_group_name, account_name, custom_headers:nil)
|
490
|
+
# Send request
|
491
|
+
promise = begin_start_async(resource_group_name, account_name, custom_headers:custom_headers)
|
492
|
+
|
493
|
+
promise = promise.then do |response|
|
494
|
+
# Defining deserialization method.
|
495
|
+
deserialize_method = lambda do |parsed_response|
|
496
|
+
end
|
497
|
+
|
498
|
+
# Waiting for response.
|
499
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
500
|
+
end
|
501
|
+
|
502
|
+
promise
|
503
|
+
end
|
504
|
+
|
505
|
+
#
|
506
|
+
# Creates the notebook workspace for a Cosmos DB account.
|
507
|
+
#
|
508
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
509
|
+
# is case insensitive.
|
510
|
+
# @param account_name [String] Cosmos DB database account name.
|
511
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
512
|
+
# will be added to the HTTP request.
|
513
|
+
#
|
514
|
+
# @return [NotebookWorkspace] operation results.
|
515
|
+
#
|
516
|
+
def begin_create_or_update(resource_group_name, account_name, custom_headers:nil)
|
517
|
+
response = begin_create_or_update_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
518
|
+
response.body unless response.nil?
|
519
|
+
end
|
520
|
+
|
521
|
+
#
|
522
|
+
# Creates the notebook workspace for a Cosmos DB account.
|
523
|
+
#
|
524
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
525
|
+
# is case insensitive.
|
526
|
+
# @param account_name [String] Cosmos DB database account name.
|
527
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
528
|
+
# will be added to the HTTP request.
|
529
|
+
#
|
530
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
531
|
+
#
|
532
|
+
def begin_create_or_update_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
533
|
+
begin_create_or_update_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
534
|
+
end
|
535
|
+
|
536
|
+
#
|
537
|
+
# Creates the notebook workspace for a Cosmos DB account.
|
538
|
+
#
|
539
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
540
|
+
# is case insensitive.
|
541
|
+
# @param account_name [String] Cosmos DB database account name.
|
542
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
543
|
+
# to the HTTP request.
|
544
|
+
#
|
545
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
546
|
+
#
|
547
|
+
def begin_create_or_update_async(resource_group_name, account_name, custom_headers:nil)
|
548
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
549
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
550
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
551
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
552
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
553
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
554
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
555
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
556
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
557
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
558
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
559
|
+
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?
|
560
|
+
notebook_workspace_name = 'default'
|
561
|
+
|
562
|
+
notebook_create_update_parameters = NotebookWorkspaceCreateUpdateParameters.new
|
563
|
+
unless
|
564
|
+
end
|
565
|
+
|
566
|
+
request_headers = {}
|
567
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
568
|
+
|
569
|
+
# Set Headers
|
570
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
571
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
572
|
+
|
573
|
+
# Serialize Request
|
574
|
+
request_mapper = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspaceCreateUpdateParameters.mapper()
|
575
|
+
request_content = @client.serialize(request_mapper, notebook_create_update_parameters)
|
576
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
577
|
+
|
578
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}'
|
579
|
+
|
580
|
+
request_url = @base_url || @client.base_url
|
581
|
+
|
582
|
+
options = {
|
583
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
584
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'notebookWorkspaceName' => notebook_workspace_name},
|
585
|
+
query_params: {'api-version' => @client.api_version},
|
586
|
+
body: request_content,
|
587
|
+
headers: request_headers.merge(custom_headers || {}),
|
588
|
+
base_url: request_url
|
589
|
+
}
|
590
|
+
promise = @client.make_request_async(:put, path_template, options)
|
591
|
+
|
592
|
+
promise = promise.then do |result|
|
593
|
+
http_response = result.response
|
594
|
+
status_code = http_response.status
|
595
|
+
response_content = http_response.body
|
596
|
+
unless status_code == 200
|
597
|
+
error_model = JSON.load(response_content)
|
598
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
599
|
+
end
|
600
|
+
|
601
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
602
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
603
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
604
|
+
# Deserialize Response
|
605
|
+
if status_code == 200
|
606
|
+
begin
|
607
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
608
|
+
result_mapper = Azure::Cosmosdb::Mgmt::V2019_12_12::Models::NotebookWorkspace.mapper()
|
609
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
610
|
+
rescue Exception => e
|
611
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
result
|
616
|
+
end
|
617
|
+
|
618
|
+
promise.execute
|
619
|
+
end
|
620
|
+
|
621
|
+
#
|
622
|
+
# Deletes the notebook workspace for a Cosmos DB account.
|
623
|
+
#
|
624
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
625
|
+
# is case insensitive.
|
626
|
+
# @param account_name [String] Cosmos DB database account name.
|
627
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
628
|
+
# will be added to the HTTP request.
|
629
|
+
#
|
630
|
+
#
|
631
|
+
def begin_delete(resource_group_name, account_name, custom_headers:nil)
|
632
|
+
response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
633
|
+
nil
|
634
|
+
end
|
635
|
+
|
636
|
+
#
|
637
|
+
# Deletes the notebook workspace for a Cosmos DB account.
|
638
|
+
#
|
639
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
640
|
+
# is case insensitive.
|
641
|
+
# @param account_name [String] Cosmos DB database account name.
|
642
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
643
|
+
# will be added to the HTTP request.
|
644
|
+
#
|
645
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
646
|
+
#
|
647
|
+
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
648
|
+
begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
649
|
+
end
|
650
|
+
|
651
|
+
#
|
652
|
+
# Deletes the notebook workspace for a Cosmos DB account.
|
653
|
+
#
|
654
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
655
|
+
# is case insensitive.
|
656
|
+
# @param account_name [String] Cosmos DB database account 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_async(resource_group_name, account_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, '@client.api_version is nil' if @client.api_version.nil?
|
670
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
671
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
672
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
673
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
674
|
+
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?
|
675
|
+
notebook_workspace_name = 'default'
|
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}/notebookWorkspaces/{notebookWorkspaceName}'
|
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,'notebookWorkspaceName' => notebook_workspace_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 MsRest::HttpOperationError.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
|
+
# Regenerates the auth token for the notebook workspace
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
723
|
+
# will be added to the HTTP request.
|
724
|
+
#
|
725
|
+
#
|
726
|
+
def begin_regenerate_auth_token(resource_group_name, account_name, custom_headers:nil)
|
727
|
+
response = begin_regenerate_auth_token_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
728
|
+
nil
|
729
|
+
end
|
730
|
+
|
731
|
+
#
|
732
|
+
# Regenerates the auth token for the notebook workspace
|
733
|
+
#
|
734
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
735
|
+
# is case insensitive.
|
736
|
+
# @param account_name [String] Cosmos DB database account name.
|
737
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
738
|
+
# will be added to the HTTP request.
|
739
|
+
#
|
740
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
741
|
+
#
|
742
|
+
def begin_regenerate_auth_token_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
743
|
+
begin_regenerate_auth_token_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
744
|
+
end
|
745
|
+
|
746
|
+
#
|
747
|
+
# Regenerates the auth token for the notebook workspace
|
748
|
+
#
|
749
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
750
|
+
# is case insensitive.
|
751
|
+
# @param account_name [String] Cosmos DB database account name.
|
752
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
753
|
+
# to the HTTP request.
|
754
|
+
#
|
755
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
756
|
+
#
|
757
|
+
def begin_regenerate_auth_token_async(resource_group_name, account_name, custom_headers:nil)
|
758
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
759
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
760
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
761
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
762
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
763
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
764
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
765
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
766
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
767
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
768
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
769
|
+
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?
|
770
|
+
notebook_workspace_name = 'default'
|
771
|
+
|
772
|
+
|
773
|
+
request_headers = {}
|
774
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
775
|
+
|
776
|
+
# Set Headers
|
777
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
778
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
779
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/regenerateAuthToken'
|
780
|
+
|
781
|
+
request_url = @base_url || @client.base_url
|
782
|
+
|
783
|
+
options = {
|
784
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
785
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'notebookWorkspaceName' => notebook_workspace_name},
|
786
|
+
query_params: {'api-version' => @client.api_version},
|
787
|
+
headers: request_headers.merge(custom_headers || {}),
|
788
|
+
base_url: request_url
|
789
|
+
}
|
790
|
+
promise = @client.make_request_async(:post, path_template, options)
|
791
|
+
|
792
|
+
promise = promise.then do |result|
|
793
|
+
http_response = result.response
|
794
|
+
status_code = http_response.status
|
795
|
+
response_content = http_response.body
|
796
|
+
unless status_code == 200 || status_code == 202
|
797
|
+
error_model = JSON.load(response_content)
|
798
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
799
|
+
end
|
800
|
+
|
801
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
802
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
803
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
804
|
+
|
805
|
+
result
|
806
|
+
end
|
807
|
+
|
808
|
+
promise.execute
|
809
|
+
end
|
810
|
+
|
811
|
+
#
|
812
|
+
# Starts the notebook workspace
|
813
|
+
#
|
814
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
815
|
+
# is case insensitive.
|
816
|
+
# @param account_name [String] Cosmos DB database account name.
|
817
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
818
|
+
# will be added to the HTTP request.
|
819
|
+
#
|
820
|
+
#
|
821
|
+
def begin_start(resource_group_name, account_name, custom_headers:nil)
|
822
|
+
response = begin_start_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
823
|
+
nil
|
824
|
+
end
|
825
|
+
|
826
|
+
#
|
827
|
+
# Starts the notebook workspace
|
828
|
+
#
|
829
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
830
|
+
# is case insensitive.
|
831
|
+
# @param account_name [String] Cosmos DB database account name.
|
832
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
833
|
+
# will be added to the HTTP request.
|
834
|
+
#
|
835
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
836
|
+
#
|
837
|
+
def begin_start_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
838
|
+
begin_start_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
839
|
+
end
|
840
|
+
|
841
|
+
#
|
842
|
+
# Starts the notebook workspace
|
843
|
+
#
|
844
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
845
|
+
# is case insensitive.
|
846
|
+
# @param account_name [String] Cosmos DB database account name.
|
847
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
848
|
+
# to the HTTP request.
|
849
|
+
#
|
850
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
851
|
+
#
|
852
|
+
def begin_start_async(resource_group_name, account_name, custom_headers:nil)
|
853
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
854
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
855
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
856
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
857
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
858
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
859
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
860
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
861
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
862
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '50'" if !account_name.nil? && account_name.length > 50
|
863
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
864
|
+
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?
|
865
|
+
notebook_workspace_name = 'default'
|
866
|
+
|
867
|
+
|
868
|
+
request_headers = {}
|
869
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
870
|
+
|
871
|
+
# Set Headers
|
872
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
873
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
874
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}/start'
|
875
|
+
|
876
|
+
request_url = @base_url || @client.base_url
|
877
|
+
|
878
|
+
options = {
|
879
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
880
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'notebookWorkspaceName' => notebook_workspace_name},
|
881
|
+
query_params: {'api-version' => @client.api_version},
|
882
|
+
headers: request_headers.merge(custom_headers || {}),
|
883
|
+
base_url: request_url
|
884
|
+
}
|
885
|
+
promise = @client.make_request_async(:post, path_template, options)
|
886
|
+
|
887
|
+
promise = promise.then do |result|
|
888
|
+
http_response = result.response
|
889
|
+
status_code = http_response.status
|
890
|
+
response_content = http_response.body
|
891
|
+
unless status_code == 200 || status_code == 202
|
892
|
+
error_model = JSON.load(response_content)
|
893
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
894
|
+
end
|
895
|
+
|
896
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
897
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
898
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
899
|
+
|
900
|
+
result
|
901
|
+
end
|
902
|
+
|
903
|
+
promise.execute
|
904
|
+
end
|
905
|
+
|
906
|
+
end
|
907
|
+
end
|