diff --git a/README.md b/README.md index 5c0a400d7cd3..ab4ffc7c446f 100644 --- a/README.md +++ b/README.md @@ -17,30 +17,30 @@ The client libraries are supported on Python 2.7 and 3.5.3 or later. ## Packages available Each service might have a number of libraries available from each of the following categories: -* [Client - July 2019 Preview](#Client-July-2019-Preview) -* [Client - Stable](#Client-Stable) +* [Client - November 2019 Releases](#Client-November-2019-Releases) +* [Client - Previous Versions](#Client-Previous-Versions) * [Management](#Management) -### Client: July 2019 Preview -New wave of packages that we are currently releasing in **Preview**. These libraries allow you to use and consume existing resources and interact with them, for example: upload a blob. These libraries share a number of core functionalities such as: retries, logging, transport protocols, authentication protocols, etc. that can be found in the [azure-core](./sdk/core/azure-core) library. You can learn more about these libraries by reading guidelines that they follow [here](https://azuresdkspecs.z5.web.core.windows.net/PythonSpec.html). +### Client: November 2019 Releases +New wave of packages that we are announcing as **GA** and several that are currently releasing in **preview**. These libraries allow you to use and consume existing resources and interact with them, for example: upload a blob. These libraries share a number of core functionalities such as: retries, logging, transport protocols, authentication protocols, etc. that can be found in the [azure-core](./sdk/core/azure-core) library. You can learn more about these libraries by reading guidelines that they follow [here](https://azure.github.io/azure-sdk/python_introduction.html). -The libraries released in July preview: - -- [azure-cosmos](./sdk/cosmos/azure-cosmos) -- [azure-eventhubs](./sdk/eventhub/azure-eventhubs) +The libraries released in the November 2019 GA release: - [azure-keyvault-keys](./sdk/keyvault/azure-keyvault-keys) - [azure-keyvault-secrets](./sdk/keyvault/azure-keyvault-secrets) - [azure-identity](./sdk/identity/azure-identity) - [azure-storage-blob](./sdk/storage/azure-storage-blob) -- [azure-storage-file](./sdk/storage/azure-storage-file-share) - [azure-storage-queue](./sdk/storage/azure-storage-queue) ->NOTE: If you need to ensure your code is ready for production use one of the stable libraries. +The libraries released in the November 2019 preview: +- [azure-cosmos](./sdk/cosmos/azure-cosmos) +- [azure-eventhubs](./sdk/eventhub/azure-eventhubs) +- [azure-storage-file-share](./sdk/storage/azure-storage-file-share) +> NOTE: If you need to ensure your code is ready for production use one of the stable, non-preview libraries. -### Client: Stable -Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide you with similar functionalities to the Preview ones as they allow you to use and consume existing resources and interact with them, for example: upload a blob. +### Client: Previous Versions +Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide you with similar functionalities to the Preview ones as they allow you to use and consume existing resources and interact with them, for example: upload a blob. They might not implement the [guidelines](https://azure.github.io/azure-sdk/python_introduction.html) or have the same feature set as the Novemeber releases. They do however offer wider coverage of services. ### Management Libraries which enable you to provision specific resources. They are responsible for directly mirroring and consuming Azure service's REST endpoints. The management libraries use the `azure-mgmt-` convention for their package names. diff --git a/samples/smoketest/key_vault_certificates.py b/common/smoketest/key_vault_certificates.py similarity index 85% rename from samples/smoketest/key_vault_certificates.py rename to common/smoketest/key_vault_certificates.py index f3772d599cef..4184ec9a9357 100644 --- a/samples/smoketest/key_vault_certificates.py +++ b/common/smoketest/key_vault_certificates.py @@ -22,13 +22,14 @@ def __init__(self): self.certificate_name = "cert-name-" + uuid.uuid1().hex def create_certificate(self): - self.certificate_client.begin_create_certificate(name=self.certificate_name, policy=CertificatePolicy.get_default()).wait() + print("creating certificate...") + self.certificate_client.create_certificate(name=self.certificate_name) print("\tdone") def get_certificate(self): print("Getting a certificate...") - certificate = self.certificate_client.get_certificate(name=self.certificate_name) - print(f"\tdone, certificate: {certificate.name}.") + certificate = self.certificate_client.get_certificate_with_policy(name=self.certificate_name) + print("\tdone, certificate: %s." % certificate.name) def delete_certificate(self): print("Deleting a certificate...") diff --git a/samples/smoketest/key_vault_certificates_async.py b/common/smoketest/key_vault_certificates_async.py similarity index 90% rename from samples/smoketest/key_vault_certificates_async.py rename to common/smoketest/key_vault_certificates_async.py index a969a98b231f..428ab678041c 100644 --- a/samples/smoketest/key_vault_certificates_async.py +++ b/common/smoketest/key_vault_certificates_async.py @@ -23,12 +23,13 @@ def __init__(self): self.certificate_name = "cert-name-" + uuid.uuid1().hex async def create_certificate(self): - await self.certificate_client.create_certificate(name=self.certificate_name, policy=CertificatePolicy.get_default()) + create_certificate_poller = await self.certificate_client.create_certificate(name=self.certificate_name) + await create_certificate_poller print("\tdone") async def get_certificate(self): print("Getting a certificate...") - certificate = await self.certificate_client.get_certificate(name=self.certificate_name) + certificate = await self.certificate_client.get_certificate_with_policy(name=self.certificate_name) print(f"\tdone, certificate: {certificate.name}.") async def delete_certificate(self): diff --git a/samples/smoketest/key_vault_keys.py b/common/smoketest/key_vault_keys.py similarity index 92% rename from samples/smoketest/key_vault_keys.py rename to common/smoketest/key_vault_keys.py index 43bee361050c..f8dfc69a106f 100644 --- a/samples/smoketest/key_vault_keys.py +++ b/common/smoketest/key_vault_keys.py @@ -23,17 +23,17 @@ def __init__(self): def create_rsa_key(self): print("Creating an RSA key...") - self.key_client.create_rsa_key(name=self.key_name, size=2048) + self.key_client.create_rsa_key(name=self.key_name, size=2048, hsm=False) print("\tdone") def get_key(self): print("Getting a key...") key = self.key_client.get_key(name=self.key_name) - print(f"\tdone, key: {key.name}.") + print("\tdone, key: %s." % key.name) def delete_key(self): print("Deleting a key...") - deleted_key = self.key_client.begin_delete_key(name=self.key_name).result() + deleted_key = self.key_client.delete_key(name=self.key_name) print("\tdone: " + deleted_key.name) def run(self): diff --git a/samples/smoketest/key_vault_keys_async.py b/common/smoketest/key_vault_keys_async.py similarity index 98% rename from samples/smoketest/key_vault_keys_async.py rename to common/smoketest/key_vault_keys_async.py index 8e910343484d..41562d4bccfb 100644 --- a/samples/smoketest/key_vault_keys_async.py +++ b/common/smoketest/key_vault_keys_async.py @@ -23,7 +23,7 @@ def __init__(self): async def create_rsa_key(self): print("Creating an RSA key...") - await self.key_client.create_rsa_key(name=self.key_name, size=2048) + await self.key_client.create_rsa_key(name=self.key_name, size=2048, hsm=False) print("\tdone") async def get_key(self): diff --git a/common/smoketest/program.py b/common/smoketest/program.py index 28511c3e316a..3d92de015960 100644 --- a/common/smoketest/program.py +++ b/common/smoketest/program.py @@ -2,8 +2,12 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +import logging +logging.basicConfig() + import smoke_test + try: import smoke_test_async except SyntaxError: diff --git a/common/smoketest/requirements.txt b/common/smoketest/requirements.txt index e4abc709776c..4da24d4727de 100644 --- a/common/smoketest/requirements.txt +++ b/common/smoketest/requirements.txt @@ -3,6 +3,8 @@ azure-core==1.0.0b3 azure-cosmos==4.0.0b2 azure-eventhub==5.0.0b3 azure-identity==1.0.0b3 +azure-keyvault-certificates==4.0.0b3 +azure-keyvault-keys==4.0.0b3 azure-keyvault-secrets==4.0.0b3 azure-storage-blob==12.0.0b3 azure-storage-common==2.1.0 \ No newline at end of file diff --git a/common/smoketest/smoke_test.py b/common/smoketest/smoke_test.py index bf586ea691bc..eef8321f9fbb 100644 --- a/common/smoketest/smoke_test.py +++ b/common/smoketest/smoke_test.py @@ -2,6 +2,8 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +from key_vault_certificates import KeyVaultCertificates +from key_vault_keys import KeyVaultKeys from key_vault_secrets import KeyVaultSecrets from storage_blob import StorageBlob from event_hubs import EventHub @@ -12,6 +14,8 @@ print(" AZURE TRACK 2 SDKs SMOKE TEST") print("==========================================") +KeyVaultCertificates().run() +KeyVaultKeys().run() KeyVaultSecrets().run() StorageBlob().run() EventHub().run() diff --git a/common/smoketest/smoke_test_async.py b/common/smoketest/smoke_test_async.py index b93893d8c1b7..1874bd971477 100644 --- a/common/smoketest/smoke_test_async.py +++ b/common/smoketest/smoke_test_async.py @@ -3,6 +3,8 @@ # Licensed under the MIT License. # ------------------------------------ import asyncio +from key_vault_certificates_async import KeyVaultCertificates +from key_vault_keys_async import KeyVaultKeys from key_vault_secrets_async import KeyVaultSecrets from event_hubs_async import EventHub @@ -13,6 +15,8 @@ async def main(): + await KeyVaultCertificates().run() + await KeyVaultKeys().run() await KeyVaultSecrets().run() await EventHub().run() diff --git a/eng/pipelines/smoke-test.yml b/eng/pipelines/smoke-test.yml index 2a444e222378..010ca3ebc0cd 100644 --- a/eng/pipelines/smoke-test.yml +++ b/eng/pipelines/smoke-test.yml @@ -5,8 +5,8 @@ jobs: - job: strategy: matrix: - Python_374: - PythonVersion: '3.7.4' + Python_37: + PythonVersion: '3.7' Python_27: PythonVersion: '2.7' InstallAsyncRequirements: false diff --git a/eng/tox/import_all.py b/eng/tox/import_all.py index 6841cd224c36..84ef6ad4b055 100644 --- a/eng/tox/import_all.py +++ b/eng/tox/import_all.py @@ -18,11 +18,7 @@ excluded_packages = [ "azure", "azure-mgmt", - "azure.core.tracing.opencensus", - "azure.eventhub.checkpointstoreblob.aio", - "azure.storage.fileshare", # Github issue 7879. - "azure.storage.filedatalake", # Github issue 7879. -] + ] def should_run_import_all(package_name): return not (package_name in excluded_packages or "nspkg" in package_name) @@ -42,17 +38,16 @@ def should_run_import_all(package_name): # get target package name from target package path pkg_dir = os.path.abspath(args.target_package) - pkg_name, _ = get_package_details(os.path.join(pkg_dir, 'setup.py')) - package_name = pkg_name.replace("-", ".") + package_name, namespace, _ = get_package_details(os.path.join(pkg_dir, 'setup.py')) if should_run_import_all(package_name): # import all modules from current package logging.info( - "Importing all modules from package [{0}] to verify dependency".format( - package_name + "Importing all modules from namespace [{0}] to verify dependency".format( + namespace ) ) - import_script_all = "from {0} import *".format(package_name) + import_script_all = "from {0} import *".format(namespace) exec(import_script_all) logging.info("Verified module dependency, no issues found") else: diff --git a/eng/tox/prep_sphinx_env.py b/eng/tox/prep_sphinx_env.py index 7d7866cb8e50..931e71e97579 100644 --- a/eng/tox/prep_sphinx_env.py +++ b/eng/tox/prep_sphinx_env.py @@ -44,12 +44,6 @@ root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..")) sphinx_conf = os.path.join(root_dir, "doc", "sphinx", "individual_build_conf.py") -# reference issue 8523 for eliminating this ridiculousness. -UNFRIENDLY_PACKAGE_TO_NAMESPACE = { - 'azure-storage-file-share': 'azure.storage.fileshare', - 'azure-core-tracing-opencensus': 'azure.core.tracing.ext.opencensus_span', - 'azure-eventhub-checkpointstoreblob-aio': 'azure.eventhub.extensions.checkpointstoreblobaio' -} def should_build_docs(package_name): return not ("nspkg" in package_name or package_name in ["azure", "azure-mgmt", "azure-keyvault", "azure-documentdb", "azure-mgmt-documentdb", "azure-servicemanagement-legacy"]) @@ -98,10 +92,10 @@ def copy_conf(doc_folder): shutil.copy(sphinx_conf, os.path.join(doc_folder, 'conf.py')) -def create_index(doc_folder, source_location, package_name): +def create_index(doc_folder, source_location, namespace): index_content = "" - package_rst = "{}.rst".format(package_name.replace("-", ".")) + package_rst = "{}.rst".format(namespace) content_destination = os.path.join(doc_folder, "index.rst") if not os.path.exists(doc_folder): @@ -117,7 +111,7 @@ def create_index(doc_folder, source_location, package_name): elif rst_readmes: index_content = create_index_file(rst_readmes[0], package_rst) else: - logging.warning("No readmes detected for this package {}".format(package_name)) + logging.warning("No readmes detected for this namespace {}".format(namespace)) index_content = RST_EXTENSION_FOR_INDEX.format(package_rst) # write index @@ -158,18 +152,15 @@ def write_version(site_folder, version): args = parser.parse_args() package_path = os.path.abspath(args.target_package) - package_name, package_version = get_package_details( + package_name, namespace, package_version = get_package_details( os.path.join(package_path, "setup.py") ) - if package_name in UNFRIENDLY_PACKAGE_TO_NAMESPACE.keys(): - package_name = UNFRIENDLY_PACKAGE_TO_NAMESPACE[package_name] - if should_build_docs(package_name): source_location = move_and_rename(unzip_sdist_to_directory(args.dist_dir)) doc_folder = os.path.join(source_location, "docgen") - create_index(doc_folder, source_location, package_name) + create_index(doc_folder, source_location, namespace) site_folder = os.path.join(args.dist_dir, "site") write_version(site_folder, package_version) diff --git a/eng/tox/run_sphinx_apidoc.py b/eng/tox/run_sphinx_apidoc.py index 45adce90a878..c23146846438 100644 --- a/eng/tox/run_sphinx_apidoc.py +++ b/eng/tox/run_sphinx_apidoc.py @@ -65,12 +65,12 @@ def sphinx_apidoc(working_directory): ) exit(1) -def mgmt_apidoc(working_directory, package_name): +def mgmt_apidoc(working_directory, namespace): command_array = [ sys.executable, generate_mgmt_script, "-p", - package_name.replace("-","."), + namespace, "-o", working_directory, "--verbose" @@ -117,11 +117,11 @@ def mgmt_apidoc(working_directory, package_name): package_dir = os.path.abspath(args.package_root) output_directory = os.path.join(target_dir, "unzipped/docgen") - pkg_name, pkg_version = get_package_details(os.path.join(package_dir, 'setup.py')) + pkg_name, namespace, pkg_version = get_package_details(os.path.join(package_dir, 'setup.py')) if should_build_docs(pkg_name): if is_mgmt_package(pkg_name): - mgmt_apidoc(output_directory, pkg_name) + mgmt_apidoc(output_directory, namespace) else: sphinx_apidoc(args.working_directory) else: diff --git a/eng/tox/run_sphinx_build.py b/eng/tox/run_sphinx_build.py index 51ac0f6e4330..369a32490e3e 100644 --- a/eng/tox/run_sphinx_build.py +++ b/eng/tox/run_sphinx_build.py @@ -107,7 +107,7 @@ def sphinx_build(target_dir, output_dir): target_dir = os.path.abspath(args.working_directory) package_dir = os.path.abspath(args.package_root) - package_name, pkg_version = get_package_details(os.path.join(package_dir, 'setup.py')) + package_name, _, pkg_version = get_package_details(os.path.join(package_dir, 'setup.py')) if should_build_docs(package_name): sphinx_build(target_dir, output_dir) diff --git a/eng/tox/tox_helper_tasks.py b/eng/tox/tox_helper_tasks.py index 51cba37f2fc8..99d75706e666 100644 --- a/eng/tox/tox_helper_tasks.py +++ b/eng/tox/tox_helper_tasks.py @@ -50,10 +50,15 @@ def setup(*args, **kwargs): os.chdir(current_dir) _, kwargs = global_vars["__setup_calls__"][0] - return kwargs["name"], kwargs["version"] + package_name = kwargs["name"] + # default namespace for the package + name_space = package_name.replace('-', '.') + if "packages" in kwargs.keys(): + packages = kwargs["packages"] + if packages: + name_space = packages[0] + logging.info("Namespaces found for package {0}: {1}".format(package_name, packages)) -def get_package_namespace(setup_filename): - # traverse until meeting an improperly formatted __init__ - pass + return package_name, name_space, kwargs["version"] diff --git a/sdk/appconfiguration/azure-appconfiguration/HISTORY.md b/sdk/appconfiguration/azure-appconfiguration/HISTORY.md index dcee42dec0cd..f1e3fdcd3ced 100644 --- a/sdk/appconfiguration/azure-appconfiguration/HISTORY.md +++ b/sdk/appconfiguration/azure-appconfiguration/HISTORY.md @@ -3,6 +3,12 @@ ------------------- +## 2019-12-xx Version 1.0.0b6 + +### Breaking changes + +- Combine set_read_only & clear_read_only to be set_read_only(True/False) #8453 + ## 2019-10-30 Version 1.0.0b5 ### Breaking changes diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py index 3f3e6067ae89..a09eb5041888 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py @@ -471,13 +471,15 @@ def list_revisions( @distributed_trace def set_read_only( - self, configuration_setting, **kwargs - ): # type: (ConfigurationSetting, dict) -> ConfigurationSetting + self, configuration_setting, read_only=True, **kwargs + ): # type: (ConfigurationSetting, Optional[bool], dict) -> ConfigurationSetting """Set a configuration setting read only :param configuration_setting: the ConfigurationSetting to be set read only :type configuration_setting: :class:`ConfigurationSetting` + :param read_only: set the read only setting if true, else clear the read only setting + :type read_only: bool :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: The ConfigurationSetting returned from the service :rtype: :class:`ConfigurationSetting` @@ -492,6 +494,7 @@ def set_read_only( ) read_only_config_setting = client.set_read_only(config_setting) + read_only_config_setting = client.set_read_only(config_setting, read_only=False) """ error_map = { 401: ClientAuthenticationError, @@ -499,52 +502,20 @@ def set_read_only( } try: - key_value = self._impl.put_lock( - key=configuration_setting.key, - label=configuration_setting.label, - error_map=error_map, - **kwargs - ) - return ConfigurationSetting._from_key_value(key_value) - except ErrorException as error: - raise HttpResponseError(message=error.message, response=error.response) - - @distributed_trace - def clear_read_only( - self, configuration_setting, **kwargs - ): # type: (ConfigurationSetting, dict) -> ConfigurationSetting - - """Clear read only flag for a configuration setting - - :param configuration_setting: the ConfigurationSetting to be read only clear - :type configuration_setting: :class:`ConfigurationSetting` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header - :return: The ConfigurationSetting returned from the service - :rtype: :class:`ConfigurationSetting` - :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceNotFoundError` - - Example - - .. code-block:: python - - config_setting = client.get_configuration_setting( - key="MyKey", label="MyLabel" - ) - - read_only_config_setting = client.clear_read_only(config_setting) - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError - } - - try: - key_value = self._impl.delete_lock( - key=configuration_setting.key, - label=configuration_setting.label, - error_map=error_map, - **kwargs - ) + if read_only: + key_value = self._impl.put_lock( + key=configuration_setting.key, + label=configuration_setting.label, + error_map=error_map, + **kwargs + ) + else: + key_value = self._impl.delete_lock( + key=configuration_setting.key, + label=configuration_setting.label, + error_map=error_map, + **kwargs + ) return ConfigurationSetting._from_key_value(key_value) except ErrorException as error: raise HttpResponseError(message=error.message, response=error.response) diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py index ddc530bbed41..2d06ae4d9d2e 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py @@ -487,13 +487,15 @@ def list_revisions( @distributed_trace async def set_read_only( - self, configuration_setting, **kwargs - ): # type: (ConfigurationSetting, dict) -> ConfigurationSetting + self, configuration_setting, read_only=True, **kwargs + ): # type: (ConfigurationSetting, Optional[bool], dict) -> ConfigurationSetting """Set a configuration setting read only :param configuration_setting: the ConfigurationSetting to be set read only :type configuration_setting: :class:`ConfigurationSetting` + :param read_only: set the read only setting if true, else clear the read only setting + :type read_only: bool :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: The ConfigurationSetting returned from the service :rtype: :class:`ConfigurationSetting` @@ -508,6 +510,7 @@ async def set_read_only( ) read_only_config_setting = await async_client.set_read_only(config_setting) + read_only_config_setting = await client.set_read_only(config_setting, read_only=False) """ error_map = { 401: ClientAuthenticationError, @@ -515,52 +518,20 @@ async def set_read_only( } try: - key_value = await self._impl.put_lock( - key=configuration_setting.key, - label=configuration_setting.label, - error_map=error_map, - **kwargs - ) - return ConfigurationSetting._from_key_value(key_value) - except ErrorException as error: - raise HttpResponseError(message=error.message, response=error.response) - - @distributed_trace - async def clear_read_only( - self, configuration_setting, **kwargs - ): # type: (ConfigurationSetting, dict) -> ConfigurationSetting - - """Clear read only flag for a configuration setting - - :param configuration_setting: the ConfigurationSetting to be read only clear - :type configuration_setting: :class:`ConfigurationSetting` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header - :return: The ConfigurationSetting returned from the service - :rtype: :class:`ConfigurationSetting` - :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceNotFoundError` - - Example - - .. code-block:: python - - config_setting = await async_client.get_configuration_setting( - key="MyKey", label="MyLabel" - ) - - read_only_config_setting = await async_client.clear_read_only(config_setting) - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError - } - - try: - key_value = await self._impl.delete_lock( - key=configuration_setting.key, - label=configuration_setting.label, - error_map=error_map, - **kwargs - ) + if read_only: + key_value = await self._impl.put_lock( + key=configuration_setting.key, + label=configuration_setting.label, + error_map=error_map, + **kwargs + ) + else: + key_value = await self._impl.delete_lock( + key=configuration_setting.key, + label=configuration_setting.label, + error_map=error_map, + **kwargs + ) return ConfigurationSetting._from_key_value(key_value) except ErrorException as error: raise HttpResponseError(message=error.message, response=error.response) diff --git a/sdk/appconfiguration/azure-appconfiguration/samples/README.md b/sdk/appconfiguration/azure-appconfiguration/samples/README.md index 1bf54e61b328..86d549dc16e4 100644 --- a/sdk/appconfiguration/azure-appconfiguration/samples/README.md +++ b/sdk/appconfiguration/azure-appconfiguration/samples/README.md @@ -34,7 +34,7 @@ pip install azure-appconfiguration | hello_world_sample.py / hello_world_async_sample.py | demos set/get/delete operations | | hello_world_advanced_sample.py / hello_world_advanced_async_sample.py | demos add/set with label/list operations | | conditional_operation_sample.py / conditional_operation_async_sample.py | demos conditional set/get/delete operations | -| read_only_sample.py / read_only_async_sample.py | demos set_read_only/clear_read_only operations | +| read_only_sample.py / read_only_async_sample.py | demos set_read_only operations | | list_revision_sample.py / list_revision_async_sample.py | demos list revision operations | diff --git a/sdk/appconfiguration/azure-appconfiguration/samples/read_only_async_sample.py b/sdk/appconfiguration/azure-appconfiguration/samples/read_only_async_sample.py index 490a0977001c..58b7d4e8fcaa 100644 --- a/sdk/appconfiguration/azure-appconfiguration/samples/read_only_async_sample.py +++ b/sdk/appconfiguration/azure-appconfiguration/samples/read_only_async_sample.py @@ -9,7 +9,7 @@ """ FILE: read_only_async_sample.py DESCRIPTION: - This sample demos set_read_only/clear_read_only operations for app configuration + This sample demos set_read_only operations for app configuration USAGE: python read_only_async_sample.py """ @@ -44,8 +44,8 @@ async def main(): print("") print("Clear read only configuration setting:") - read_write_config_setting = await client.clear_read_only( - returned_config_setting + read_write_config_setting = await client.set_read_only( + returned_config_setting, False ) print_configuration_setting(read_write_config_setting) print("") diff --git a/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py b/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py index bb851b182eca..7b73192f5508 100644 --- a/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py +++ b/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py @@ -9,7 +9,7 @@ """ FILE: read_only_sample.py DESCRIPTION: - This sample demos set_read_only/clear_read_only operations for app configuration + This sample demos set_read_only operations for app configuration USAGE: python read_only_sample.py """ @@ -42,8 +42,8 @@ def main(): print("") print("Clear read only configuration setting:") - read_write_config_setting = client.clear_read_only( - returned_config_setting + read_write_config_setting = client.set_read_only( + returned_config_setting, False ) print_configuration_setting(read_write_config_setting) print("") diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/async_proxy.py b/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/async_proxy.py index e42f8468c153..f8f2ad5611f4 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/async_proxy.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/async_proxy.py @@ -76,12 +76,7 @@ def set_configuration_setting(self, configuration_setting, **kwargs): self.obj.set_configuration_setting(configuration_setting, **kwargs) ) - def set_read_only(self, configuration_setting, **kwargs): + def set_read_only(self, configuration_setting, read_only=True, **kwargs): return get_event_loop().run_until_complete( - self.obj.set_read_only(configuration_setting, **kwargs) - ) - - def clear_read_only(self, configuration_setting, **kwargs): - return get_event_loop().run_until_complete( - self.obj.clear_read_only(configuration_setting, **kwargs) + self.obj.set_read_only(configuration_setting, read_only, **kwargs) ) diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/test_azure_configuration_client_async.py b/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/test_azure_configuration_client_async.py index 9b418c679e24..29e03c1f0f0a 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/test_azure_configuration_client_async.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/app_config_asynctests/test_azure_configuration_client_async.py @@ -348,7 +348,7 @@ def test_read_only(self): kv = self.test_config_setting_no_label read_only_kv = self.get_config_client().set_read_only(kv) assert read_only_kv.read_only - readable_kv = self.get_config_client().clear_read_only(read_only_kv) + readable_kv = self.get_config_client().set_read_only(read_only_kv, False) assert not readable_kv.read_only def test_delete_read_only(self): @@ -356,7 +356,7 @@ def test_delete_read_only(self): read_only_kv = self.get_config_client().set_read_only(to_delete_kv) with pytest.raises(ResourceReadOnlyError): self.get_config_client().delete_configuration_setting(to_delete_kv.key) - self.get_config_client().clear_read_only(read_only_kv) + self.get_config_client().set_read_only(read_only_kv, False) self.get_config_client().delete_configuration_setting(to_delete_kv.key) self.to_delete.remove(to_delete_kv) with pytest.raises(ResourceNotFoundError): @@ -369,7 +369,7 @@ def test_set_read_only(self): read_only_kv = self.get_config_client().set_read_only(to_set_kv) with pytest.raises(ResourceReadOnlyError): self.get_config_client().set_configuration_setting(read_only_kv) - readable_kv = self.get_config_client().clear_read_only(read_only_kv) + readable_kv = self.get_config_client().set_read_only(read_only_kv, False) readable_kv.value = to_set_kv.value readable_kv.tags = to_set_kv.tags set_kv = self.get_config_client().set_configuration_setting(readable_kv) diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py index bf7c62b331e3..a541172f2038 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py @@ -347,7 +347,7 @@ def test_read_only(self): kv = self.test_config_setting_no_label read_only_kv = self.get_config_client().set_read_only(kv) assert read_only_kv.read_only - readable_kv = self.get_config_client().clear_read_only(read_only_kv) + readable_kv = self.get_config_client().set_read_only(read_only_kv, False) assert not readable_kv.read_only def test_delete_read_only(self): @@ -355,7 +355,7 @@ def test_delete_read_only(self): read_only_kv = self.get_config_client().set_read_only(to_delete_kv) with pytest.raises(ResourceReadOnlyError): self.get_config_client().delete_configuration_setting(to_delete_kv.key) - self.get_config_client().clear_read_only(read_only_kv) + self.get_config_client().set_read_only(read_only_kv, False) self.get_config_client().delete_configuration_setting(to_delete_kv.key) self.to_delete.remove(to_delete_kv) with pytest.raises(ResourceNotFoundError): @@ -368,7 +368,7 @@ def test_set_read_only(self): read_only_kv = self.get_config_client().set_read_only(to_set_kv) with pytest.raises(ResourceReadOnlyError): self.get_config_client().set_configuration_setting(read_only_kv) - readable_kv = self.get_config_client().clear_read_only(read_only_kv) + readable_kv = self.get_config_client().set_read_only(read_only_kv, False) readable_kv.value = to_set_kv.value readable_kv.tags = to_set_kv.tags set_kv = self.get_config_client().set_configuration_setting(readable_kv) diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_universal.py b/sdk/core/azure-core/azure/core/pipeline/policies/_universal.py index 89c84dd96a12..e44b2f339b73 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_universal.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_universal.py @@ -205,8 +205,9 @@ def on_request(self, request): """ http_request = request.http_request options = request.context.options - if options.pop("logging_enable", self.enable_http_logger): - request.context["logging_enable"] = True + logging_enable = options.pop("logging_enable", self.enable_http_logger) + request.context["logging_enable"] = logging_enable + if logging_enable: if not _LOGGER.isEnabledFor(logging.DEBUG): return @@ -237,35 +238,37 @@ def on_response(self, request, response): :param response: The PipelineResponse object. :type response: ~azure.core.pipeline.PipelineResponse """ - if response.context.pop("logging_enable", self.enable_http_logger): - if not _LOGGER.isEnabledFor(logging.DEBUG): - return + http_response = response.http_response + try: + logging_enable = response.context["logging_enable"] + if logging_enable: + if not _LOGGER.isEnabledFor(logging.DEBUG): + return - try: - _LOGGER.debug("Response status: %r", response.http_response.status_code) + _LOGGER.debug("Response status: %r", http_response.status_code) _LOGGER.debug("Response headers:") - for res_header, value in response.http_response.headers.items(): + for res_header, value in http_response.headers.items(): _LOGGER.debug(" %r: %r", res_header, value) # We don't want to log binary data if the response is a file. _LOGGER.debug("Response content:") pattern = re.compile(r'attachment; ?filename=["\w.]+', re.IGNORECASE) - header = response.http_response.headers.get('content-disposition') + header = http_response.headers.get('content-disposition') if header and pattern.match(header): filename = header.partition('=')[2] _LOGGER.debug("File attachments: %s", filename) - elif response.http_response.headers.get("content-type", "").endswith("octet-stream"): + elif http_response.headers.get("content-type", "").endswith("octet-stream"): _LOGGER.debug("Body contains binary data.") - elif response.http_response.headers.get("content-type", "").startswith("image"): + elif http_response.headers.get("content-type", "").startswith("image"): _LOGGER.debug("Body contains image data.") else: if response.context.options.get('stream', False): _LOGGER.debug("Body is streamable") else: _LOGGER.debug(response.http_response.text()) - except Exception as err: # pylint: disable=broad-except - _LOGGER.debug("Failed to log response: %s", repr(err)) + except Exception as err: # pylint: disable=broad-except + _LOGGER.debug("Failed to log response: %s", repr(err)) class HttpLoggingPolicy(SansIOHTTPPolicy): diff --git a/sdk/core/azure-core/tests/test_universal_pipeline.py b/sdk/core/azure-core/tests/test_universal_pipeline.py index e0a9079709fc..32f73c2d5daf 100644 --- a/sdk/core/azure-core/tests/test_universal_pipeline.py +++ b/sdk/core/azure-core/tests/test_universal_pipeline.py @@ -116,6 +116,19 @@ def test_no_log(mock_http_logger): mock_http_logger.debug.assert_not_called() mock_http_logger.reset_mock() + # Let's make this request a failure, retried twice + request.context.options['logging_enable'] = True + http_logger.on_request(request) + http_logger.on_response(request, response) + + first_count = mock_http_logger.debug.call_count + assert first_count >= 1 + + http_logger.on_request(request) + http_logger.on_response(request, response) + + second_count = mock_http_logger.debug.call_count + assert second_count == first_count * 2 def test_raw_deserializer(): raw_deserializer = ContentDecodePolicy() diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst b/sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst index acba458173bd..9860fc44cb39 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst +++ b/sdk/cosmos/azure-mgmt-cosmosdb/HISTORY.rst @@ -3,6 +3,14 @@ Release History =============== +0.9.0 (2019-11-09) +++++++++++++++++++ + +**Features** + +- Added operation group PrivateLinkResourcesOperations +- Added operation group PrivateEndpointConnectionsOperations + 0.8.0 (2019-08-15) ++++++++++++++++++ diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db.py index eea6f9184e6d..cca6298ce907 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db.py @@ -26,6 +26,8 @@ from .operations import CollectionPartitionOperations from .operations import PartitionKeyRangeIdOperations from .operations import PartitionKeyRangeIdRegionOperations +from .operations import PrivateLinkResourcesOperations +from .operations import PrivateEndpointConnectionsOperations from . import models @@ -61,6 +63,10 @@ class CosmosDB(SDKClient): :vartype partition_key_range_id: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdOperations :ivar partition_key_range_id_region: PartitionKeyRangeIdRegion operations :vartype partition_key_range_id_region: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations + :ivar private_link_resources: PrivateLinkResources operations + :vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations + :ivar private_endpoint_connections: PrivateEndpointConnections operations + :vartype private_endpoint_connections: azure.mgmt.cosmosdb.operations.PrivateEndpointConnectionsOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -77,7 +83,6 @@ def __init__( super(CosmosDB, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2015-04-08' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -107,3 +112,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations( self._client, self.config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py index a7f22fd3cc55..6e57d47bb28e 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py @@ -10,6 +10,8 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import ARMProxyResource + from ._models_py3 import AzureEntityResource from ._models_py3 import Capability from ._models_py3 import CassandraKeyspace from ._models_py3 import CassandraKeyspaceCreateUpdateParameters @@ -32,6 +34,7 @@ from ._models_py3 import DatabaseAccountListReadOnlyKeysResult from ._models_py3 import DatabaseAccountPatchParameters from ._models_py3 import DatabaseAccountRegenerateKeyParameters + from ._models_py3 import DbResource from ._models_py3 import ErrorResponse, ErrorResponseException from ._models_py3 import ExcludedPath from ._models_py3 import ExtendedResourceProperties @@ -67,6 +70,11 @@ from ._models_py3 import PartitionUsage from ._models_py3 import PercentileMetric from ._models_py3 import PercentileMetricValue + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointProperty + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkServiceConnectionStateProperty + from ._models_py3 import ProxyResource from ._models_py3 import RegionForOnlineOffline from ._models_py3 import Resource from ._models_py3 import SqlContainer @@ -81,11 +89,14 @@ from ._models_py3 import Throughput from ._models_py3 import ThroughputResource from ._models_py3 import ThroughputUpdateParameters + from ._models_py3 import TrackedResource from ._models_py3 import UniqueKey from ._models_py3 import UniqueKeyPolicy from ._models_py3 import Usage from ._models_py3 import VirtualNetworkRule except (SyntaxError, ImportError): + from ._models import ARMProxyResource + from ._models import AzureEntityResource from ._models import Capability from ._models import CassandraKeyspace from ._models import CassandraKeyspaceCreateUpdateParameters @@ -108,6 +119,7 @@ from ._models import DatabaseAccountListReadOnlyKeysResult from ._models import DatabaseAccountPatchParameters from ._models import DatabaseAccountRegenerateKeyParameters + from ._models import DbResource from ._models import ErrorResponse, ErrorResponseException from ._models import ExcludedPath from ._models import ExtendedResourceProperties @@ -143,6 +155,11 @@ from ._models import PartitionUsage from ._models import PercentileMetric from ._models import PercentileMetricValue + from ._models import PrivateEndpointConnection + from ._models import PrivateEndpointProperty + from ._models import PrivateLinkResource + from ._models import PrivateLinkServiceConnectionStateProperty + from ._models import ProxyResource from ._models import RegionForOnlineOffline from ._models import Resource from ._models import SqlContainer @@ -157,6 +174,7 @@ from ._models import Throughput from ._models import ThroughputResource from ._models import ThroughputUpdateParameters + from ._models import TrackedResource from ._models import UniqueKey from ._models import UniqueKeyPolicy from ._models import Usage @@ -174,6 +192,8 @@ from ._paged_models import PartitionMetricPaged from ._paged_models import PartitionUsagePaged from ._paged_models import PercentileMetricPaged +from ._paged_models import PrivateEndpointConnectionPaged +from ._paged_models import PrivateLinkResourcePaged from ._paged_models import SqlContainerPaged from ._paged_models import SqlDatabasePaged from ._paged_models import TablePaged @@ -194,6 +214,8 @@ ) __all__ = [ + 'ARMProxyResource', + 'AzureEntityResource', 'Capability', 'CassandraKeyspace', 'CassandraKeyspaceCreateUpdateParameters', @@ -216,6 +238,7 @@ 'DatabaseAccountListReadOnlyKeysResult', 'DatabaseAccountPatchParameters', 'DatabaseAccountRegenerateKeyParameters', + 'DbResource', 'ErrorResponse', 'ErrorResponseException', 'ExcludedPath', 'ExtendedResourceProperties', @@ -251,6 +274,11 @@ 'PartitionUsage', 'PercentileMetric', 'PercentileMetricValue', + 'PrivateEndpointConnection', + 'PrivateEndpointProperty', + 'PrivateLinkResource', + 'PrivateLinkServiceConnectionStateProperty', + 'ProxyResource', 'RegionForOnlineOffline', 'Resource', 'SqlContainer', @@ -265,6 +293,7 @@ 'Throughput', 'ThroughputResource', 'ThroughputUpdateParameters', + 'TrackedResource', 'UniqueKey', 'UniqueKeyPolicy', 'Usage', @@ -286,6 +315,8 @@ 'PercentileMetricPaged', 'PartitionMetricPaged', 'PartitionUsagePaged', + 'PrivateLinkResourcePaged', + 'PrivateEndpointConnectionPaged', 'DatabaseAccountKind', 'DatabaseAccountOfferType', 'DefaultConsistencyLevel', diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_enums.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_enums.py index ae8c501d4108..ba1cf399ae1f 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_enums.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_enums.py @@ -98,6 +98,6 @@ class PrimaryAggregationType(str, Enum): none = "None" average = "Average" total = "Total" - minimimum = "Minimimum" + minimum = "Minimum" maximum = "Maximum" last = "Last" diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py index 62d5d9dea87f..5eae3ef1dbb7 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py @@ -13,6 +13,113 @@ from msrest.exceptions import HttpOperationError +class ARMProxyResource(Model): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The unique resource identifier of the database account. + :vartype id: str + :ivar name: The name of the database account. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ARMProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class Capability(Model): """Cosmos DB capability object. @@ -31,7 +138,7 @@ def __init__(self, **kwargs): self.name = kwargs.get('name', None) -class Resource(Model): +class DbResource(Model): """The core properties of ARM resources. Variables are only populated by the server, and will be ignored when @@ -65,7 +172,7 @@ class Resource(Model): } def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) + super(DbResource, self).__init__(**kwargs) self.id = None self.name = None self.type = None @@ -73,7 +180,7 @@ def __init__(self, **kwargs): self.tags = kwargs.get('tags', None) -class CassandraKeyspace(Resource): +class CassandraKeyspace(DbResource): """An Azure Cosmos DB Cassandra keyspace. Variables are only populated by the server, and will be ignored when @@ -210,7 +317,7 @@ def __init__(self, **kwargs): self.cluster_keys = kwargs.get('cluster_keys', None) -class CassandraTable(Resource): +class CassandraTable(DbResource): """An Azure Cosmos DB Cassandra table. Variables are only populated by the server, and will be ignored when @@ -461,7 +568,7 @@ def __init__(self, **kwargs): self.kind = kwargs.get('kind', "Hash") -class DatabaseAccount(Resource): +class DatabaseAccount(DbResource): """An Azure Cosmos DB database account. Variables are only populated by the server, and will be ignored when @@ -618,7 +725,7 @@ def __init__(self, **kwargs): self.description = None -class DatabaseAccountCreateUpdateParameters(Resource): +class DatabaseAccountCreateUpdateParameters(DbResource): """Parameters to create and update Cosmos DB database accounts. Variables are only populated by the server, and will be ignored when @@ -991,7 +1098,7 @@ def __init__(self, **kwargs): self.failover_priority = kwargs.get('failover_priority', None) -class GremlinDatabase(Resource): +class GremlinDatabase(DbResource): """An Azure Cosmos DB Gremlin database. Variables are only populated by the server, and will be ignored when @@ -1100,7 +1207,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) -class GremlinGraph(Resource): +class GremlinGraph(DbResource): """An Azure Cosmos DB Gremlin graph. Variables are only populated by the server, and will be ignored when @@ -1480,7 +1587,7 @@ class MetricDefinition(Model): :vartype metric_availabilities: list[~azure.mgmt.cosmosdb.models.MetricAvailability] :ivar primary_aggregation_type: The primary aggregation type of the - metric. Possible values include: 'None', 'Average', 'Total', 'Minimimum', + metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' :vartype primary_aggregation_type: str or ~azure.mgmt.cosmosdb.models.PrimaryAggregationType @@ -1594,7 +1701,7 @@ def __init__(self, **kwargs): self.total = None -class MongoDBCollection(Resource): +class MongoDBCollection(DbResource): """An Azure Cosmos DB MongoDB collection. Variables are only populated by the server, and will be ignored when @@ -1708,7 +1815,7 @@ def __init__(self, **kwargs): self.indexes = kwargs.get('indexes', None) -class MongoDBDatabase(Resource): +class MongoDBDatabase(DbResource): """An Azure Cosmos DB MongoDB database. Variables are only populated by the server, and will be ignored when @@ -2189,6 +2296,170 @@ def __init__(self, **kwargs): self.p99 = None +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + + +class PrivateEndpointConnection(ProxyResource): + """A private endpoint connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: + ~azure.mgmt.cosmosdb.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection State of the + Private Endpoint Connection. + :type private_link_service_connection_state: + ~azure.mgmt.cosmosdb.models.PrivateLinkServiceConnectionStateProperty + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + + +class PrivateEndpointProperty(Model): + """Private endpoint which the connection belongs to. + + :param id: Resource id of the private endpoint. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateEndpointProperty, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class PrivateLinkResource(ARMProxyResource): + """A private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The unique resource identifier of the database account. + :vartype id: str + :ivar name: The name of the database account. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + + +class PrivateLinkServiceConnectionStateProperty(Model): + """Connection State of the Private Endpoint Connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param status: The private link service connection status. + :type status: str + :param description: The private link service connection description. + :type description: str + :ivar actions_required: Any action that is required beyond basic workflow + (approve/ reject/ disconnect) + :vartype actions_required: str + """ + + _validation = { + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.description = kwargs.get('description', None) + self.actions_required = None + + class RegionForOnlineOffline(Model): """Cosmos DB region to online or offline. @@ -2212,7 +2483,7 @@ def __init__(self, **kwargs): self.region = kwargs.get('region', None) -class SqlContainer(Resource): +class SqlContainer(DbResource): """An Azure Cosmos DB container. Variables are only populated by the server, and will be ignored when @@ -2374,7 +2645,7 @@ def __init__(self, **kwargs): self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) -class SqlDatabase(Resource): +class SqlDatabase(DbResource): """An Azure Cosmos DB SQL database. Variables are only populated by the server, and will be ignored when @@ -2492,7 +2763,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) -class Table(Resource): +class Table(DbResource): """An Azure Cosmos DB Table. Variables are only populated by the server, and will be ignored when @@ -2586,7 +2857,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) -class Throughput(Resource): +class Throughput(DbResource): """An Azure Cosmos DB resource throughput. Variables are only populated by the server, and will be ignored when @@ -2675,6 +2946,49 @@ def __init__(self, **kwargs): self.resource = kwargs.get('resource', None) +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + class UniqueKey(Model): """The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service. diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py index a42d3f576f56..23cc42b2d90a 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py @@ -13,6 +13,113 @@ from msrest.exceptions import HttpOperationError +class ARMProxyResource(Model): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The unique resource identifier of the database account. + :vartype id: str + :ivar name: The name of the database account. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ARMProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class Capability(Model): """Cosmos DB capability object. @@ -31,7 +138,7 @@ def __init__(self, *, name: str=None, **kwargs) -> None: self.name = name -class Resource(Model): +class DbResource(Model): """The core properties of ARM resources. Variables are only populated by the server, and will be ignored when @@ -65,7 +172,7 @@ class Resource(Model): } def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) + super(DbResource, self).__init__(**kwargs) self.id = None self.name = None self.type = None @@ -73,7 +180,7 @@ def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: self.tags = tags -class CassandraKeyspace(Resource): +class CassandraKeyspace(DbResource): """An Azure Cosmos DB Cassandra keyspace. Variables are only populated by the server, and will be ignored when @@ -210,7 +317,7 @@ def __init__(self, *, columns=None, partition_keys=None, cluster_keys=None, **kw self.cluster_keys = cluster_keys -class CassandraTable(Resource): +class CassandraTable(DbResource): """An Azure Cosmos DB Cassandra table. Variables are only populated by the server, and will be ignored when @@ -461,7 +568,7 @@ def __init__(self, *, paths=None, kind="Hash", **kwargs) -> None: self.kind = kind -class DatabaseAccount(Resource): +class DatabaseAccount(DbResource): """An Azure Cosmos DB database account. Variables are only populated by the server, and will be ignored when @@ -618,7 +725,7 @@ def __init__(self, **kwargs) -> None: self.description = None -class DatabaseAccountCreateUpdateParameters(Resource): +class DatabaseAccountCreateUpdateParameters(DbResource): """Parameters to create and update Cosmos DB database accounts. Variables are only populated by the server, and will be ignored when @@ -991,7 +1098,7 @@ def __init__(self, *, location_name: str=None, failover_priority: int=None, **kw self.failover_priority = failover_priority -class GremlinDatabase(Resource): +class GremlinDatabase(DbResource): """An Azure Cosmos DB Gremlin database. Variables are only populated by the server, and will be ignored when @@ -1100,7 +1207,7 @@ def __init__(self, *, id: str, **kwargs) -> None: self.id = id -class GremlinGraph(Resource): +class GremlinGraph(DbResource): """An Azure Cosmos DB Gremlin graph. Variables are only populated by the server, and will be ignored when @@ -1480,7 +1587,7 @@ class MetricDefinition(Model): :vartype metric_availabilities: list[~azure.mgmt.cosmosdb.models.MetricAvailability] :ivar primary_aggregation_type: The primary aggregation type of the - metric. Possible values include: 'None', 'Average', 'Total', 'Minimimum', + metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' :vartype primary_aggregation_type: str or ~azure.mgmt.cosmosdb.models.PrimaryAggregationType @@ -1594,7 +1701,7 @@ def __init__(self, **kwargs) -> None: self.total = None -class MongoDBCollection(Resource): +class MongoDBCollection(DbResource): """An Azure Cosmos DB MongoDB collection. Variables are only populated by the server, and will be ignored when @@ -1708,7 +1815,7 @@ def __init__(self, *, id: str, shard_key=None, indexes=None, **kwargs) -> None: self.indexes = indexes -class MongoDBDatabase(Resource): +class MongoDBDatabase(DbResource): """An Azure Cosmos DB MongoDB database. Variables are only populated by the server, and will be ignored when @@ -2189,6 +2296,170 @@ def __init__(self, **kwargs) -> None: self.p99 = None +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + + +class PrivateEndpointConnection(ProxyResource): + """A private endpoint connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: + ~azure.mgmt.cosmosdb.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection State of the + Private Endpoint Connection. + :type private_link_service_connection_state: + ~azure.mgmt.cosmosdb.models.PrivateLinkServiceConnectionStateProperty + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'}, + } + + def __init__(self, *, private_endpoint=None, private_link_service_connection_state=None, **kwargs) -> None: + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + + +class PrivateEndpointProperty(Model): + """Private endpoint which the connection belongs to. + + :param id: Resource id of the private endpoint. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(PrivateEndpointProperty, self).__init__(**kwargs) + self.id = id + + +class PrivateLinkResource(ARMProxyResource): + """A private link resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The unique resource identifier of the database account. + :vartype id: str + :ivar name: The name of the database account. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + } + + def __init__(self, **kwargs) -> None: + super(PrivateLinkResource, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + + +class PrivateLinkServiceConnectionStateProperty(Model): + """Connection State of the Private Endpoint Connection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param status: The private link service connection status. + :type status: str + :param description: The private link service connection description. + :type description: str + :ivar actions_required: Any action that is required beyond basic workflow + (approve/ reject/ disconnect) + :vartype actions_required: str + """ + + _validation = { + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__(self, *, status: str=None, description: str=None, **kwargs) -> None: + super(PrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = None + + class RegionForOnlineOffline(Model): """Cosmos DB region to online or offline. @@ -2212,7 +2483,7 @@ def __init__(self, *, region: str, **kwargs) -> None: self.region = region -class SqlContainer(Resource): +class SqlContainer(DbResource): """An Azure Cosmos DB container. Variables are only populated by the server, and will be ignored when @@ -2374,7 +2645,7 @@ def __init__(self, *, id: str, indexing_policy=None, partition_key=None, default self.conflict_resolution_policy = conflict_resolution_policy -class SqlDatabase(Resource): +class SqlDatabase(DbResource): """An Azure Cosmos DB SQL database. Variables are only populated by the server, and will be ignored when @@ -2492,7 +2763,7 @@ def __init__(self, *, id: str, **kwargs) -> None: self.id = id -class Table(Resource): +class Table(DbResource): """An Azure Cosmos DB Table. Variables are only populated by the server, and will be ignored when @@ -2586,7 +2857,7 @@ def __init__(self, *, id: str, **kwargs) -> None: self.id = id -class Throughput(Resource): +class Throughput(DbResource): """An Azure Cosmos DB resource throughput. Variables are only populated by the server, and will be ignored when @@ -2675,6 +2946,49 @@ def __init__(self, *, resource, **kwargs) -> None: self.resource = resource +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + class UniqueKey(Model): """The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service. diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_paged_models.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_paged_models.py index 4f822e53855b..58c6075d89ad 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_paged_models.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_paged_models.py @@ -233,3 +233,29 @@ class PartitionUsagePaged(Paged): def __init__(self, *args, **kwargs): super(PartitionUsagePaged, self).__init__(*args, **kwargs) +class PrivateLinkResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`PrivateLinkResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PrivateLinkResource]'} + } + + def __init__(self, *args, **kwargs): + + super(PrivateLinkResourcePaged, self).__init__(*args, **kwargs) +class PrivateEndpointConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PrivateEndpointConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py index 5b015813966f..09107d96e571 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py @@ -22,6 +22,8 @@ from ._collection_partition_operations import CollectionPartitionOperations from ._partition_key_range_id_operations import PartitionKeyRangeIdOperations from ._partition_key_range_id_region_operations import PartitionKeyRangeIdRegionOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations __all__ = [ 'DatabaseAccountsOperations', @@ -37,4 +39,6 @@ 'CollectionPartitionOperations', 'PartitionKeyRangeIdOperations', 'PartitionKeyRangeIdRegionOperations', + 'PrivateLinkResourcesOperations', + 'PrivateEndpointConnectionsOperations', ] diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py new file mode 100644 index 000000000000..8db4c846d2ed --- /dev/null +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py @@ -0,0 +1,380 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PrivateEndpointConnectionsOperations(object): + """PrivateEndpointConnectionsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-08-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-08-01-preview" + + self.config = config + + def list_by_database_account( + self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): + """List all private endpoint connections on a Cosmos DB account. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.mgmt.cosmosdb.models.PrivateEndpointConnectionPaged[~azure.mgmt.cosmosdb.models.PrivateEndpointConnection] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_database_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PrivateEndpointConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_database_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections'} + + def get( + self, resource_group_name, account_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets a private endpoint connection. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection. + :type private_endpoint_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateEndpointConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.cosmosdb.models.PrivateEndpointConnection or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + + def _create_or_update_initial( + self, resource_group_name, account_name, private_endpoint_connection_name, private_endpoint=None, private_link_service_connection_state=None, custom_headers=None, raw=False, **operation_config): + parameters = models.PrivateEndpointConnection(private_endpoint=private_endpoint, private_link_service_connection_state=private_link_service_connection_state) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PrivateEndpointConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, account_name, private_endpoint_connection_name, private_endpoint=None, private_link_service_connection_state=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Approve or reject a private endpoint connection with a given name. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection. + :type private_endpoint_connection_name: str + :param private_endpoint: Private endpoint which the connection belongs + to. + :type private_endpoint: + ~azure.mgmt.cosmosdb.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection State of the + Private Endpoint Connection. + :type private_link_service_connection_state: + ~azure.mgmt.cosmosdb.models.PrivateLinkServiceConnectionStateProperty + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + PrivateEndpointConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.cosmosdb.models.PrivateEndpointConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.cosmosdb.models.PrivateEndpointConnection]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + private_endpoint=private_endpoint, + private_link_service_connection_state=private_link_service_connection_state, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PrivateEndpointConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} + + + def _delete_initial( + self, resource_group_name, account_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str', min_length=1) + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, account_name, private_endpoint_connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a private endpoint connection with a given name. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param private_endpoint_connection_name: The name of the private + endpoint connection. + :type private_endpoint_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}'} diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py new file mode 100644 index 000000000000..5993100c13cc --- /dev/null +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py @@ -0,0 +1,178 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class PrivateLinkResourcesOperations(object): + """PrivateLinkResourcesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-08-01-preview" + + self.config = config + + def list_by_database_account( + self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): + """Gets the private link resources that need to be created for a Cosmos DB + account. + + :param resource_group_name: Name of an Azure resource group. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PrivateLinkResource + :rtype: + ~azure.mgmt.cosmosdb.models.PrivateLinkResourcePaged[~azure.mgmt.cosmosdb.models.PrivateLinkResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_database_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PrivateLinkResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_database_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources'} + + def get( + self, resource_group_name, account_name, group_name, custom_headers=None, raw=False, **operation_config): + """Gets the private link resources that need to be created for a Cosmos DB + account. + + :param resource_group_name: Name of an Azure resource group. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param group_name: The name of the private link resource. + :type group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PrivateLinkResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.cosmosdb.models.PrivateLinkResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'groupName': self._serialize.url("group_name", group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('PrivateLinkResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}'} diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py index e4f3d5055303..3697d9b71739 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.8.0" +VERSION = "0.9.0" diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_create.yaml b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_create.yaml index af5291f5acb5..1555c9df7e7d 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_create.yaml +++ b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_create.yaml @@ -2,378 +2,871 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6e416ffe-5acb-11e7-b3a1-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: HEAD uri: https://management.azure.com/providers/Microsoft.DocumentDB/databaseAccountNames/pycosmosdbtst427b100e?api-version=2015-04-08 response: - body: {string: ''} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['90'] - Date: ['Mon, 26 Jun 2017 23:59:07 GMT'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [ab95a2ca-a0a2-48b0-9a89-ef9ec08cf47e] - x-ms-ratelimit-remaining-tenant-reads: ['14999'] - x-ms-request-id: [ab95a2ca-a0a2-48b0-9a89-ef9ec08cf47e] - x-ms-routing-request-id: ['WESTUS2:20170626T235908Z:ab95a2ca-a0a2-48b0-9a89-ef9ec08cf47e'] - status: {code: 404, message: NotFound} + body: + string: '' + headers: + cache-control: + - no-store, no-cache + content-length: + - '147' + date: + - Fri, 08 Nov 2019 17:09:50 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 404 + message: NotFound - request: body: '{"location": "westus", "properties": {"locations": [{"locationName": "westus"}], - "databaseAccountOfferType": "Standard"}, "kind": "GlobalDocumentDB"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['149'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + "databaseAccountOfferType": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e?api-version=2015-04-08 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e","name":"pycosmosdbtst427b100e","location":"West - US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Initializing","ipRangeFilter":"","enableAutomaticFailover":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West - US","provisioningState":"Initializing","failoverPriority":0}],"readLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West - US","provisioningState":"Initializing","failoverPriority":0}],"failoverPolicies":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West - US","failoverPriority":0}]}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Mon, 26 Jun 2017 23:59:11 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['983'] - x-ms-correlation-request-id: [1ee738f6-aaa8-4038-8711-b63754dec0d1] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS2:20170626T235911Z:1ee738f6-aaa8-4038-8711-b63754dec0d1'] - status: {code: 200, message: Ok} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e","name":"pycosmosdbtst427b100e","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Initializing","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '1417' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:09:55 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:10:25 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:10:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:11:26 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:11:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:12:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:12:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:13:29 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Mon, 26 Jun 2017 23:59:41 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [7378942b-6655-4a6f-a1e9-96b024cc29df] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS2:20170626T235942Z:7378942b-6655-4a6f-a1e9-96b024cc29df'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:13:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:00:12 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [98249029-a81b-46a6-9971-0c137cda0417] - x-ms-gatewayversion: [version=1.14.33.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS:20170627T000012Z:98249029-a81b-46a6-9971-0c137cda0417'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:14:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:00:42 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [385ef750-713f-4143-8037-0b2ab7fadadb] - x-ms-gatewayversion: [version=1.14.33.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS:20170627T000042Z:385ef750-713f-4143-8037-0b2ab7fadadb'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:15:00 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:01:13 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [63820b0a-f3b4-4d04-ae62-300da2165b1c] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS:20170627T000113Z:63820b0a-f3b4-4d04-ae62-300da2165b1c'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:15:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:01:43 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [ec7cabfb-1e46-4bce-beae-850f364625be] - x-ms-gatewayversion: [version=1.14.33.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS:20170627T000143Z:ec7cabfb-1e46-4bce-beae-850f364625be'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:16:00 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:02:14 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [5419d279-590a-4564-a805-e6cc4348920a] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS2:20170627T000214Z:5419d279-590a-4564-a805-e6cc4348920a'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:16:31 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:02:44 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [49daceff-85d6-4d71-8ce9-4f4997f9ba61] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS2:20170627T000245Z:49daceff-85d6-4d71-8ce9-4f4997f9ba61'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:17:01 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:03:14 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [6c029458-2cc1-4704-9e08-9d8ad27305ab] - x-ms-gatewayversion: [version=1.14.33.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS:20170627T000315Z:6c029458-2cc1-4704-9e08-9d8ad27305ab'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:17:32 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:03:45 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [fdda65af-a0f1-443f-9182-8042c5c8d61a] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [0a8b4700-bf82-4fa0-abb5-7c1c3a943792] - x-ms-routing-request-id: ['WESTUS2:20170627T000345Z:fdda65af-a0f1-443f-9182-8042c5c8d61a'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/8bad264c-c249-4a1e-8b26-f422081014e7?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:18:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [71459606-5acb-11e7-bbc2-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e?api-version=2015-04-08 response: - body: {string: '{"status":"Succeeded","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e/operationResults/0a8b4700-bf82-4fa0-abb5-7c1c3a943792?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:04:15 GMT'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['33'] - x-ms-correlation-request-id: [69b120c5-04ce-4d98-bdcc-48e94d801a31] - x-ms-gatewayversion: [version=1.14.33.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [69b120c5-04ce-4d98-bdcc-48e94d801a31] - x-ms-routing-request-id: ['WESTUS:20170627T000415Z:69b120c5-04ce-4d98-bdcc-48e94d801a31'] - status: {code: 200, message: Ok} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e","name":"pycosmosdbtst427b100e","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtst427b100e.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtst427b100e-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtst427b100e-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtst427b100e-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtst427b100e-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1730' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_create427b100e/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtst427b100e?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:18:03 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok version: 1 diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_delete.yaml b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_delete.yaml index a02f136d0a8a..bfd9287f61a3 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_delete.yaml +++ b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_delete.yaml @@ -1,527 +1,1696 @@ interactions: +- request: + body: '{"location": "westus", "properties": {"locations": [{"locationName": "westus"}], + "databaseAccountOfferType": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d","name":"pydocumentdbtst4268100d","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Initializing","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '1429' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:18:22 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:18:55 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:19:25 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:19:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:20:26 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:20:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:21:27 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:21:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:22:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:22:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:23:31 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:24:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:24:32 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:25:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:25:33 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:26:04 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:26:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:27:06 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:27:36 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:28:07 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + response: + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/7db235d4-3f65-45e7-9236-ba21f8bc40ca?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:28:37 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d","name":"pydocumentdbtst4268100d","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pydocumentdbtst4268100d.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","documentEndpoint":"https://pydocumentdbtst4268100d-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","documentEndpoint":"https://pydocumentdbtst4268100d-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","documentEndpoint":"https://pydocumentdbtst4268100d-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pydocumentdbtst4268100d-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1750' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:28:37 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 response: - body: {string: '{"status":"Enqueued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:13:16 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [9cc390a4-63cb-4f37-bcba-021a04b1a3fc] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001316Z:9cc390a4-63cb-4f37-bcba-021a04b1a3fc'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:13:46 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [4dd4a421-1430-492d-8cbd-3a4c513a0186] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001347Z:4dd4a421-1430-492d-8cbd-3a4c513a0186'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:14:17 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [20363197-6730-45fb-bd89-40ff5b37686c] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001417Z:20363197-6730-45fb-bd89-40ff5b37686c'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:14:47 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [a44050a8-e451-45e5-a3f7-b185203d463c] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001447Z:a44050a8-e451-45e5-a3f7-b185203d463c'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:15:18 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [c7ef8a2f-99fe-49b6-8776-ecdc5be89255] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001518Z:c7ef8a2f-99fe-49b6-8776-ecdc5be89255'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:15:48 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [580c1a79-6358-434a-8b34-763af435ed6c] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001548Z:580c1a79-6358-434a-8b34-763af435ed6c'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:16:19 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [ac258031-a837-485e-8aa1-42c1bfedc3ff] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001619Z:ac258031-a837-485e-8aa1-42c1bfedc3ff'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:16:50 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [61c7af30-c97c-4e36-b99f-3e46a310dd71] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001650Z:61c7af30-c97c-4e36-b99f-3e46a310dd71'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:17:20 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [968ce6ad-c96c-4650-bc2a-115b8f1cf4d2] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001721Z:968ce6ad-c96c-4650-bc2a-115b8f1cf4d2'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:17:51 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [b15fd6f4-69ef-4853-8d1d-33bdb0084c3d] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001751Z:b15fd6f4-69ef-4853-8d1d-33bdb0084c3d'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:18:21 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [62986641-a91b-4de2-87e0-bc1d6527fb5d] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001822Z:62986641-a91b-4de2-87e0-bc1d6527fb5d'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:18:52 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [bfae7f67-c04d-4b51-96cb-043e27f551f1] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T001853Z:bfae7f67-c04d-4b51-96cb-043e27f551f1'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:19:22 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [8f538317-6ed1-4885-b434-4cd779e509ee] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001923Z:8f538317-6ed1-4885-b434-4cd779e509ee'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:19:52 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [a3e8ae97-73ba-4de9-bdf0-08553a95269a] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T001953Z:a3e8ae97-73ba-4de9-bdf0-08553a95269a'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:20:23 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [d33cbadf-cd11-4838-b902-86ea3f5d99bc] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS:20170627T002023Z:d33cbadf-cd11-4838-b902-86ea3f5d99bc'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['32'] - Content-Location: ['https://management.documents.azure.com:450/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Content-Type: [application/json] - Date: ['Tue, 27 Jun 2017 00:20:54 GMT'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [b8cf936c-f722-4ab3-adf9-0fa1406899cb] - x-ms-gatewayversion: [version=1.14.55.2] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6ad5e37f-5b56-4d6f-9806-e043f87893e1] - x-ms-routing-request-id: ['WESTUS2:20170627T002054Z:b8cf936c-f722-4ab3-adf9-0fa1406899cb'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.9 cosmosdb/0.2.0 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d/operationResults/6ad5e37f-5b56-4d6f-9806-e043f87893e1?api-version=2015-04-08 - response: - body: {string: ''} - headers: - Cache-Control: ['no-store, no-cache'] - Content-Length: ['0'] - Date: ['Tue, 27 Jun 2017 00:21:24 GMT'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-activity-id: [6988c25c-5acd-11e7-9db3-ecb1d756380e] - x-ms-correlation-request-id: [f1c59690-3fe9-4751-959a-1635f23991ba] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [f1c59690-3fe9-4751-959a-1635f23991ba] - x-ms-routing-request-id: ['WESTUS:20170627T002124Z:f1c59690-3fe9-4751-959a-1635f23991ba'] - status: {code: 200, message: Ok} + body: + string: '{"status":"Enqueued","error":{}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_delete4268100d/providers/Microsoft.DocumentDB/databaseAccounts/pydocumentdbtst4268100d?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:28:40 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/operationResults/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:29:12 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:29:44 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:30:13 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:30:45 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:31:16 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:31:47 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:32:19 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:32:48 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:33:20 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:33:50 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:34:21 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:34:50 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:35:22 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + response: + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/25369321-6140-4d0f-ad89-6b9a25a362ee?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:35:53 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok version: 1 diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_features.yaml b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_features.yaml index 37bba0514a3a..4f9877bff765 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_features.yaml +++ b/sdk/cosmos/azure-mgmt-cosmosdb/tests/recordings/test_mgmt_cosmosdb.test_accounts_features.yaml @@ -3,590 +3,1279 @@ interactions: body: '{"location": "westus", "properties": {"locations": [{"locationName": "westus"}], "databaseAccountOfferType": "Standard"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['121'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West - US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Initializing","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","provisioningState":"Initializing","failoverPriority":0}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","provisioningState":"Initializing","failoverPriority":0}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","failoverPriority":0}],"capabilities":[]}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['1108'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:39:37 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: Ok} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Initializing","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","provisioningState":"Initializing","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '1425' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:36:22 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:40:08 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:36:56 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:40:39 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:37:25 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:41:10 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:37:57 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:41:40 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:38:28 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:42:10 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:38:59 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:42:41 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:39:30 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:43:11 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:40:00 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:43:42 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:40:31 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:44:13 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:41:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:44:42 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:41:32 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Dequeued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:13 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:42:02 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 response: - body: {string: '{"status":"Succeeded","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['33'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/operationResults/cd3ce313-dfed-4543-b03f-c5b6be1c7137?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:43 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 200, message: Ok} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:42:34 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:04 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + response: + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1890b83e-7e5c-42e7-a66d-92b53be13a0c?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:35 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West - US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","failoverPriority":0}],"capabilities":[]}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['1344'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:44 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 200, message: Ok} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1742' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:36 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1742' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:38 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West - US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","failoverPriority":0}],"capabilities":[]}}]}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['1356'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:45 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 200, message: Ok} + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}]}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1754' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:39 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West - US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West - US","failoverPriority":0}],"capabilities":[]}}]}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['1356'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:45 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 200, message: Ok} + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9","name":"pycosmosdbtest640310f9","location":"West + US","type":"Microsoft.DocumentDB/databaseAccounts","kind":"GlobalDocumentDB","tags":{},"properties":{"provisioningState":"Succeeded","documentEndpoint":"https://pycosmosdbtest640310f9.documents.azure.com:443/","ipRangeFilter":"","enableAutomaticFailover":false,"enableMultipleWriteLocations":false,"enablePartitionKeyMonitor":false,"isVirtualNetworkFilterEnabled":false,"virtualNetworkRules":[],"EnabledApiTypes":"Sql","disableKeyBasedMetadataWriteAccess":false,"databaseAccountOfferType":"Standard","consistencyPolicy":{"defaultConsistencyLevel":"Session","maxIntervalInSeconds":5,"maxStalenessPrefix":100},"configurationOverrides":{},"writeLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"readLocations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"locations":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","documentEndpoint":"https://pycosmosdbtest640310f9-westus.documents.azure.com:443/","provisioningState":"Succeeded","failoverPriority":0,"isZoneRedundant":false}],"failoverPolicies":[{"id":"pycosmosdbtest640310f9-westus","locationName":"West + US","failoverPriority":0}],"cors":[],"capabilities":[]}}]}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '1754' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:39 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: '{"failoverPolicies": [{"locationName": "westus", "failoverPriority": 0}]}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['73'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '73' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/failoverPriorityChange?api-version=2015-04-08 response: - body: {string: '{"status":"Enqueued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:45:47 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/failoverPriorityChange/operationResults/c2b8961a-826c-41ad-a8a1-030e21d75646?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Enqueued","error":{}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/038ac307-013d-40a4-b0c3-69d9202b28cc?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '32' + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:43:42 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/failoverPriorityChange/operationResults/038ac307-013d-40a4-b0c3-69d9202b28cc?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/failoverPriorityChange/operationResults/c2b8961a-826c-41ad-a8a1-030e21d75646?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/038ac307-013d-40a4-b0c3-69d9202b28cc?api-version=2015-04-08 response: - body: {string: ''} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['0'] - date: ['Mon, 08 Oct 2018 20:46:17 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-activity-id: [21a15fa8-cb3b-11e8-816d-ecb1d756380e] - status: {code: 200, message: Ok} + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/038ac307-013d-40a4-b0c3-69d9202b28cc?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:44:13 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/listKeys?api-version=2015-04-08 response: - body: {string: '{"primaryMasterKey":"tVkL0QkNYnmcB6hxVMavzuOpVPxt62HvyoJyJ3stg2rFRAZGgjbUNccJw6kvzJTRG8qzBPTEM8DvEPiQi6y6yw==","secondaryMasterKey":"EFG1k59hyXKXj42aH9VdGHMIdqGodiJRSKV5zynUH14zd3I09Pg8ZEANe1mGQauf4jiUaSwQlkd38DvsWctJkg==","primaryReadonlyMasterKey":"YktaWtgT2Z1mwE1iCW7AOyUulqtTzqyMhz5JQLoUvMQXIWh4GnQg10QBPLBaoffEhEWCXSzzKILP86YxEiWlrQ==","secondaryReadonlyMasterKey":"ZCb2xqBrqpNC6b6p2fPtMExH7HhgUGKCOh7p82ryGBZnabSOk1G2IVpgOFoViiPf9k3xVeDSXW1anJ25kFq26Q=="}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['461'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:46:19 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: Ok} + body: + string: '{"primaryMasterKey":"TxEkbe5ZoJEliLsFFFomneZcfw6FQFGM0cUJVndgKOBMLTGPJyybI9ZjvzQf0FlWmYCUXHNTsU45kKA2RUezqw==","secondaryMasterKey":"v7jedeOom022XAsrqpcAq227hbhHwpO9Y722toFEF2l2SuAV0p7z17u2hcZG1Thd2O8tHuHVXDeKmCRjOEtYlQ==","primaryReadonlyMasterKey":"dSDa3qGKfuq4qAK22Py86JTB4Nk6e2vv1uJrHrBHzYN4ZvBZAlOImAHv8HJnyD0S4yr1c691CwQh078pjvR5kw==","secondaryReadonlyMasterKey":"tMucBX1yjNvzUzCDZiN0fxibvPMrjdLE65li55hoSy53Dz7eUcziOABMMcTbj5UrfWGS1lNqcmAgrVr5WuiEDA=="}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '461' + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:44:14 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/readonlykeys?api-version=2015-04-08 response: - body: {string: '{"primaryReadonlyMasterKey":"YktaWtgT2Z1mwE1iCW7AOyUulqtTzqyMhz5JQLoUvMQXIWh4GnQg10QBPLBaoffEhEWCXSzzKILP86YxEiWlrQ==","secondaryReadonlyMasterKey":"ZCb2xqBrqpNC6b6p2fPtMExH7HhgUGKCOh7p82ryGBZnabSOk1G2IVpgOFoViiPf9k3xVeDSXW1anJ25kFq26Q=="}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['239'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:46:19 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: Ok} + body: + string: '{"primaryReadonlyMasterKey":"dSDa3qGKfuq4qAK22Py86JTB4Nk6e2vv1uJrHrBHzYN4ZvBZAlOImAHv8HJnyD0S4yr1c691CwQh078pjvR5kw==","secondaryReadonlyMasterKey":"tMucBX1yjNvzUzCDZiN0fxibvPMrjdLE65li55hoSy53Dz7eUcziOABMMcTbj5UrfWGS1lNqcmAgrVr5WuiEDA=="}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '239' + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:44:14 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: Ok - request: body: '{"keyKind": "primary"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['22'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/regenerateKey?api-version=2015-04-08 response: - body: {string: '{"status":"Enqueued","error":{}}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['32'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:46:21 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/regenerateKey/operationResults/2d02606a-b4db-49ed-8a9b-5d38a0c92980?api-version=2015-04-08'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + body: + string: '{"status":"Enqueued","error":{}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + cache-control: + - no-store, no-cache + content-length: + - '32' + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:44:15 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/regenerateKey/operationResults/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + response: + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:44:47 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-cosmosdb/0.3.0 Azure-SDK-For-Python] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/regenerateKey/operationResults/2d02606a-b4db-49ed-8a9b-5d38a0c92980?api-version=2015-04-08 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 response: - body: {string: '{"primaryMasterKey":"MR9IG9UgUXxTaVy3gcrNpssfD5BfDEg3yWnfBmglJng3C1ZfZ4OJ5L9JsNoQikBHr2JM6PwBJwvNbyXgovtuzA==","secondaryMasterKey":"EFG1k59hyXKXj42aH9VdGHMIdqGodiJRSKV5zynUH14zd3I09Pg8ZEANe1mGQauf4jiUaSwQlkd38DvsWctJkg==","primaryReadonlyMasterKey":"YktaWtgT2Z1mwE1iCW7AOyUulqtTzqyMhz5JQLoUvMQXIWh4GnQg10QBPLBaoffEhEWCXSzzKILP86YxEiWlrQ==","secondaryReadonlyMasterKey":"ZCb2xqBrqpNC6b6p2fPtMExH7HhgUGKCOh7p82ryGBZnabSOk1G2IVpgOFoViiPf9k3xVeDSXW1anJ25kFq26Q=="}'} - headers: - cache-control: ['no-store, no-cache'] - content-length: ['461'] - content-location: ['https://management.documents.azure.com:450/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/test_mgmt_cosmosdb_test_accounts_features640310f9/providers/Microsoft.DocumentDB/databaseAccounts/pycosmosdbtest640310f9/regenerateKey/operationResults/2d02606a-b4db-49ed-8a9b-5d38a0c92980?api-version=2015-04-08'] - content-type: [application/json] - date: ['Mon, 08 Oct 2018 20:46:52 GMT'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-gatewayversion: [version=2.1.0.0] - status: {code: 200, message: Ok} + body: + string: '{"status":"Dequeued","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '32' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:45:18 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-cosmosdb/0.8.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + response: + body: + string: '{"status":"Succeeded","error":{}}' + headers: + cache-control: + - no-store, no-cache + content-length: + - '33' + content-location: + - https://management.documents.azure.com:450/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/39119f85-ef0b-4b6b-8403-4608c9cf5c04?api-version=2015-04-08 + content-type: + - application/json + date: + - Fri, 08 Nov 2019 17:45:50 GMT + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-gatewayversion: + - version=2.7.0 + status: + code: 200 + message: Ok version: 1 diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst b/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst index 763f650f89c4..e54bb36eb88c 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst +++ b/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +3.0.0rc2 (2019-11-11) ++++++++++++++++++++++ + +**Features** + +- Model WebHookEventSubscriptionDestination has a new parameter azure_active_directory_tenant_id + 3.0.0rc1 (2019-10-24) +++++++++++++++++++++ diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py index 7d1ce7f6e9e1..b5f5182e765f 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py @@ -1600,9 +1600,13 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): :param preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes. :type preferred_batch_size_in_kilobytes: int - :param azure_active_directory_application_id_or_uri: The AAD application - ID or URI to get the access token that will be included as the bearer - token in delivery requests. + :param azure_active_directory_tenant_id: The Azure Active Directory Tenant + ID to get the access token that will be included as the bearer token in + delivery requests. + :type azure_active_directory_tenant_id: str + :param azure_active_directory_application_id_or_uri: The Azure Active + Directory Application ID or URI to get the access token that will be + included as the bearer token in delivery requests. :type azure_active_directory_application_id_or_uri: str """ @@ -1617,6 +1621,7 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, 'max_events_per_batch': {'key': 'properties.maxEventsPerBatch', 'type': 'int'}, 'preferred_batch_size_in_kilobytes': {'key': 'properties.preferredBatchSizeInKilobytes', 'type': 'int'}, + 'azure_active_directory_tenant_id': {'key': 'properties.azureActiveDirectoryTenantId', 'type': 'str'}, 'azure_active_directory_application_id_or_uri': {'key': 'properties.azureActiveDirectoryApplicationIdOrUri', 'type': 'str'}, } @@ -1626,5 +1631,6 @@ def __init__(self, **kwargs): self.endpoint_base_url = None self.max_events_per_batch = kwargs.get('max_events_per_batch', None) self.preferred_batch_size_in_kilobytes = kwargs.get('preferred_batch_size_in_kilobytes', None) + self.azure_active_directory_tenant_id = kwargs.get('azure_active_directory_tenant_id', None) self.azure_active_directory_application_id_or_uri = kwargs.get('azure_active_directory_application_id_or_uri', None) self.endpoint_type = 'WebHook' diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py index 9e078f5c2dd6..4b5b2d2cb210 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py @@ -1600,9 +1600,13 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): :param preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes. :type preferred_batch_size_in_kilobytes: int - :param azure_active_directory_application_id_or_uri: The AAD application - ID or URI to get the access token that will be included as the bearer - token in delivery requests. + :param azure_active_directory_tenant_id: The Azure Active Directory Tenant + ID to get the access token that will be included as the bearer token in + delivery requests. + :type azure_active_directory_tenant_id: str + :param azure_active_directory_application_id_or_uri: The Azure Active + Directory Application ID or URI to get the access token that will be + included as the bearer token in delivery requests. :type azure_active_directory_application_id_or_uri: str """ @@ -1617,14 +1621,16 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, 'max_events_per_batch': {'key': 'properties.maxEventsPerBatch', 'type': 'int'}, 'preferred_batch_size_in_kilobytes': {'key': 'properties.preferredBatchSizeInKilobytes', 'type': 'int'}, + 'azure_active_directory_tenant_id': {'key': 'properties.azureActiveDirectoryTenantId', 'type': 'str'}, 'azure_active_directory_application_id_or_uri': {'key': 'properties.azureActiveDirectoryApplicationIdOrUri', 'type': 'str'}, } - def __init__(self, *, endpoint_url: str=None, max_events_per_batch: int=None, preferred_batch_size_in_kilobytes: int=None, azure_active_directory_application_id_or_uri: str=None, **kwargs) -> None: + def __init__(self, *, endpoint_url: str=None, max_events_per_batch: int=None, preferred_batch_size_in_kilobytes: int=None, azure_active_directory_tenant_id: str=None, azure_active_directory_application_id_or_uri: str=None, **kwargs) -> None: super(WebHookEventSubscriptionDestination, self).__init__(**kwargs) self.endpoint_url = endpoint_url self.endpoint_base_url = None self.max_events_per_batch = max_events_per_batch self.preferred_batch_size_in_kilobytes = preferred_batch_size_in_kilobytes + self.azure_active_directory_tenant_id = azure_active_directory_tenant_id self.azure_active_directory_application_id_or_uri = azure_active_directory_application_id_or_uri self.endpoint_type = 'WebHook' diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py index 55097d5cae62..3a65e38d32c2 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py @@ -9,5 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "3.0.0rc1" - +VERSION = "3.0.0rc2" diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/chained.py b/sdk/identity/azure-identity/azure/identity/_credentials/chained.py index 9db7265c3ddb..3056bd21f4dd 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/chained.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/chained.py @@ -59,4 +59,5 @@ def _get_error_message(history): attempts.append("{}: {}".format(credential.__class__.__name__, error)) else: attempts.append(credential.__class__.__name__) - return "No valid token received. {}".format(". ".join(attempts)) + return """No credential in this chain provided a token. +Attempted credentials:\n\t{}""".format("\n\t".join(attempts)) diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/default.py b/sdk/identity/azure-identity/azure/identity/_credentials/default.py index 4babb4a5b918..13473193dc95 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/default.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/default.py @@ -4,6 +4,8 @@ # ------------------------------------ import os +from azure.core.exceptions import ClientAuthenticationError + from .._constants import EnvironmentVariables from .chained import ChainedTokenCredential from .environment import EnvironmentCredential @@ -42,3 +44,13 @@ def __init__(self, **kwargs): ) super(DefaultAzureCredential, self).__init__(*credentials) + + def get_token(self, *scopes, **kwargs): + try: + return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs) + except ClientAuthenticationError as e: + raise ClientAuthenticationError(message=""" +{}\n\nPlease visit the Azure identity Python SDK docs at +https://aka.ms/python-sdk-identity#defaultazurecredential +to learn what options DefaultAzureCredential supports""" + .format(e.message)) diff --git a/sdk/kusto/azure-mgmt-kusto/HISTORY.rst b/sdk/kusto/azure-mgmt-kusto/HISTORY.rst index 4593f2ff145b..168247174c38 100644 --- a/sdk/kusto/azure-mgmt-kusto/HISTORY.rst +++ b/sdk/kusto/azure-mgmt-kusto/HISTORY.rst @@ -3,6 +3,28 @@ Release History =============== +0.5.0 (2019-11-11) +++++++++++++++++++ + +**Features** + +- Model ClusterUpdate has a new parameter key_vault_properties +- Model ClusterUpdate has a new parameter identity +- Model Cluster has a new parameter key_vault_properties +- Model Cluster has a new parameter identity +- Added operation ClustersOperations.detach_follower_databases +- Added operation ClustersOperations.list_follower_databases +- Added operation group AttachedDatabaseConfigurationsOperations + +**Breaking changes** + +- Operation DatabasesOperations.check_name_availability has a new signature +- Model Database no longer has parameter soft_delete_period +- Model Database no longer has parameter hot_cache_period +- Model Database no longer has parameter statistics +- Model Database no longer has parameter provisioning_state +- Model Database has a new required parameter kind + 0.4.0 (2019-08-27) ++++++++++++++++++ diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_kusto_management_client.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_kusto_management_client.py index 0bbf38cf54bc..9015ffbf96eb 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_kusto_management_client.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_kusto_management_client.py @@ -15,6 +15,7 @@ from ._configuration import KustoManagementClientConfiguration from .operations import ClustersOperations from .operations import DatabasesOperations +from .operations import AttachedDatabaseConfigurationsOperations from .operations import DataConnectionsOperations from .operations import Operations from . import models @@ -30,6 +31,8 @@ class KustoManagementClient(SDKClient): :vartype clusters: azure.mgmt.kusto.operations.ClustersOperations :ivar databases: Databases operations :vartype databases: azure.mgmt.kusto.operations.DatabasesOperations + :ivar attached_database_configurations: AttachedDatabaseConfigurations operations + :vartype attached_database_configurations: azure.mgmt.kusto.operations.AttachedDatabaseConfigurationsOperations :ivar data_connections: DataConnections operations :vartype data_connections: azure.mgmt.kusto.operations.DataConnectionsOperations :ivar operations: Operations operations @@ -52,7 +55,7 @@ def __init__( super(KustoManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2019-05-15' + self.api_version = '2019-09-07' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -60,6 +63,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.databases = DatabasesOperations( self._client, self.config, self._serialize, self._deserialize) + self.attached_database_configurations = AttachedDatabaseConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) self.data_connections = DataConnectionsOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py index a109d343c275..8bb2947d1ab8 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py @@ -10,21 +10,21 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AttachedDatabaseConfiguration from ._models_py3 import AzureCapacity from ._models_py3 import AzureEntityResource from ._models_py3 import AzureResourceSku from ._models_py3 import AzureSku + from ._models_py3 import CheckNameRequest from ._models_py3 import CheckNameResult from ._models_py3 import Cluster from ._models_py3 import ClusterCheckNameRequest from ._models_py3 import ClusterUpdate from ._models_py3 import Database - from ._models_py3 import DatabaseCheckNameRequest from ._models_py3 import DatabasePrincipal from ._models_py3 import DatabasePrincipalListRequest from ._models_py3 import DatabasePrincipalListResult from ._models_py3 import DatabaseStatistics - from ._models_py3 import DatabaseUpdate from ._models_py3 import DataConnection from ._models_py3 import DataConnectionCheckNameRequest from ._models_py3 import DataConnectionValidation @@ -32,11 +32,17 @@ from ._models_py3 import DataConnectionValidationResult from ._models_py3 import EventGridDataConnection from ._models_py3 import EventHubDataConnection + from ._models_py3 import FollowerDatabaseDefinition + from ._models_py3 import Identity + from ._models_py3 import IdentityUserAssignedIdentitiesValue from ._models_py3 import IotHubDataConnection + from ._models_py3 import KeyVaultProperties from ._models_py3 import Operation from ._models_py3 import OperationDisplay from ._models_py3 import OptimizedAutoscale from ._models_py3 import ProxyResource + from ._models_py3 import ReadOnlyFollowingDatabase + from ._models_py3 import ReadWriteDatabase from ._models_py3 import Resource from ._models_py3 import SkuDescription from ._models_py3 import SkuLocationInfoItem @@ -44,21 +50,21 @@ from ._models_py3 import TrustedExternalTenant from ._models_py3 import VirtualNetworkConfiguration except (SyntaxError, ImportError): + from ._models import AttachedDatabaseConfiguration from ._models import AzureCapacity from ._models import AzureEntityResource from ._models import AzureResourceSku from ._models import AzureSku + from ._models import CheckNameRequest from ._models import CheckNameResult from ._models import Cluster from ._models import ClusterCheckNameRequest from ._models import ClusterUpdate from ._models import Database - from ._models import DatabaseCheckNameRequest from ._models import DatabasePrincipal from ._models import DatabasePrincipalListRequest from ._models import DatabasePrincipalListResult from ._models import DatabaseStatistics - from ._models import DatabaseUpdate from ._models import DataConnection from ._models import DataConnectionCheckNameRequest from ._models import DataConnectionValidation @@ -66,22 +72,30 @@ from ._models import DataConnectionValidationResult from ._models import EventGridDataConnection from ._models import EventHubDataConnection + from ._models import FollowerDatabaseDefinition + from ._models import Identity + from ._models import IdentityUserAssignedIdentitiesValue from ._models import IotHubDataConnection + from ._models import KeyVaultProperties from ._models import Operation from ._models import OperationDisplay from ._models import OptimizedAutoscale from ._models import ProxyResource + from ._models import ReadOnlyFollowingDatabase + from ._models import ReadWriteDatabase from ._models import Resource from ._models import SkuDescription from ._models import SkuLocationInfoItem from ._models import TrackedResource from ._models import TrustedExternalTenant from ._models import VirtualNetworkConfiguration +from ._paged_models import AttachedDatabaseConfigurationPaged from ._paged_models import AzureResourceSkuPaged from ._paged_models import ClusterPaged from ._paged_models import DatabasePaged from ._paged_models import DatabasePrincipalPaged from ._paged_models import DataConnectionPaged +from ._paged_models import FollowerDatabaseDefinitionPaged from ._paged_models import OperationPaged from ._paged_models import SkuDescriptionPaged from ._kusto_management_client_enums import ( @@ -90,28 +104,32 @@ AzureSkuName, AzureSkuTier, AzureScaleType, + DefaultPrincipalsModificationKind, + PrincipalsModificationKind, DataFormat, + IdentityType, DatabasePrincipalRole, DatabasePrincipalType, + Type, Reason, ) __all__ = [ + 'AttachedDatabaseConfiguration', 'AzureCapacity', 'AzureEntityResource', 'AzureResourceSku', 'AzureSku', + 'CheckNameRequest', 'CheckNameResult', 'Cluster', 'ClusterCheckNameRequest', 'ClusterUpdate', 'Database', - 'DatabaseCheckNameRequest', 'DatabasePrincipal', 'DatabasePrincipalListRequest', 'DatabasePrincipalListResult', 'DatabaseStatistics', - 'DatabaseUpdate', 'DataConnection', 'DataConnectionCheckNameRequest', 'DataConnectionValidation', @@ -119,22 +137,30 @@ 'DataConnectionValidationResult', 'EventGridDataConnection', 'EventHubDataConnection', + 'FollowerDatabaseDefinition', + 'Identity', + 'IdentityUserAssignedIdentitiesValue', 'IotHubDataConnection', + 'KeyVaultProperties', 'Operation', 'OperationDisplay', 'OptimizedAutoscale', 'ProxyResource', + 'ReadOnlyFollowingDatabase', + 'ReadWriteDatabase', 'Resource', 'SkuDescription', 'SkuLocationInfoItem', 'TrackedResource', 'TrustedExternalTenant', 'VirtualNetworkConfiguration', + 'FollowerDatabaseDefinitionPaged', 'ClusterPaged', 'SkuDescriptionPaged', 'AzureResourceSkuPaged', 'DatabasePaged', 'DatabasePrincipalPaged', + 'AttachedDatabaseConfigurationPaged', 'DataConnectionPaged', 'OperationPaged', 'State', @@ -142,8 +168,12 @@ 'AzureSkuName', 'AzureSkuTier', 'AzureScaleType', + 'DefaultPrincipalsModificationKind', + 'PrincipalsModificationKind', 'DataFormat', + 'IdentityType', 'DatabasePrincipalRole', 'DatabasePrincipalType', + 'Type', 'Reason', ] diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_kusto_management_client_enums.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_kusto_management_client_enums.py index 20490930677a..8f34ce88248b 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_kusto_management_client_enums.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_kusto_management_client_enums.py @@ -64,6 +64,20 @@ class AzureScaleType(str, Enum): none = "none" +class DefaultPrincipalsModificationKind(str, Enum): + + union = "Union" + replace = "Replace" + none = "None" + + +class PrincipalsModificationKind(str, Enum): + + union = "Union" + replace = "Replace" + none = "None" + + class DataFormat(str, Enum): multijson = "MULTIJSON" @@ -77,6 +91,13 @@ class DataFormat(str, Enum): raw = "RAW" singlejson = "SINGLEJSON" avro = "AVRO" + tsve = "TSVE" + + +class IdentityType(str, Enum): + + none = "None" + system_assigned = "SystemAssigned" class DatabasePrincipalRole(str, Enum): @@ -96,6 +117,12 @@ class DatabasePrincipalType(str, Enum): user = "User" +class Type(str, Enum): + + microsoft_kustoclustersdatabases = "Microsoft.Kusto/clusters/databases" + microsoft_kustoclustersattached_database_configurations = "Microsoft.Kusto/clusters/attachedDatabaseConfigurations" + + class Reason(str, Enum): invalid = "Invalid" diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models.py index 101c140126f3..22690e034688 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models.py @@ -13,46 +13,44 @@ from msrest.exceptions import HttpOperationError -class AzureCapacity(Model): - """Azure capacity definition. +class Resource(Model): + """Resource. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when + sending a request. - :param scale_type: Required. Scale type. Possible values include: - 'automatic', 'manual', 'none' - :type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType - :param minimum: Required. Minimum allowed capacity. - :type minimum: int - :param maximum: Required. Maximum allowed capacity. - :type maximum: int - :param default: Required. The default capacity that would be used. - :type default: int + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str """ _validation = { - 'scale_type': {'required': True}, - 'minimum': {'required': True}, - 'maximum': {'required': True}, - 'default': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__(self, **kwargs): - super(AzureCapacity, self).__init__(**kwargs) - self.scale_type = kwargs.get('scale_type', None) - self.minimum = kwargs.get('minimum', None) - self.maximum = kwargs.get('maximum', None) - self.default = kwargs.get('default', None) + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None -class Resource(Model): - """Resource. +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. @@ -80,10 +78,118 @@ class Resource(Model): } def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None + super(ProxyResource, self).__init__(**kwargs) + + +class AttachedDatabaseConfiguration(ProxyResource): + """Class representing an attached database configuration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :param database_name: Required. The name of the database which you would + like to attach, use * if you want to follow all current and future + databases. + :type database_name: str + :param cluster_resource_id: Required. The resource id of the cluster where + the databases you would like to attach reside. + :type cluster_resource_id: str + :ivar attached_database_names: The list of databases from the + clusterResourceId which are currently attached to the cluster. + :vartype attached_database_names: list[str] + :param default_principals_modification_kind: Required. The default + principals modification kind. Possible values include: 'Union', 'Replace', + 'None' + :type default_principals_modification_kind: str or + ~azure.mgmt.kusto.models.DefaultPrincipalsModificationKind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'database_name': {'required': True}, + 'cluster_resource_id': {'required': True}, + 'attached_database_names': {'readonly': True}, + 'default_principals_modification_kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'cluster_resource_id': {'key': 'properties.clusterResourceId', 'type': 'str'}, + 'attached_database_names': {'key': 'properties.attachedDatabaseNames', 'type': '[str]'}, + 'default_principals_modification_kind': {'key': 'properties.defaultPrincipalsModificationKind', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AttachedDatabaseConfiguration, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.provisioning_state = None + self.database_name = kwargs.get('database_name', None) + self.cluster_resource_id = kwargs.get('cluster_resource_id', None) + self.attached_database_names = None + self.default_principals_modification_kind = kwargs.get('default_principals_modification_kind', None) + + +class AzureCapacity(Model): + """Azure capacity definition. + + All required parameters must be populated in order to send to Azure. + + :param scale_type: Required. Scale type. Possible values include: + 'automatic', 'manual', 'none' + :type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType + :param minimum: Required. Minimum allowed capacity. + :type minimum: int + :param maximum: Required. Maximum allowed capacity. + :type maximum: int + :param default: Required. The default capacity that would be used. + :type default: int + """ + + _validation = { + 'scale_type': {'required': True}, + 'minimum': {'required': True}, + 'maximum': {'required': True}, + 'default': {'required': True}, + } + + _attribute_map = { + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureCapacity, self).__init__(**kwargs) + self.scale_type = kwargs.get('scale_type', None) + self.minimum = kwargs.get('minimum', None) + self.maximum = kwargs.get('maximum', None) + self.default = kwargs.get('default', None) class AzureEntityResource(Resource): @@ -184,6 +290,36 @@ def __init__(self, **kwargs): self.tier = kwargs.get('tier', None) +class CheckNameRequest(Model): + """The result returned from a database check name availability request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Resource name. + :type name: str + :param type: Required. The type of resource, for instance + Microsoft.Kusto/clusters/databases. Possible values include: + 'Microsoft.Kusto/clusters/databases', + 'Microsoft.Kusto/clusters/attachedDatabaseConfigurations' + :type type: str or ~azure.mgmt.kusto.models.Type + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'Type'}, + } + + def __init__(self, **kwargs): + super(CheckNameRequest, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + class CheckNameResult(Model): """The result returned from a check name availability request. @@ -341,6 +477,8 @@ class Cluster(TrackedResource): :type sku: ~azure.mgmt.kusto.models.AzureSku :param zones: The availability zones of the cluster. :type zones: list[str] + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.kusto.models.Identity :ivar state: The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' @@ -368,6 +506,9 @@ class Cluster(TrackedResource): :param virtual_network_configuration: Virtual network definition. :type virtual_network_configuration: ~azure.mgmt.kusto.models.VirtualNetworkConfiguration + :param key_vault_properties: KeyVault properties for the cluster + encryption. + :type key_vault_properties: ~azure.mgmt.kusto.models.KeyVaultProperties """ _validation = { @@ -390,6 +531,7 @@ class Cluster(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -399,12 +541,14 @@ class Cluster(TrackedResource): 'enable_disk_encryption': {'key': 'properties.enableDiskEncryption', 'type': 'bool'}, 'enable_streaming_ingest': {'key': 'properties.enableStreamingIngest', 'type': 'bool'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, + 'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'}, } def __init__(self, **kwargs): super(Cluster, self).__init__(**kwargs) self.sku = kwargs.get('sku', None) self.zones = kwargs.get('zones', None) + self.identity = kwargs.get('identity', None) self.state = None self.provisioning_state = None self.uri = None @@ -414,6 +558,7 @@ def __init__(self, **kwargs): self.enable_disk_encryption = kwargs.get('enable_disk_encryption', None) self.enable_streaming_ingest = kwargs.get('enable_streaming_ingest', False) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) + self.key_vault_properties = kwargs.get('key_vault_properties', None) class ClusterCheckNameRequest(Model): @@ -468,6 +613,8 @@ class ClusterUpdate(Resource): :type location: str :param sku: The SKU of the cluster. :type sku: ~azure.mgmt.kusto.models.AzureSku + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.kusto.models.Identity :ivar state: The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' @@ -495,6 +642,9 @@ class ClusterUpdate(Resource): :param virtual_network_configuration: Virtual network definition. :type virtual_network_configuration: ~azure.mgmt.kusto.models.VirtualNetworkConfiguration + :param key_vault_properties: KeyVault properties for the cluster + encryption. + :type key_vault_properties: ~azure.mgmt.kusto.models.KeyVaultProperties """ _validation = { @@ -514,6 +664,7 @@ class ClusterUpdate(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -523,6 +674,7 @@ class ClusterUpdate(Resource): 'enable_disk_encryption': {'key': 'properties.enableDiskEncryption', 'type': 'bool'}, 'enable_streaming_ingest': {'key': 'properties.enableStreamingIngest', 'type': 'bool'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, + 'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'}, } def __init__(self, **kwargs): @@ -530,6 +682,7 @@ def __init__(self, **kwargs): self.tags = kwargs.get('tags', None) self.location = kwargs.get('location', None) self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) self.state = None self.provisioning_state = None self.uri = None @@ -539,47 +692,20 @@ def __init__(self, **kwargs): self.enable_disk_encryption = kwargs.get('enable_disk_encryption', None) self.enable_streaming_ingest = kwargs.get('enable_streaming_ingest', False) self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None) - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) + self.key_vault_properties = kwargs.get('key_vault_properties', None) class Database(ProxyResource): """Class representing a Kusto database. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ReadWriteDatabase, ReadOnlyFollowingDatabase + Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str @@ -590,26 +716,15 @@ class Database(ProxyResource): :vartype type: str :param location: Resource location. :type location: str - :ivar provisioning_state: The provisioned state of the resource. Possible - values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', - 'Moving' - :vartype provisioning_state: str or - ~azure.mgmt.kusto.models.ProvisioningState - :param soft_delete_period: The time the data should be kept before it - stops being accessible to queries in TimeSpan. - :type soft_delete_period: timedelta - :param hot_cache_period: The time the data should be kept in cache for - fast queries in TimeSpan. - :type hot_cache_period: timedelta - :param statistics: The statistics of the database. - :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + :param kind: Required. Constant filled by server. + :type kind: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -617,52 +732,18 @@ class Database(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, - 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, - 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - } - - def __init__(self, **kwargs): - super(Database, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.provisioning_state = None - self.soft_delete_period = kwargs.get('soft_delete_period', None) - self.hot_cache_period = kwargs.get('hot_cache_period', None) - self.statistics = kwargs.get('statistics', None) - - -class DatabaseCheckNameRequest(Model): - """The result returned from a database check name availability request. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Database name. - :type name: str - :ivar type: Required. The type of resource, - Microsoft.Kusto/clusters/databases. Default value: - "Microsoft.Kusto/clusters/databases" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, + 'kind': {'key': 'kind', 'type': 'str'}, } - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + _subtype_map = { + 'kind': {'ReadWrite': 'ReadWriteDatabase', 'ReadOnlyFollowing': 'ReadOnlyFollowingDatabase'} } - type = "Microsoft.Kusto/clusters/databases" - def __init__(self, **kwargs): - super(DatabaseCheckNameRequest, self).__init__(**kwargs) - self.name = kwargs.get('name', None) + super(Database, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.kind = None + self.kind = 'Database' class DatabasePrincipal(Model): @@ -769,64 +850,6 @@ def __init__(self, **kwargs): self.size = kwargs.get('size', None) -class DatabaseUpdate(Resource): - """Class representing an update to a Kusto database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param location: Resource location. - :type location: str - :ivar provisioning_state: The provisioned state of the resource. Possible - values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', - 'Moving' - :vartype provisioning_state: str or - ~azure.mgmt.kusto.models.ProvisioningState - :param soft_delete_period: The time the data should be kept before it - stops being accessible to queries in TimeSpan. - :type soft_delete_period: timedelta - :param hot_cache_period: The time the data should be kept in cache for - fast queries in TimeSpan. - :type hot_cache_period: timedelta - :param statistics: The statistics of the database. - :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, - 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, - 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - } - - def __init__(self, **kwargs): - super(DatabaseUpdate, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.provisioning_state = None - self.soft_delete_period = kwargs.get('soft_delete_period', None) - self.hot_cache_period = kwargs.get('hot_cache_period', None) - self.statistics = kwargs.get('statistics', None) - - class DataConnection(ProxyResource): """Class representing an data connection. @@ -1003,7 +1026,7 @@ class EventGridDataConnection(DataConnection): :param data_format: Required. The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', - 'SINGLEJSON', 'AVRO' + 'SINGLEJSON', 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat """ @@ -1078,7 +1101,7 @@ class EventHubDataConnection(DataConnection): :param data_format: The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON', - 'AVRO' + 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat :param event_system_properties: System properties of the event hub :type event_system_properties: list[str] @@ -1118,6 +1141,116 @@ def __init__(self, **kwargs): self.kind = 'EventHub' +class FollowerDatabaseDefinition(Model): + """A class representing follower database request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param cluster_resource_id: Required. Resource id of the cluster that + follows a database owned by this cluster. + :type cluster_resource_id: str + :param attached_database_configuration_name: Required. Resource name of + the attached database configuration in the follower cluster. + :type attached_database_configuration_name: str + :ivar database_name: The database name owned by this cluster that was + followed. * in case following all databases. + :vartype database_name: str + """ + + _validation = { + 'cluster_resource_id': {'required': True}, + 'attached_database_configuration_name': {'required': True}, + 'database_name': {'readonly': True}, + } + + _attribute_map = { + 'cluster_resource_id': {'key': 'clusterResourceId', 'type': 'str'}, + 'attached_database_configuration_name': {'key': 'attachedDatabaseConfigurationName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FollowerDatabaseDefinition, self).__init__(**kwargs) + self.cluster_resource_id = kwargs.get('cluster_resource_id', None) + self.attached_database_configuration_name = kwargs.get('attached_database_configuration_name', None) + self.database_name = None + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: 'None', + 'SystemAssigned' + :type type: str or ~azure.mgmt.kusto.models.IdentityType + :param user_assigned_identities: The list of user identities associated + with the Kusto cluster. The user identity dictionary key references will + be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.kusto.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'IdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class IotHubDataConnection(DataConnection): """Class representing an iot hub data connection. @@ -1152,7 +1285,7 @@ class IotHubDataConnection(DataConnection): :param data_format: The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON', - 'AVRO' + 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat :param event_system_properties: System properties of the iot hub :type event_system_properties: list[str] @@ -1198,6 +1331,38 @@ def __init__(self, **kwargs): self.kind = 'IotHub' +class KeyVaultProperties(Model): + """Properties of the key vault. + + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. The name of the key vault key. + :type key_name: str + :param key_version: Required. The version of the key vault key. + :type key_version: str + :param key_vault_uri: Required. The Uri of the key vault. + :type key_vault_uri: str + """ + + _validation = { + 'key_name': {'required': True}, + 'key_version': {'required': True}, + 'key_vault_uri': {'required': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'key_vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyVaultProperties, self).__init__(**kwargs) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + self.key_vault_uri = kwargs.get('key_vault_uri', None) + + class Operation(Model): """A REST API operation. @@ -1294,6 +1459,153 @@ def __init__(self, **kwargs): self.maximum = kwargs.get('maximum', None) +class ReadOnlyFollowingDatabase(Database): + """Class representing a read only following database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :param kind: Required. Constant filled by server. + :type kind: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :ivar soft_delete_period: The time the data should be kept before it stops + being accessible to queries in TimeSpan. + :vartype soft_delete_period: timedelta + :param hot_cache_period: The time the data should be kept in cache for + fast queries in TimeSpan. + :type hot_cache_period: timedelta + :param statistics: The statistics of the database. + :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + :ivar leader_cluster_resource_id: The name of the leader cluster + :vartype leader_cluster_resource_id: str + :ivar attached_database_configuration_name: The name of the attached + database configuration cluster + :vartype attached_database_configuration_name: str + :ivar principals_modification_kind: The principals modification kind of + the database. Possible values include: 'Union', 'Replace', 'None' + :vartype principals_modification_kind: str or + ~azure.mgmt.kusto.models.PrincipalsModificationKind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'soft_delete_period': {'readonly': True}, + 'leader_cluster_resource_id': {'readonly': True}, + 'attached_database_configuration_name': {'readonly': True}, + 'principals_modification_kind': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, + 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, + 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, + 'leader_cluster_resource_id': {'key': 'properties.leaderClusterResourceId', 'type': 'str'}, + 'attached_database_configuration_name': {'key': 'properties.attachedDatabaseConfigurationName', 'type': 'str'}, + 'principals_modification_kind': {'key': 'properties.principalsModificationKind', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReadOnlyFollowingDatabase, self).__init__(**kwargs) + self.provisioning_state = None + self.soft_delete_period = None + self.hot_cache_period = kwargs.get('hot_cache_period', None) + self.statistics = kwargs.get('statistics', None) + self.leader_cluster_resource_id = None + self.attached_database_configuration_name = None + self.principals_modification_kind = None + self.kind = 'ReadOnlyFollowing' + + +class ReadWriteDatabase(Database): + """Class representing a read write database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :param kind: Required. Constant filled by server. + :type kind: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :param soft_delete_period: The time the data should be kept before it + stops being accessible to queries in TimeSpan. + :type soft_delete_period: timedelta + :param hot_cache_period: The time the data should be kept in cache for + fast queries in TimeSpan. + :type hot_cache_period: timedelta + :param statistics: The statistics of the database. + :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, + 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, + 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, + } + + def __init__(self, **kwargs): + super(ReadWriteDatabase, self).__init__(**kwargs) + self.provisioning_state = None + self.soft_delete_period = kwargs.get('soft_delete_period', None) + self.hot_cache_period = kwargs.get('hot_cache_period', None) + self.statistics = kwargs.get('statistics', None) + self.kind = 'ReadWrite' + + class SkuDescription(Model): """The Kusto SKU description of given resource type. diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models_py3.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models_py3.py index 3befd4da9920..888ba23cc2ed 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models_py3.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_models_py3.py @@ -13,46 +13,44 @@ from msrest.exceptions import HttpOperationError -class AzureCapacity(Model): - """Azure capacity definition. +class Resource(Model): + """Resource. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when + sending a request. - :param scale_type: Required. Scale type. Possible values include: - 'automatic', 'manual', 'none' - :type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType - :param minimum: Required. Minimum allowed capacity. - :type minimum: int - :param maximum: Required. Maximum allowed capacity. - :type maximum: int - :param default: Required. The default capacity that would be used. - :type default: int + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str """ _validation = { - 'scale_type': {'required': True}, - 'minimum': {'required': True}, - 'maximum': {'required': True}, - 'default': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { - 'scale_type': {'key': 'scaleType', 'type': 'str'}, - 'minimum': {'key': 'minimum', 'type': 'int'}, - 'maximum': {'key': 'maximum', 'type': 'int'}, - 'default': {'key': 'default', 'type': 'int'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, scale_type, minimum: int, maximum: int, default: int, **kwargs) -> None: - super(AzureCapacity, self).__init__(**kwargs) - self.scale_type = scale_type - self.minimum = minimum - self.maximum = maximum - self.default = default + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None -class Resource(Model): - """Resource. +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. Variables are only populated by the server, and will be ignored when sending a request. @@ -80,10 +78,118 @@ class Resource(Model): } def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None + super(ProxyResource, self).__init__(**kwargs) + + +class AttachedDatabaseConfiguration(ProxyResource): + """Class representing an attached database configuration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :param database_name: Required. The name of the database which you would + like to attach, use * if you want to follow all current and future + databases. + :type database_name: str + :param cluster_resource_id: Required. The resource id of the cluster where + the databases you would like to attach reside. + :type cluster_resource_id: str + :ivar attached_database_names: The list of databases from the + clusterResourceId which are currently attached to the cluster. + :vartype attached_database_names: list[str] + :param default_principals_modification_kind: Required. The default + principals modification kind. Possible values include: 'Union', 'Replace', + 'None' + :type default_principals_modification_kind: str or + ~azure.mgmt.kusto.models.DefaultPrincipalsModificationKind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'database_name': {'required': True}, + 'cluster_resource_id': {'required': True}, + 'attached_database_names': {'readonly': True}, + 'default_principals_modification_kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'cluster_resource_id': {'key': 'properties.clusterResourceId', 'type': 'str'}, + 'attached_database_names': {'key': 'properties.attachedDatabaseNames', 'type': '[str]'}, + 'default_principals_modification_kind': {'key': 'properties.defaultPrincipalsModificationKind', 'type': 'str'}, + } + + def __init__(self, *, database_name: str, cluster_resource_id: str, default_principals_modification_kind, location: str=None, **kwargs) -> None: + super(AttachedDatabaseConfiguration, self).__init__(**kwargs) + self.location = location + self.provisioning_state = None + self.database_name = database_name + self.cluster_resource_id = cluster_resource_id + self.attached_database_names = None + self.default_principals_modification_kind = default_principals_modification_kind + + +class AzureCapacity(Model): + """Azure capacity definition. + + All required parameters must be populated in order to send to Azure. + + :param scale_type: Required. Scale type. Possible values include: + 'automatic', 'manual', 'none' + :type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType + :param minimum: Required. Minimum allowed capacity. + :type minimum: int + :param maximum: Required. Maximum allowed capacity. + :type maximum: int + :param default: Required. The default capacity that would be used. + :type default: int + """ + + _validation = { + 'scale_type': {'required': True}, + 'minimum': {'required': True}, + 'maximum': {'required': True}, + 'default': {'required': True}, + } + + _attribute_map = { + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + } + + def __init__(self, *, scale_type, minimum: int, maximum: int, default: int, **kwargs) -> None: + super(AzureCapacity, self).__init__(**kwargs) + self.scale_type = scale_type + self.minimum = minimum + self.maximum = maximum + self.default = default class AzureEntityResource(Resource): @@ -184,6 +290,36 @@ def __init__(self, *, name, tier, capacity: int=None, **kwargs) -> None: self.tier = tier +class CheckNameRequest(Model): + """The result returned from a database check name availability request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Resource name. + :type name: str + :param type: Required. The type of resource, for instance + Microsoft.Kusto/clusters/databases. Possible values include: + 'Microsoft.Kusto/clusters/databases', + 'Microsoft.Kusto/clusters/attachedDatabaseConfigurations' + :type type: str or ~azure.mgmt.kusto.models.Type + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'Type'}, + } + + def __init__(self, *, name: str, type, **kwargs) -> None: + super(CheckNameRequest, self).__init__(**kwargs) + self.name = name + self.type = type + + class CheckNameResult(Model): """The result returned from a check name availability request. @@ -341,6 +477,8 @@ class Cluster(TrackedResource): :type sku: ~azure.mgmt.kusto.models.AzureSku :param zones: The availability zones of the cluster. :type zones: list[str] + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.kusto.models.Identity :ivar state: The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' @@ -368,6 +506,9 @@ class Cluster(TrackedResource): :param virtual_network_configuration: Virtual network definition. :type virtual_network_configuration: ~azure.mgmt.kusto.models.VirtualNetworkConfiguration + :param key_vault_properties: KeyVault properties for the cluster + encryption. + :type key_vault_properties: ~azure.mgmt.kusto.models.KeyVaultProperties """ _validation = { @@ -390,6 +531,7 @@ class Cluster(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -399,12 +541,14 @@ class Cluster(TrackedResource): 'enable_disk_encryption': {'key': 'properties.enableDiskEncryption', 'type': 'bool'}, 'enable_streaming_ingest': {'key': 'properties.enableStreamingIngest', 'type': 'bool'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, + 'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'}, } - def __init__(self, *, location: str, sku, tags=None, zones=None, trusted_external_tenants=None, optimized_autoscale=None, enable_disk_encryption: bool=None, enable_streaming_ingest: bool=False, virtual_network_configuration=None, **kwargs) -> None: + def __init__(self, *, location: str, sku, tags=None, zones=None, identity=None, trusted_external_tenants=None, optimized_autoscale=None, enable_disk_encryption: bool=None, enable_streaming_ingest: bool=False, virtual_network_configuration=None, key_vault_properties=None, **kwargs) -> None: super(Cluster, self).__init__(tags=tags, location=location, **kwargs) self.sku = sku self.zones = zones + self.identity = identity self.state = None self.provisioning_state = None self.uri = None @@ -414,6 +558,7 @@ def __init__(self, *, location: str, sku, tags=None, zones=None, trusted_externa self.enable_disk_encryption = enable_disk_encryption self.enable_streaming_ingest = enable_streaming_ingest self.virtual_network_configuration = virtual_network_configuration + self.key_vault_properties = key_vault_properties class ClusterCheckNameRequest(Model): @@ -468,6 +613,8 @@ class ClusterUpdate(Resource): :type location: str :param sku: The SKU of the cluster. :type sku: ~azure.mgmt.kusto.models.AzureSku + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.kusto.models.Identity :ivar state: The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' @@ -495,6 +642,9 @@ class ClusterUpdate(Resource): :param virtual_network_configuration: Virtual network definition. :type virtual_network_configuration: ~azure.mgmt.kusto.models.VirtualNetworkConfiguration + :param key_vault_properties: KeyVault properties for the cluster + encryption. + :type key_vault_properties: ~azure.mgmt.kusto.models.KeyVaultProperties """ _validation = { @@ -514,6 +664,7 @@ class ClusterUpdate(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -523,13 +674,15 @@ class ClusterUpdate(Resource): 'enable_disk_encryption': {'key': 'properties.enableDiskEncryption', 'type': 'bool'}, 'enable_streaming_ingest': {'key': 'properties.enableStreamingIngest', 'type': 'bool'}, 'virtual_network_configuration': {'key': 'properties.virtualNetworkConfiguration', 'type': 'VirtualNetworkConfiguration'}, + 'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'}, } - def __init__(self, *, tags=None, location: str=None, sku=None, trusted_external_tenants=None, optimized_autoscale=None, enable_disk_encryption: bool=None, enable_streaming_ingest: bool=False, virtual_network_configuration=None, **kwargs) -> None: + def __init__(self, *, tags=None, location: str=None, sku=None, identity=None, trusted_external_tenants=None, optimized_autoscale=None, enable_disk_encryption: bool=None, enable_streaming_ingest: bool=False, virtual_network_configuration=None, key_vault_properties=None, **kwargs) -> None: super(ClusterUpdate, self).__init__(**kwargs) self.tags = tags self.location = location self.sku = sku + self.identity = identity self.state = None self.provisioning_state = None self.uri = None @@ -539,47 +692,20 @@ def __init__(self, *, tags=None, location: str=None, sku=None, trusted_external_ self.enable_disk_encryption = enable_disk_encryption self.enable_streaming_ingest = enable_streaming_ingest self.virtual_network_configuration = virtual_network_configuration - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) + self.key_vault_properties = key_vault_properties class Database(ProxyResource): """Class representing a Kusto database. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ReadWriteDatabase, ReadOnlyFollowingDatabase + Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str @@ -590,26 +716,15 @@ class Database(ProxyResource): :vartype type: str :param location: Resource location. :type location: str - :ivar provisioning_state: The provisioned state of the resource. Possible - values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', - 'Moving' - :vartype provisioning_state: str or - ~azure.mgmt.kusto.models.ProvisioningState - :param soft_delete_period: The time the data should be kept before it - stops being accessible to queries in TimeSpan. - :type soft_delete_period: timedelta - :param hot_cache_period: The time the data should be kept in cache for - fast queries in TimeSpan. - :type hot_cache_period: timedelta - :param statistics: The statistics of the database. - :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + :param kind: Required. Constant filled by server. + :type kind: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -617,52 +732,18 @@ class Database(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, - 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, - 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - } - - def __init__(self, *, location: str=None, soft_delete_period=None, hot_cache_period=None, statistics=None, **kwargs) -> None: - super(Database, self).__init__(**kwargs) - self.location = location - self.provisioning_state = None - self.soft_delete_period = soft_delete_period - self.hot_cache_period = hot_cache_period - self.statistics = statistics - - -class DatabaseCheckNameRequest(Model): - """The result returned from a database check name availability request. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Database name. - :type name: str - :ivar type: Required. The type of resource, - Microsoft.Kusto/clusters/databases. Default value: - "Microsoft.Kusto/clusters/databases" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, + 'kind': {'key': 'kind', 'type': 'str'}, } - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + _subtype_map = { + 'kind': {'ReadWrite': 'ReadWriteDatabase', 'ReadOnlyFollowing': 'ReadOnlyFollowingDatabase'} } - type = "Microsoft.Kusto/clusters/databases" - - def __init__(self, *, name: str, **kwargs) -> None: - super(DatabaseCheckNameRequest, self).__init__(**kwargs) - self.name = name + def __init__(self, *, location: str=None, **kwargs) -> None: + super(Database, self).__init__(**kwargs) + self.location = location + self.kind = None + self.kind = 'Database' class DatabasePrincipal(Model): @@ -769,64 +850,6 @@ def __init__(self, *, size: float=None, **kwargs) -> None: self.size = size -class DatabaseUpdate(Resource): - """Class representing an update to a Kusto database. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param location: Resource location. - :type location: str - :ivar provisioning_state: The provisioned state of the resource. Possible - values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', - 'Moving' - :vartype provisioning_state: str or - ~azure.mgmt.kusto.models.ProvisioningState - :param soft_delete_period: The time the data should be kept before it - stops being accessible to queries in TimeSpan. - :type soft_delete_period: timedelta - :param hot_cache_period: The time the data should be kept in cache for - fast queries in TimeSpan. - :type hot_cache_period: timedelta - :param statistics: The statistics of the database. - :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, - 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, - 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, - } - - def __init__(self, *, location: str=None, soft_delete_period=None, hot_cache_period=None, statistics=None, **kwargs) -> None: - super(DatabaseUpdate, self).__init__(**kwargs) - self.location = location - self.provisioning_state = None - self.soft_delete_period = soft_delete_period - self.hot_cache_period = hot_cache_period - self.statistics = statistics - - class DataConnection(ProxyResource): """Class representing an data connection. @@ -1003,7 +1026,7 @@ class EventGridDataConnection(DataConnection): :param data_format: Required. The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', - 'SINGLEJSON', 'AVRO' + 'SINGLEJSON', 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat """ @@ -1078,7 +1101,7 @@ class EventHubDataConnection(DataConnection): :param data_format: The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON', - 'AVRO' + 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat :param event_system_properties: System properties of the event hub :type event_system_properties: list[str] @@ -1118,6 +1141,116 @@ def __init__(self, *, event_hub_resource_id: str, consumer_group: str, location: self.kind = 'EventHub' +class FollowerDatabaseDefinition(Model): + """A class representing follower database request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param cluster_resource_id: Required. Resource id of the cluster that + follows a database owned by this cluster. + :type cluster_resource_id: str + :param attached_database_configuration_name: Required. Resource name of + the attached database configuration in the follower cluster. + :type attached_database_configuration_name: str + :ivar database_name: The database name owned by this cluster that was + followed. * in case following all databases. + :vartype database_name: str + """ + + _validation = { + 'cluster_resource_id': {'required': True}, + 'attached_database_configuration_name': {'required': True}, + 'database_name': {'readonly': True}, + } + + _attribute_map = { + 'cluster_resource_id': {'key': 'clusterResourceId', 'type': 'str'}, + 'attached_database_configuration_name': {'key': 'attachedDatabaseConfigurationName', 'type': 'str'}, + 'database_name': {'key': 'databaseName', 'type': 'str'}, + } + + def __init__(self, *, cluster_resource_id: str, attached_database_configuration_name: str, **kwargs) -> None: + super(FollowerDatabaseDefinition, self).__init__(**kwargs) + self.cluster_resource_id = cluster_resource_id + self.attached_database_configuration_name = attached_database_configuration_name + self.database_name = None + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: 'None', + 'SystemAssigned' + :type type: str or ~azure.mgmt.kusto.models.IdentityType + :param user_assigned_identities: The list of user identities associated + with the Kusto cluster. The user identity dictionary key references will + be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.kusto.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'IdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type, user_assigned_identities=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class IotHubDataConnection(DataConnection): """Class representing an iot hub data connection. @@ -1152,7 +1285,7 @@ class IotHubDataConnection(DataConnection): :param data_format: The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON', - 'AVRO' + 'AVRO', 'TSVE' :type data_format: str or ~azure.mgmt.kusto.models.DataFormat :param event_system_properties: System properties of the iot hub :type event_system_properties: list[str] @@ -1198,6 +1331,38 @@ def __init__(self, *, iot_hub_resource_id: str, consumer_group: str, shared_acce self.kind = 'IotHub' +class KeyVaultProperties(Model): + """Properties of the key vault. + + All required parameters must be populated in order to send to Azure. + + :param key_name: Required. The name of the key vault key. + :type key_name: str + :param key_version: Required. The version of the key vault key. + :type key_version: str + :param key_vault_uri: Required. The Uri of the key vault. + :type key_vault_uri: str + """ + + _validation = { + 'key_name': {'required': True}, + 'key_version': {'required': True}, + 'key_vault_uri': {'required': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'key_vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, + } + + def __init__(self, *, key_name: str, key_version: str, key_vault_uri: str, **kwargs) -> None: + super(KeyVaultProperties, self).__init__(**kwargs) + self.key_name = key_name + self.key_version = key_version + self.key_vault_uri = key_vault_uri + + class Operation(Model): """A REST API operation. @@ -1294,6 +1459,153 @@ def __init__(self, *, version: int, is_enabled: bool, minimum: int, maximum: int self.maximum = maximum +class ReadOnlyFollowingDatabase(Database): + """Class representing a read only following database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :param kind: Required. Constant filled by server. + :type kind: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :ivar soft_delete_period: The time the data should be kept before it stops + being accessible to queries in TimeSpan. + :vartype soft_delete_period: timedelta + :param hot_cache_period: The time the data should be kept in cache for + fast queries in TimeSpan. + :type hot_cache_period: timedelta + :param statistics: The statistics of the database. + :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + :ivar leader_cluster_resource_id: The name of the leader cluster + :vartype leader_cluster_resource_id: str + :ivar attached_database_configuration_name: The name of the attached + database configuration cluster + :vartype attached_database_configuration_name: str + :ivar principals_modification_kind: The principals modification kind of + the database. Possible values include: 'Union', 'Replace', 'None' + :vartype principals_modification_kind: str or + ~azure.mgmt.kusto.models.PrincipalsModificationKind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'soft_delete_period': {'readonly': True}, + 'leader_cluster_resource_id': {'readonly': True}, + 'attached_database_configuration_name': {'readonly': True}, + 'principals_modification_kind': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, + 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, + 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, + 'leader_cluster_resource_id': {'key': 'properties.leaderClusterResourceId', 'type': 'str'}, + 'attached_database_configuration_name': {'key': 'properties.attachedDatabaseConfigurationName', 'type': 'str'}, + 'principals_modification_kind': {'key': 'properties.principalsModificationKind', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, hot_cache_period=None, statistics=None, **kwargs) -> None: + super(ReadOnlyFollowingDatabase, self).__init__(location=location, **kwargs) + self.provisioning_state = None + self.soft_delete_period = None + self.hot_cache_period = hot_cache_period + self.statistics = statistics + self.leader_cluster_resource_id = None + self.attached_database_configuration_name = None + self.principals_modification_kind = None + self.kind = 'ReadOnlyFollowing' + + +class ReadWriteDatabase(Database): + """Class representing a read write database. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param location: Resource location. + :type location: str + :param kind: Required. Constant filled by server. + :type kind: str + :ivar provisioning_state: The provisioned state of the resource. Possible + values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', + 'Moving' + :vartype provisioning_state: str or + ~azure.mgmt.kusto.models.ProvisioningState + :param soft_delete_period: The time the data should be kept before it + stops being accessible to queries in TimeSpan. + :type soft_delete_period: timedelta + :param hot_cache_period: The time the data should be kept in cache for + fast queries in TimeSpan. + :type hot_cache_period: timedelta + :param statistics: The statistics of the database. + :type statistics: ~azure.mgmt.kusto.models.DatabaseStatistics + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'soft_delete_period': {'key': 'properties.softDeletePeriod', 'type': 'duration'}, + 'hot_cache_period': {'key': 'properties.hotCachePeriod', 'type': 'duration'}, + 'statistics': {'key': 'properties.statistics', 'type': 'DatabaseStatistics'}, + } + + def __init__(self, *, location: str=None, soft_delete_period=None, hot_cache_period=None, statistics=None, **kwargs) -> None: + super(ReadWriteDatabase, self).__init__(location=location, **kwargs) + self.provisioning_state = None + self.soft_delete_period = soft_delete_period + self.hot_cache_period = hot_cache_period + self.statistics = statistics + self.kind = 'ReadWrite' + + class SkuDescription(Model): """The Kusto SKU description of given resource type. diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_paged_models.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_paged_models.py index f906cb2d1de8..326b581fd46b 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_paged_models.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class FollowerDatabaseDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`FollowerDatabaseDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FollowerDatabaseDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(FollowerDatabaseDefinitionPaged, self).__init__(*args, **kwargs) class ClusterPaged(Paged): """ A paging container for iterating over a list of :class:`Cluster ` object @@ -77,6 +90,19 @@ class DatabasePrincipalPaged(Paged): def __init__(self, *args, **kwargs): super(DatabasePrincipalPaged, self).__init__(*args, **kwargs) +class AttachedDatabaseConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`AttachedDatabaseConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AttachedDatabaseConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(AttachedDatabaseConfigurationPaged, self).__init__(*args, **kwargs) class DataConnectionPaged(Paged): """ A paging container for iterating over a list of :class:`DataConnection ` object diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/__init__.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/__init__.py index d0aeb8c19c4d..9f5475ee05e1 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/__init__.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/__init__.py @@ -11,12 +11,14 @@ from ._clusters_operations import ClustersOperations from ._databases_operations import DatabasesOperations +from ._attached_database_configurations_operations import AttachedDatabaseConfigurationsOperations from ._data_connections_operations import DataConnectionsOperations from ._operations import Operations __all__ = [ 'ClustersOperations', 'DatabasesOperations', + 'AttachedDatabaseConfigurationsOperations', 'DataConnectionsOperations', 'Operations', ] diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_attached_database_configurations_operations.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_attached_database_configurations_operations.py new file mode 100644 index 000000000000..05ff061d21e3 --- /dev/null +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_attached_database_configurations_operations.py @@ -0,0 +1,381 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class AttachedDatabaseConfigurationsOperations(object): + """AttachedDatabaseConfigurationsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API Version. Constant value: "2019-09-07". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-09-07" + + self.config = config + + def list_by_cluster( + self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): + """Returns the list of attached database configurations of the given Kusto + cluster. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AttachedDatabaseConfiguration + :rtype: + ~azure.mgmt.kusto.models.AttachedDatabaseConfigurationPaged[~azure.mgmt.kusto.models.AttachedDatabaseConfiguration] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_cluster.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.AttachedDatabaseConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations'} + + def get( + self, resource_group_name, cluster_name, attached_database_configuration_name, custom_headers=None, raw=False, **operation_config): + """Returns an attached database configuration. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param attached_database_configuration_name: The name of the attached + database configuration. + :type attached_database_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AttachedDatabaseConfiguration or ClientRawResponse if + raw=true + :rtype: ~azure.mgmt.kusto.models.AttachedDatabaseConfiguration or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('AttachedDatabaseConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} + + + def _create_or_update_initial( + self, resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'AttachedDatabaseConfiguration') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AttachedDatabaseConfiguration', response) + if response.status_code == 201: + deserialized = self._deserialize('AttachedDatabaseConfiguration', response) + if response.status_code == 202: + deserialized = self._deserialize('AttachedDatabaseConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, cluster_name, attached_database_configuration_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an attached database configuration. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param attached_database_configuration_name: The name of the attached + database configuration. + :type attached_database_configuration_name: str + :param parameters: The database parameters supplied to the + CreateOrUpdate operation. + :type parameters: + ~azure.mgmt.kusto.models.AttachedDatabaseConfiguration + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + AttachedDatabaseConfiguration or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.kusto.models.AttachedDatabaseConfiguration] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.kusto.models.AttachedDatabaseConfiguration]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + attached_database_configuration_name=attached_database_configuration_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('AttachedDatabaseConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} + + + def _delete_initial( + self, resource_group_name, cluster_name, attached_database_configuration_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, cluster_name, attached_database_configuration_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the attached database configuration with the given name. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param attached_database_configuration_name: The name of the attached + database configuration. + :type attached_database_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + attached_database_configuration_name=attached_database_configuration_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_clusters_operations.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_clusters_operations.py index f6f36d829cd1..91f51fd70e45 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_clusters_operations.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_clusters_operations.py @@ -27,7 +27,7 @@ class ClustersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2019-05-15". + :ivar api_version: Client API Version. Constant value: "2019-09-07". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-05-15" + self.api_version = "2019-09-07" self.config = config @@ -241,7 +241,7 @@ def _update_initial( request = self._client.patch(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -252,6 +252,8 @@ def _update_initial( deserialized = self._deserialize('Cluster', response) if response.status_code == 201: deserialized = self._deserialize('Cluster', response) + if response.status_code == 202: + deserialized = self._deserialize('Cluster', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -551,6 +553,174 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'} + def list_follower_databases( + self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): + """Returns a list of databases that are owned by this cluster and were + followed by another cluster. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of FollowerDatabaseDefinition + :rtype: + ~azure.mgmt.kusto.models.FollowerDatabaseDefinitionPaged[~azure.mgmt.kusto.models.FollowerDatabaseDefinition] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_follower_databases.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.FollowerDatabaseDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} + + + def _detach_follower_databases_initial( + self, resource_group_name, cluster_name, cluster_resource_id, attached_database_configuration_name, custom_headers=None, raw=False, **operation_config): + follower_database_to_remove = models.FollowerDatabaseDefinition(cluster_resource_id=cluster_resource_id, attached_database_configuration_name=attached_database_configuration_name) + + # Construct URL + url = self.detach_follower_databases.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(follower_database_to_remove, 'FollowerDatabaseDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def detach_follower_databases( + self, resource_group_name, cluster_name, cluster_resource_id, attached_database_configuration_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Detaches all followers of a database owned by this cluster. + + :param resource_group_name: The name of the resource group containing + the Kusto cluster. + :type resource_group_name: str + :param cluster_name: The name of the Kusto cluster. + :type cluster_name: str + :param cluster_resource_id: Resource id of the cluster that follows a + database owned by this cluster. + :type cluster_resource_id: str + :param attached_database_configuration_name: Resource name of the + attached database configuration in the follower cluster. + :type attached_database_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._detach_follower_databases_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + cluster_resource_id=cluster_resource_id, + attached_database_configuration_name=attached_database_configuration_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + detach_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} + def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): """Lists all Kusto clusters within a resource group. diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py index 746d1ef28f9e..5fe2df10be1b 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_data_connections_operations.py @@ -27,7 +27,7 @@ class DataConnectionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2019-05-15". + :ivar api_version: Client API Version. Constant value: "2019-09-07". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-05-15" + self.api_version = "2019-09-07" self.config = config @@ -382,6 +382,8 @@ def _create_or_update_initial( deserialized = self._deserialize('DataConnection', response) if response.status_code == 201: deserialized = self._deserialize('DataConnection', response) + if response.status_code == 202: + deserialized = self._deserialize('DataConnection', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -494,6 +496,8 @@ def _update_initial( deserialized = self._deserialize('DataConnection', response) if response.status_code == 201: deserialized = self._deserialize('DataConnection', response) + if response.status_code == 202: + deserialized = self._deserialize('DataConnection', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_databases_operations.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_databases_operations.py index 3e81105fa0de..b206b2ec40f5 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_databases_operations.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_databases_operations.py @@ -27,7 +27,7 @@ class DatabasesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2019-05-15". + :ivar api_version: Client API Version. Constant value: "2019-09-07". """ models = models @@ -37,12 +37,12 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-05-15" + self.api_version = "2019-09-07" self.config = config def check_name_availability( - self, resource_group_name, cluster_name, name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, cluster_name, name, type, custom_headers=None, raw=False, **operation_config): """Checks that the database name is valid and is not already in use. :param resource_group_name: The name of the resource group containing @@ -50,8 +50,13 @@ def check_name_availability( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param name: Database name. + :param name: Resource name. :type name: str + :param type: The type of resource, for instance + Microsoft.Kusto/clusters/databases. Possible values include: + 'Microsoft.Kusto/clusters/databases', + 'Microsoft.Kusto/clusters/attachedDatabaseConfigurations' + :type type: str or ~azure.mgmt.kusto.models.Type :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -62,7 +67,7 @@ def check_name_availability( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - database_name = models.DatabaseCheckNameRequest(name=name) + resource_name = models.CheckNameRequest(name=name, type=type) # Construct URL url = self.check_name_availability.metadata['url'] @@ -89,7 +94,7 @@ def check_name_availability( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(database_name, 'DatabaseCheckNameRequest') + body_content = self._serialize.body(resource_name, 'CheckNameRequest') # Construct and send request request = self._client.post(url, query_parameters, header_parameters, body_content) @@ -295,6 +300,8 @@ def _create_or_update_initial( deserialized = self._deserialize('Database', response) if response.status_code == 201: deserialized = self._deserialize('Database', response) + if response.status_code == 202: + deserialized = self._deserialize('Database', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -386,7 +393,7 @@ def _update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(parameters, 'DatabaseUpdate') + body_content = self._serialize.body(parameters, 'Database') # Construct and send request request = self._client.patch(url, query_parameters, header_parameters, body_content) @@ -403,6 +410,8 @@ def _update_initial( deserialized = self._deserialize('Database', response) if response.status_code == 201: deserialized = self._deserialize('Database', response) + if response.status_code == 202: + deserialized = self._deserialize('Database', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -423,7 +432,7 @@ def update( :type database_name: str :param parameters: The database parameters supplied to the Update operation. - :type parameters: ~azure.mgmt.kusto.models.DatabaseUpdate + :type parameters: ~azure.mgmt.kusto.models.Database :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_operations.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_operations.py index a0453a5f0852..482c43707c41 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_operations.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/operations/_operations.py @@ -25,7 +25,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2019-05-15". + :ivar api_version: Client API Version. Constant value: "2019-09-07". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-05-15" + self.api_version = "2019-09-07" self.config = config diff --git a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/version.py b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/version.py index 85da2c00c1a6..152c552babee 100644 --- a/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/version.py +++ b/sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/version.py @@ -9,5 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.4.0" - +VERSION = "0.5.0" diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py index 9ad754b92b14..7ae31d69679c 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py @@ -317,9 +317,10 @@ def format_shared_key_credential(account, credential): def parse_connection_str(conn_str, credential, service): conn_str = conn_str.rstrip(";") - conn_settings = dict( # pylint: disable=consider-using-dict-comprehension - [s.split("=", 1) for s in conn_str.split(";")] - ) + conn_settings = [s.split("=", 1) for s in conn_str.split(";")] + if any(len(tup) != 2 for tup in conn_settings): + raise ValueError("Connection string is either blank or malformed.") + conn_settings = dict(conn_settings) endpoints = _SERVICE_PARAMS[service] primary = None secondary = None diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_client.py b/sdk/storage/azure-storage-blob/tests/test_blob_client.py index 9c1393206320..18a4dcd38bf1 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_client.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_client.py @@ -559,5 +559,20 @@ def callback(response): custom_headers = {'User-Agent': 'customer_user_agent'} service.get_service_properties(raw_response_hook=callback, headers=custom_headers) + def test_error_with_malformed_conn_str(self): + # Arrange + for conn_str in ["", "foobar", "foo;bar;baz", ";", "foobar=baz=foo" , "foo=;bar=;", "=", "=;=="]: + for service_type in SERVICES.items(): + # Act + with self.assertRaises(ValueError) as e: + service = service_type[0].from_connection_string(conn_str, blob_name="test", container_name="foo/bar") + + if conn_str in("", "foobar", "foo;bar;baz", ";"): + self.assertEqual( + str(e.exception), "Connection string is either blank or malformed.") + elif conn_str in ("foobar=baz=foo" , "foo=;bar=;", "=", "=;=="): + self.assertEqual( + str(e.exception), "Connection string missing required connection details.") + # ------------------------------------------------------------------------------ diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/base_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/base_client.py index 9ad754b92b14..7ae31d69679c 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/base_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/base_client.py @@ -317,9 +317,10 @@ def format_shared_key_credential(account, credential): def parse_connection_str(conn_str, credential, service): conn_str = conn_str.rstrip(";") - conn_settings = dict( # pylint: disable=consider-using-dict-comprehension - [s.split("=", 1) for s in conn_str.split(";")] - ) + conn_settings = [s.split("=", 1) for s in conn_str.split(";")] + if any(len(tup) != 2 for tup in conn_settings): + raise ValueError("Connection string is either blank or malformed.") + conn_settings = dict(conn_settings) endpoints = _SERVICE_PARAMS[service] primary = None secondary = None diff --git a/sdk/storage/azure-storage-file-share/tests/test_file_client.py b/sdk/storage/azure-storage-file-share/tests/test_file_client.py index 2a0cf4e43db7..b2139249a434 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_file_client.py +++ b/sdk/storage/azure-storage-file-share/tests/test_file_client.py @@ -401,6 +401,21 @@ def callback(response): custom_headers = {'User-Agent': 'customer_user_agent'} service.get_service_properties(raw_response_hook=callback, headers=custom_headers) + def test_error_with_malformed_conn_str(self): + # Arrange + + for conn_str in ["", "foobar", "foobar=baz=foo", "foo;bar;baz", "foo=;bar=;", "=", ";", "=;=="]: + for service_type in SERVICES.items(): + # Act + with self.assertRaises(ValueError) as e: + service = service_type[0].from_connection_string(conn_str, share_name="test", directory_path="foo/bar", file_path="temp/dat") + + if conn_str in("", "foobar", "foo;bar;baz", ";"): + self.assertEqual( + str(e.exception), "Connection string is either blank or malformed.") + elif conn_str in ("foobar=baz=foo" , "foo=;bar=;", "=", "=;=="): + self.assertEqual( + str(e.exception), "Connection string missing required connection details.") # ------------------------------------------------------------------------------ if __name__ == '__main__': diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py index 9ad754b92b14..7ae31d69679c 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py @@ -317,9 +317,10 @@ def format_shared_key_credential(account, credential): def parse_connection_str(conn_str, credential, service): conn_str = conn_str.rstrip(";") - conn_settings = dict( # pylint: disable=consider-using-dict-comprehension - [s.split("=", 1) for s in conn_str.split(";")] - ) + conn_settings = [s.split("=", 1) for s in conn_str.split(";")] + if any(len(tup) != 2 for tup in conn_settings): + raise ValueError("Connection string is either blank or malformed.") + conn_settings = dict(conn_settings) endpoints = _SERVICE_PARAMS[service] primary = None secondary = None diff --git a/sdk/storage/azure-storage-queue/tests/test_queue_client.py b/sdk/storage/azure-storage-queue/tests/test_queue_client.py index 47c36d7e2339..e4b21e8120c4 100644 --- a/sdk/storage/azure-storage-queue/tests/test_queue_client.py +++ b/sdk/storage/azure-storage-queue/tests/test_queue_client.py @@ -458,6 +458,23 @@ def test_create_queue_client_with_complete_queue_url(self, resource_group, locat # Assert self.assertEqual(service.scheme, 'https') self.assertEqual(service.queue_name, 'bar') + + def test_error_with_malformed_conn_str(self): + # Arrange + + for conn_str in ["", "foobar", "foobar=baz=foo", "foo;bar;baz", "foo=;bar=;", "=", ";", "=;=="]: + for service_type in SERVICES.items(): + # Act + with self.assertRaises(ValueError) as e: + service = service_type[0].from_connection_string(conn_str, queue_name="test") + + if conn_str in("", "foobar", "foo;bar;baz", ";"): + self.assertEqual( + str(e.exception), "Connection string is either blank or malformed.") + elif conn_str in ("foobar=baz=foo" , "foo=;bar=;", "=", "=;=="): + self.assertEqual( + str(e.exception), "Connection string missing required connection details.") + # ------------------------------------------------------------------------------ if __name__ == '__main__': unittest.main() diff --git a/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py b/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py index 57e1ba6b9600..0fb01d875846 100644 --- a/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py +++ b/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py @@ -52,6 +52,7 @@ def create_resource(self, name, **kwargs): 'sku': {'name': self.sku}, 'location': self.location, 'kind': self.kind, + 'enable_https_traffic_only': True, } ) self.resource = storage_async_operation.result()