diff --git a/src/storage-preview/HISTORY.rst b/src/storage-preview/HISTORY.rst index d62af83fc11..4843355046f 100644 --- a/src/storage-preview/HISTORY.rst +++ b/src/storage-preview/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +0.2.9 (2019-10-31) +++++++++++++++++ +* Integrate Azcopy v10.3.1 +* Add `az storage blob directory` command group + 0.2.8 (2019-7-5) ++++++++++++++++ * Remove file-add command argument diff --git a/src/storage-preview/azext_storage_preview/__init__.py b/src/storage-preview/azext_storage_preview/__init__.py index 489c8d7a3f5..6a5345b38c9 100644 --- a/src/storage-preview/azext_storage_preview/__init__.py +++ b/src/storage-preview/azext_storage_preview/__init__.py @@ -8,7 +8,7 @@ from azure.cli.core.commands import AzCommandGroup, AzArgumentContext import azext_storage_preview._help # pylint: disable=unused-import -from .profiles import CUSTOM_DATA_STORAGE, CUSTOM_MGMT_STORAGE, CUSTOM_MGMT_PREVIEW_STORAGE +from .profiles import CUSTOM_DATA_STORAGE, CUSTOM_MGMT_STORAGE, CUSTOM_MGMT_PREVIEW_STORAGE, CUSTOM_DATA_STORAGE_ADLS class StorageCommandsLoader(AzCommandsLoader): @@ -16,6 +16,7 @@ def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType register_resource_type('latest', CUSTOM_DATA_STORAGE, '2018-03-28') + register_resource_type('latest', CUSTOM_DATA_STORAGE_ADLS, '2019-02-02-preview') register_resource_type('latest', CUSTOM_MGMT_STORAGE, '2018-07-01') register_resource_type('latest', CUSTOM_MGMT_PREVIEW_STORAGE, '2018-03-01-preview') storage_custom = CliCommandType(operations_tmpl='azext_storage_preview.custom#{}') diff --git a/src/storage-preview/azext_storage_preview/_client_factory.py b/src/storage-preview/azext_storage_preview/_client_factory.py index df174fdb3c1..60ac0113cd0 100644 --- a/src/storage-preview/azext_storage_preview/_client_factory.py +++ b/src/storage-preview/azext_storage_preview/_client_factory.py @@ -97,6 +97,19 @@ def blob_data_service_factory(cli_ctx, kwargs): token_credential=kwargs.pop('token_credential', None)) +def adls_blob_data_service_factory(cli_ctx, kwargs): + from .sdkutil import get_adls_blob_service_by_type + blob_type = kwargs.get('blob_type') + blob_service = get_adls_blob_service_by_type(cli_ctx, blob_type) or get_adls_blob_service_by_type(cli_ctx, 'block') + + return generic_data_service_factory(cli_ctx, blob_service, kwargs.pop('account_name', None), + kwargs.pop('account_key', None), + connection_string=kwargs.pop('connection_string', None), + sas_token=kwargs.pop('sas_token', None), + socket_timeout=kwargs.pop('socket_timeout', None), + token_credential=kwargs.pop('token_credential', None)) + + def cloud_storage_account_service_factory(cli_ctx, kwargs): t_cloud_storage_account = get_sdk(cli_ctx, CUSTOM_DATA_STORAGE, 'common#CloudStorageAccount') account_name = kwargs.pop('account_name', None) diff --git a/src/storage-preview/azext_storage_preview/_format.py b/src/storage-preview/azext_storage_preview/_format.py index ebaa934ffaa..a64fb60aade 100644 --- a/src/storage-preview/azext_storage_preview/_format.py +++ b/src/storage-preview/azext_storage_preview/_format.py @@ -52,6 +52,7 @@ def transform_container_show(result): def transform_blob_output(result): return build_table_output(result, [ ('Name', 'name'), + ('IsDirectory', 'metadata.hdi_isfolder'), ('Blob Type', 'properties.blobType'), ('Blob Tier', 'properties.blobTier'), ('Length', 'properties.contentLength'), diff --git a/src/storage-preview/azext_storage_preview/_help.py b/src/storage-preview/azext_storage_preview/_help.py index f2b2c099695..a91ea49293c 100644 --- a/src/storage-preview/azext_storage_preview/_help.py +++ b/src/storage-preview/azext_storage_preview/_help.py @@ -111,3 +111,141 @@ type: command short-summary: Run a command directly using the AzCopy CLI. Please use SAS tokens for authentication. """ + +helps['storage blob directory'] = """ + type: group + short-summary: Manage blob directories in storage account container. + long-summary: To use the directory commands, please make sure your storage account type is StorageV2. +""" + +helps['storage blob directory access'] = """ + type: group + short-summary: Manage the access control properties of a directory when Hierarchical Namespace is enabled +""" + +helps['storage blob directory access set'] = """ + type: command + short-summary: Set the access control properties of a directory. + examples: + - name: Set the access control properties of a directory. + text: az storage blob directory access set -a "user::rwx,group::r--,other::---" -d MyDirectoryPath -c MyContainer --account-name MyStorageAccount +""" + +helps['storage blob directory access show'] = """ + type: command + short-summary: Show the access control properties of a directory. + examples: + - name: Show the access control properties of a directory. + text: az storage blob directory access show -d MyDirectoryPath -c MyContainer --account-name MyStorageAccount +""" + +helps['storage blob directory access update'] = """ + type: command + short-summary: Update the access control properties of a directory. + examples: + - name: Update the access control properties of a directory. + text: az storage blob directory access update --permissions "rwxrwxrwx" -d MyDirectoryPath -c MyContainer --account-name MyStorageAccount +""" + +helps['storage blob directory create'] = """ + type: command + short-summary: Create a storage blob directory in a storage container. + long-summary: Create a storage blob directory which can contain other directories or blobs in a storage container. + examples: + - name: Create a storage blob directory in a storage container. + text: az storage blob directory create -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory delete'] = """ + type: command + short-summary: Delete a storage blob directory in a storage container. + long-summary: > + This operation's behavior is different depending on whether Hierarchical Namespace + is enabled; if yes, then the delete operation can be atomic and instantaneous; + if not, the operation is performed in batches and a continuation token could be returned. + examples: + - name: Delete a storage blob directory in a storage container. + text: az storage blob directory delete -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory download'] = """ + type: command + short-summary: Download blobs to a local file path. + examples: + - name: Download a single blob in a storage blob directory. + text: az storage blob directory download -c MyContainer --account-name MyStorageAccount -s "path/to/blob" -d "" + - name: Download the entire directory in a storage container. + text: az storage blob directory download -c MyContainer --account-name MyStorageAccount -s SourceDirectoryPath -d "" --recursive + - name: Download an entire subdirectory of a storage blob directory. + text: az storage blob directory download -c MyContainer --account-name MyStorageAccount -s "path/to/subdirectory" -d "" --recursive +""" + +helps['storage blob directory exists'] = """ + type: command + short-summary: Check for the existence of a blob directory in a storage container. + examples: + - name: Check for the existence of a blob directory in a storage container. + text: az storage blob directory exists -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory list'] = """ + type: command + short-summary: List blobs and blob subdirectories in a storage directory. + examples: + - name: List blobs and blob subdirectories in a storage directory. + text: az storage blob directory list -c MyContainer -d DestinationDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory metadata'] = """ + type: group + short-summary: Manage directory metadata. +""" + +helps['storage blob directory metadata show'] = """ + type: command + short-summary: Show all user-defined metadata for the specified blob directory. + examples: + - name: Show all user-defined metadata for the specified blob directory. + text: az storage blob directory metadata show -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory metadata update'] = """ + type: command + short-summary: Set user-defined metadata for the specified blob directory as one or more name-value pairs. + examples: + - name: Set user-defined metadata for the specified blob directory as one or more name-value pairs. + text: az storage blob directory metadata update --metadata tag1=value1 -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory move'] = """ + type: command + short-summary: Move a storage directory to another storage blob directory in a storage container. + long-summary: > + Move a storage directory and all its content (which can contain other directories or blobs) to another storage + blob directory in a storage container. This operation's behavior is different depending on whether Hierarchical + Namespace is enabled; if yes, the move operation is atomic and no marker is returned; if not, the operation is + performed in batches and a continuation token could be returned. + examples: + - name: Move a storage directory to another storage blob directory in a storage container. + text: az storage blob directory move -c MyContainer -d DestinationDirectoryPath -s SourceDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory show'] = """ + type: command + short-summary: Show a storage blob directory properties in a storage container. + examples: + - name: Show a storage blob directory properties in a storage container. + text: az storage blob show -c MyContainer -d MyDirectoryPath --account-name MyStorageAccount +""" + +helps['storage blob directory upload'] = """ + type: command + short-summary: Upload blobs to a storage blob directory. + examples: + - name: Upload a single blob to a storage blob directory. + text: az storage blob directory upload -c MyContainer --account-name MyStorageAccount -s "path/to/file" -d directory + - name: Upload a directory to a container. + text: az storage blob directory upload -c MyContainer --account-name MyStorageAccount -s "path/to/directory" -d directory --recursive + - name: Upload the contents of a directory to a container. + text: az storage blob directory upload -c MyContainer --account-name MyStorageAccount -s "path/to/directory/*" -d directory --recursive +""" diff --git a/src/storage-preview/azext_storage_preview/_params.py b/src/storage-preview/azext_storage_preview/_params.py index d6aee4ca850..dc7193cb2d5 100644 --- a/src/storage-preview/azext_storage_preview/_params.py +++ b/src/storage-preview/azext_storage_preview/_params.py @@ -10,7 +10,8 @@ from ._validators import (get_datetime_type, validate_metadata, validate_custom_domain, process_resource_group, validate_bypass, validate_encryption_source, storage_account_key_options, validate_key, validate_azcopy_upload_destination_url, validate_azcopy_download_source_url, - validate_azcopy_target_url) + validate_azcopy_target_url, validate_included_datasets, + validate_blob_directory_download_source_url, validate_blob_directory_upload_destination_url) from .profiles import CUSTOM_MGMT_STORAGE @@ -31,10 +32,8 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem completer=get_resource_name_completion_list('Microsoft.Storage/storageAccounts')) container_name_type = CLIArgumentType(options_list=['--container-name', '-c'], help='The container name.', completer=get_container_name_completions) - directory_type = CLIArgumentType(options_list=['--directory-name', '-d'], help='The directory name.', - completer=get_storage_name_completion_list(t_file_service, - 'list_directories_and_files', - parent='share_name')) + directory_path_type = CLIArgumentType(options_list=['--directory-path', '-d'], help='The directory path name.', + parent='container_name') share_name_type = CLIArgumentType(options_list=['--share-name', '-s'], help='The file share name.', completer=get_storage_name_completion_list(t_file_service, 'list_shares')) table_name_type = CLIArgumentType(options_list=['--table-name', '-t'], @@ -42,7 +41,6 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage') as c: c.argument('container_name', container_name_type) - c.argument('directory_name', directory_type) c.argument('share_name', share_name_type) c.argument('table_name', table_name_type) c.argument('retry_wait', options_list=('--retry-interval',)) @@ -203,3 +201,78 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage azcopy run-command') as c: c.positional('command_args', help='Command to run using azcopy. Please start commands with "azcopy ".') + + # New commands parameters for ADLS Gen2 + with self.argument_context('storage blob directory') as c: + c.argument('directory_path', directory_path_type) + c.argument('container_name', container_name_type) + + with self.argument_context('storage blob directory access') as c: + c.argument('path', directory_path_type) + + with self.argument_context('storage blob directory access set') as c: + c.argument('acl', options_list=['--acl-spec', '-a'], required=True, + help='The ACL specification to set on the path in the format ' + '"[default:]user|group|other:[entity id or UPN]:r|-w|-x|-,' + '[default:]user|group|other:[entity id or UPN]:r|-w|-x|-,...".') + c.ignore('owner', 'group', 'permissions') + + with self.argument_context('storage blob directory access update') as c: + c.argument('acl', options_list=['--acl-spec', '-a'], + help='The ACL specification to set on the path in the format ' + '"[default:]user|group|other:[entity id or UPN]:r|-w|-x|-,' + '[default:]user|group|other:[entity id or UPN]:r|-w|-x|-,...".') + c.argument('owner', help='The owning user for the directory.') + c.argument('group', help='The owning group for the directory.') + c.argument('permissions', help='The POSIX access permissions for the file owner,' + 'the file owning group, and others. Both symbolic (rwxrw-rw-) and 4-digit ' + 'octal notation (e.g. 0766) are supported.') + + with self.argument_context('storage blob directory download') as c: + c.extra('source_container', options_list=['--container', '-c'], required=True, + help='The download source container.') + c.extra('source_path', options_list=['--source-directory', '-s'], required=True, + validator=validate_blob_directory_download_source_url, + help='The download source directory path.') + c.argument('destination', options_list=['--destination-path', '-d'], + help='The destination directory path to download.') + c.argument('recursive', options_list=['--recursive', '-r'], action='store_true', + help='Recursively download blobs. If enabled, all the blobs including the blobs in subdirectories ' + 'will be downloaded.') + c.ignore('source') + + with self.argument_context('storage blob directory exists') as c: + c.argument('blob_name', directory_path_type, required=True) + + with self.argument_context('storage blob directory list') as c: + c.argument('include', validator=validate_included_datasets, default='mc') + + with self.argument_context('storage blob directory metadata') as c: + c.argument('blob_name', directory_path_type) + + with self.argument_context('storage blob directory move') as c: + c.argument('destination_path', options_list=['--destination-path', '-d'], + help='The destination blob directory path.') + c.argument('source_path', options_list=['--source-path', '-s'], + help='The source blob directory path.') + + with self.argument_context('storage blob directory show') as c: + c.argument('directory_name', directory_path_type) + c.argument('container_name', container_name_type) + # c.argument('snapshot', help='The snapshot parameter is an opaque DateTime value that, ' + # 'when present, specifies the directory snapshot to retrieve.') + c.ignore('snapshot') + c.argument('lease-id', help='Required if the blob has an active lease.') + + with self.argument_context('storage blob directory upload') as c: + c.extra('destination_container', options_list=['--container', '-c'], required=True, + help='The upload destination container.') + c.extra('destination_path', options_list=['--destination-directory', '-d'], required=True, + validator=validate_blob_directory_upload_destination_url, + help='The upload destination directory path.') + c.argument('source', options_list=['--source', '-s'], + help='The source file path to upload from.') + c.argument('recursive', options_list=['--recursive', '-r'], action='store_true', + help='Recursively upload blobs. If enabled, all the blobs including the blobs in subdirectories will' + ' be uploaded.') + c.ignore('destination') diff --git a/src/storage-preview/azext_storage_preview/_transformers.py b/src/storage-preview/azext_storage_preview/_transformers.py new file mode 100644 index 00000000000..30268cea8c3 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/_transformers.py @@ -0,0 +1,122 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import base64 +from knack.log import get_logger + +storage_account_key_options = {'primary': 'key1', 'secondary': 'key2'} +logger = get_logger(__name__) + + +def transform_acl_list_output(result): + """ Transform to convert SDK output into a form that is more readily + usable by the CLI and tools such as jpterm. """ + from collections import OrderedDict + new_result = [] + for key in sorted(result.keys()): + new_entry = OrderedDict() + new_entry['Name'] = key + new_entry['Start'] = result[key]['start'] + new_entry['Expiry'] = result[key]['expiry'] + new_entry['Permissions'] = result[key]['permission'] + new_result.append(new_entry) + return new_result + + +def transform_container_permission_output(result): + return {'publicAccess': result.public_access or 'off'} + + +def transform_cors_list_output(result): + from collections import OrderedDict + new_result = [] + for service in sorted(result.keys()): + for i, rule in enumerate(result[service]): + new_entry = OrderedDict() + new_entry['Service'] = service + new_entry['Rule'] = i + 1 + + new_entry['AllowedMethods'] = ', '.join((x for x in rule.allowed_methods)) + new_entry['AllowedOrigins'] = ', '.join((x for x in rule.allowed_origins)) + new_entry['ExposedHeaders'] = ', '.join((x for x in rule.exposed_headers)) + new_entry['AllowedHeaders'] = ', '.join((x for x in rule.allowed_headers)) + new_entry['MaxAgeInSeconds'] = rule.max_age_in_seconds + new_result.append(new_entry) + return new_result + + +def transform_entity_query_output(result): + from collections import OrderedDict + new_results = [] + ignored_keys = ['etag', 'Timestamp', 'RowKey', 'PartitionKey'] + for row in result['items']: + new_entry = OrderedDict() + new_entry['PartitionKey'] = row['PartitionKey'] + new_entry['RowKey'] = row['RowKey'] + other_keys = sorted([x for x in row.keys() if x not in ignored_keys]) + for key in other_keys: + new_entry[key] = row[key] + new_results.append(new_entry) + return new_results + + +def transform_entities_result(result): + for entity in result.items: + transform_entity_result(entity) + return result + + +def transform_entity_result(entity): + for key in entity.keys(): + entity_property = entity[key] + if hasattr(entity_property, 'value') and isinstance(entity_property.value, bytes): + entity_property.value = base64.b64encode(entity_property.value).decode() + return entity + + +def transform_logging_list_output(result): + from collections import OrderedDict + new_result = [] + for key in sorted(result.keys()): + new_entry = OrderedDict() + new_entry['Service'] = key + new_entry['Read'] = str(result[key]['read']) + new_entry['Write'] = str(result[key]['write']) + new_entry['Delete'] = str(result[key]['delete']) + new_entry['RetentionPolicy'] = str(result[key]['retentionPolicy']['days']) + new_result.append(new_entry) + return new_result + + +def transform_metrics_list_output(result): + from collections import OrderedDict + new_result = [] + for service in sorted(result.keys()): + service_name = service + for interval in sorted(result[service].keys()): + item = result[service][interval] + new_entry = OrderedDict() + new_entry['Service'] = service_name + service_name = '' + new_entry['Interval'] = str(interval) + new_entry['Enabled'] = str(item['enabled']) + new_entry['IncludeApis'] = str(item['includeApis']) + new_entry['RetentionPolicy'] = str(item['retentionPolicy']['days']) + new_result.append(new_entry) + return new_result + + +def create_boolean_result_output_transformer(property_name): + def _transformer(result): + return {property_name: result} + + return _transformer + + +def transform_storage_list_output(result): + if getattr(result, 'next_marker', None): + logger.warning('Next Marker:') + logger.warning(result.next_marker) + return list(result) diff --git a/src/storage-preview/azext_storage_preview/_validators.py b/src/storage-preview/azext_storage_preview/_validators.py index 1973d9cab72..633968f9da7 100644 --- a/src/storage-preview/azext_storage_preview/_validators.py +++ b/src/storage-preview/azext_storage_preview/_validators.py @@ -9,7 +9,7 @@ from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.cli.core.commands.validators import validate_key_value_pairs from azure.cli.core.profiles import get_sdk - +from knack.util import CLIError from ._client_factory import get_storage_data_service_client, blob_data_service_factory from .util import guess_content_type from .oauth_token_util import TokenUpdater @@ -110,7 +110,6 @@ def get_config_value(section, key, default): n.account_name = conn_dict.get('AccountName') n.account_key = conn_dict.get('AccountKey') if not n.account_name or not n.account_key: - from knack.util import CLIError raise CLIError('Connection-string: %s, is malformed. Some shell environments require the ' 'connection string to be surrounded by quotes.' % n.connection_string) @@ -163,6 +162,26 @@ def validate_azcopy_upload_destination_url(cmd, namespace): del namespace.destination_path +def validate_blob_directory_download_source_url(cmd, namespace): + client = blob_data_service_factory(cmd.cli_ctx, { + 'account_name': namespace.account_name}) + source_path = namespace.source_path + url = client.make_blob_url(namespace.source_container, source_path) + namespace.source = url + del namespace.source_container + del namespace.source_path + + +def validate_blob_directory_upload_destination_url(cmd, namespace): + client = blob_data_service_factory(cmd.cli_ctx, { + 'account_name': namespace.account_name}) + destination_path = namespace.destination_path + url = client.make_blob_url(namespace.destination_container, destination_path) + namespace.destination = url + '/' + del namespace.destination_container + del namespace.destination_path + + def validate_azcopy_download_source_url(cmd, namespace): client = blob_data_service_factory(cmd.cli_ctx, { 'account_name': namespace.account_name}) @@ -328,6 +347,16 @@ def validate_metadata(namespace): namespace.metadata = dict(x.split('=', 1) for x in namespace.metadata) +def validate_storage_account(cmd, namespace): + n = namespace + rg, scf = _query_account_rg(cmd.cli_ctx, n.account_name) + + storage_account_property = scf.storage_accounts.get_properties(rg, n.account_name) # pylint: disable=no-member + if "access" in cmd.name: + if not storage_account_property.is_hns_enabled: + raise CLIError("You storage account doesn't enable HNS property.") + + def validate_subnet(cmd, namespace): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id @@ -348,7 +377,6 @@ def validate_subnet(cmd, namespace): child_type_1='subnets', child_name_1=subnet) else: - from knack.util import CLIError raise CLIError('incorrect usage: [--subnet ID | --subnet NAME --vnet-name NAME]') @@ -409,3 +437,13 @@ def impl(string): return t_services(_str=''.join(set(string))) return impl + + +def validate_included_datasets(cmd, namespace): + if namespace.include: + include = namespace.include + if set(include) - set('cmsd'): + help_string = '(c)opy-info (m)etadata (s)napshots (d)eleted' + raise ValueError('valid values are {} or a combination thereof.'.format(help_string)) + t_blob_include = cmd.get_models('blob#Include') + namespace.include = t_blob_include('s' in include, 'm' in include, False, 'c' in include, 'd' in include) diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/ThirdPartyNotice.txt deleted file mode 100644 index e8ca8eaede7..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/azcopy deleted file mode 100755 index fb6f2441830..00000000000 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.7/azcopy and /dev/null differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/azcopy deleted file mode 100755 index 340397ac3a7..00000000000 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.8/azcopy and /dev/null differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/azcopy deleted file mode 100644 index 22f182c2162..00000000000 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.0.9/azcopy and /dev/null differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/ThirdPartyNotice.txt new file mode 100644 index 00000000000..5398763ac67 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/ThirdPartyNotice.txt @@ -0,0 +1,338 @@ +------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- + + +THIRD PARTY SOFTWARE NOTICES AND INFORMATION +Do Not Translate or Localize + +This software incorporates material from third parties. Microsoft makes certain + + +open source code available at http://3rdpartysource.microsoft.com, or you may +send a check or money order for US $5.00, including the product name, the open +source component name, and version number, to: + +Source Code Compliance Team +Microsoft Corporation +One Microsoft Way +Redmond, WA 98052 +USA + +Notwithstanding any other terms, you may reverse engineer this software to the +extent required to debug changes to any libraries licensed under the GNU Lesser + + +General Public License. + +Third Party Programs: The software may include third party programs that Microsoft, +not the third party, licenses to you under this agreement. Notices, if any, for the +third party programs are included for your information only. + +********** + +sirupsen/logrus, Copyright (c) 2014 Simon Eskildsen +danieljoos/wincred, Copyright (c) 2014 Daniel Joos +dustin/go-humanize, Copyright (c) 2005-2008 Dustin Sallings +mitchellh/go-homedir, Copyright (c) 2013 Mitchell Hashimoto +konsorten/go-windows-terminal-sequences, Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de) +jiacfan/keychain, Copyright (c) 2015 Keybase +mattn/go-ieproxy, Copyright (c) 2014 mattn +mattn/go-ieproxy, Copyright (c) 2017 oliverpool +mattn/go-ieproxy, Copyright (c) 2019 Adele Reed +dgrijalva/jwt-go, Copyright (c) 2012 Dave Grijalva +JeffreyRichter/enum, Copyright (c) 2018 Jeffrey Richter +stretchr/testify, Copyright (c) 2012-2018 Mat Ryer and Tyler Bunnell +smartystreets/goconvey, Copyright (c) 2016 SmartyStreets, LLC +cpuguy83/go-md2man, Copyright (c) 2014 Brian Goff +stretchr/objx, Copyright (c) 2014 Stretchr, Inc., Copyright (c) 2017-2018 objx contributors + + +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +********** + +go-ini/ini, Copyright 2014 Unknown +go-yaml/yaml, Copyright +minio/minio-go, Copyright 2015-2017 Minio, Inc. +census-instrumentation/opencensus-proto +census-ecosystem/opencensus-go-exporter-ocagent, Copyright 2018, OpenCensus Authors +inconshreveable/mousetrap, Copyright 2014 Alan Shreve +spf13/cobra + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution +as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner +that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that +control, are controlled by, or are under common control with that entity. For the +purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by contract +or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding +shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions +granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but +not limited to software source code, documentation source, and configuration files. + + + +"Object" form shall mean any form resulting from mechanical transformation or translation +of a Source form, including but not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made +available under the License, as indicated by a copyright notice that is included +in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is +based on (or derived from) the Work and for which the editorial revisions, annotations, +elaborations, or other modifications represent, as a whole, an original work of authorship. +For the purposes of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, the Work and +Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative Works thereof, +that is intentionally submitted to Licensor for inclusion in the Work by the copyright +owner or by an individual or Legal Entity authorized to submit on behalf of the copyright +owner. For the purposes of this definition, "submitted" means any form of electronic, +verbal, or written communication sent to the Licensor or its representatives, including +but not limited to communication on electronic mailing lists, source code control +systems, and issue tracking systems that are managed by, or on behalf of, the Licensor +for the purpose of iscussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of +whom a Contribution has been received by Licensor and subsequently incorporated within +the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, publicly display, publicly +perform, sublicense, and distribute the Work and such Derivative Works in Source +or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, use, offer +to sell, sell, import, and otherwise transfer the Work, where such license applies +only to those patent claims licensable by such Contributor that are necessarily infringed +by their Contribution(s) alone or by combination of their Contribution(s) with the +Work to which such Contribution(s) was submitted. If You institute patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) alleging +that the Work or a Contribution incorporated within the Work constitutes direct or +contributory patent infringement, then any patent licenses granted to You under this +License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof in +any medium, with or without modifications, and in Source or Object form, provided +that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this +License; and You must cause any modified files to carry prominent notices stating +that You changed the files; and You must retain, in the Source form of any Derivative +Works that You distribute, all copyright, patent, trademark, and attribution notices +from the Source form of the Work, excluding those notices that do not pertain to +any part of the Derivative Works; and If the Work includes a "NOTICE" text file as +part of its distribution, then any Derivative Works that You distribute must include +a readable copy of the attribution notices contained within such NOTICE file, excluding +those notices that do not pertain to any part of the Derivative Works, in at least +one of the following places: within a NOTICE text file distributed as part of the +Derivative Works; within the Source form or documentation, if provided along with +the Derivative Works; or, within a display generated by the Derivative Works, if +and wherever such third-party notices normally appear. The contents of the NOTICE +file are for informational purposes only and do not modify the License. You may add +Your own attribution notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided that such additional +attribution notices cannot be construed as modifying the License. You may add Your +own copyright statement to Your modifications and may provide additional or different +license terms and conditions for use, reproduction, or distribution of Your modifications, +or for any such Derivative Works as a whole, provided Your use, reproduction, and +distribution of the Work otherwise complies with the conditions stated in this License. + + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted for +inclusion in the Work by You to the Licensor shall be under the terms and conditions +of this License, without any additional terms or conditions. Notwithstanding the +above, nothing herein shall supersede or modify the terms of any separate license +agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, service +marks, or product names of the Licensor, except as required for reasonable and customary +use in describing the origin of the Work and reproducing the content of the NOTICE +file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the +Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without +limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, +or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or +redistributing the Work and assume any risks associated with Your exercise of permissions +under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), contract, +or otherwise, unless required by applicable law (such as deliberate and grossly negligent +acts) or agreed to in writing, shall any Contributor be liable to You for damages, +including any direct, indirect, special, incidental, or consequential damages of +any character arising as a result of this License or out of the use or inability +to use the Work (including but not limited to damages for loss of goodwill, work +stoppage, computer failure or malfunction, or any and all other commercial damages +or losses), even if such Contributor has been advised of the possibility of such +damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, or other liability +obligations and/or rights consistent with this License. However, in accepting such +obligations, You may act only on Your own behalf and on Your sole responsibility, +not on behalf of any other Contributor, and only if You agree to indemnify, defend, +and hold each Contributor harmless for any liability incurred by, or claims asserted +against, such Contributor by reason of your accepting any such warranty or additional +liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work + +To apply the Apache License to your work, attach the following boilerplate notice, +with the fields enclosed by brackets "[]" replaced with your own identifying information. +(Don't include the brackets!) The text should be enclosed in the appropriate comment +syntax for the file format. We also recommend that a file or class name and description +of purpose be included on the same "printed page" as the copyright notice for easier +identification within third-party archives. + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this +file except in compliance with the License. You may obtain a copy of the License +at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. + +********** + +tmc/keyring, Copyright (c) 2013, Travis Cline + +ISC License + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice and +this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********** + +golang/protobuf, Copyright 2010 The Go Authors. All rights reserved. +jiacfan/keyctl, Copyright (c) 2015, Jesse Sipprell. All rights reserved. +go, Copyright (c) 2009 The Go Authors. All rights reserved. +spf13/pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. Copyright (c) 2012 The Go Authors. All rights reserved. + +BSD 3-Clause "New" or "Revised" License + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. + * Neither the name of Google Inc. nor the names of its contributors may be used +to endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + +pkg/errors, Copyright (c) 2015, Dave Cheney . All rights reserved. +gopkg.in/check.v1, Copyright (c) 2010-2013 Gustavo Niemeyer . All rights reserved. + +BSD 2-Clause "Simplified" License + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + + +----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/azcopy.exe b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/azcopy similarity index 65% rename from src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/azcopy.exe rename to src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/azcopy index f8ec45be4ee..e9f1bde2017 100644 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/azcopy.exe and b/src/storage-preview/azext_storage_preview/azcopy/azcopy_darwin_amd64_10.3.1/azcopy differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/ThirdPartyNotice.txt deleted file mode 100644 index e8ca8eaede7..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/azcopy deleted file mode 100755 index a51a073bc44..00000000000 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.8/azcopy and /dev/null differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/azcopy deleted file mode 100644 index 13b448014c3..00000000000 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.9/azcopy and /dev/null differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/ThirdPartyNotice.txt new file mode 100644 index 00000000000..5398763ac67 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/ThirdPartyNotice.txt @@ -0,0 +1,338 @@ +------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- + + +THIRD PARTY SOFTWARE NOTICES AND INFORMATION +Do Not Translate or Localize + +This software incorporates material from third parties. Microsoft makes certain + + +open source code available at http://3rdpartysource.microsoft.com, or you may +send a check or money order for US $5.00, including the product name, the open +source component name, and version number, to: + +Source Code Compliance Team +Microsoft Corporation +One Microsoft Way +Redmond, WA 98052 +USA + +Notwithstanding any other terms, you may reverse engineer this software to the +extent required to debug changes to any libraries licensed under the GNU Lesser + + +General Public License. + +Third Party Programs: The software may include third party programs that Microsoft, +not the third party, licenses to you under this agreement. Notices, if any, for the +third party programs are included for your information only. + +********** + +sirupsen/logrus, Copyright (c) 2014 Simon Eskildsen +danieljoos/wincred, Copyright (c) 2014 Daniel Joos +dustin/go-humanize, Copyright (c) 2005-2008 Dustin Sallings +mitchellh/go-homedir, Copyright (c) 2013 Mitchell Hashimoto +konsorten/go-windows-terminal-sequences, Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de) +jiacfan/keychain, Copyright (c) 2015 Keybase +mattn/go-ieproxy, Copyright (c) 2014 mattn +mattn/go-ieproxy, Copyright (c) 2017 oliverpool +mattn/go-ieproxy, Copyright (c) 2019 Adele Reed +dgrijalva/jwt-go, Copyright (c) 2012 Dave Grijalva +JeffreyRichter/enum, Copyright (c) 2018 Jeffrey Richter +stretchr/testify, Copyright (c) 2012-2018 Mat Ryer and Tyler Bunnell +smartystreets/goconvey, Copyright (c) 2016 SmartyStreets, LLC +cpuguy83/go-md2man, Copyright (c) 2014 Brian Goff +stretchr/objx, Copyright (c) 2014 Stretchr, Inc., Copyright (c) 2017-2018 objx contributors + + +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +********** + +go-ini/ini, Copyright 2014 Unknown +go-yaml/yaml, Copyright +minio/minio-go, Copyright 2015-2017 Minio, Inc. +census-instrumentation/opencensus-proto +census-ecosystem/opencensus-go-exporter-ocagent, Copyright 2018, OpenCensus Authors +inconshreveable/mousetrap, Copyright 2014 Alan Shreve +spf13/cobra + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution +as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner +that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that +control, are controlled by, or are under common control with that entity. For the +purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by contract +or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding +shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions +granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but +not limited to software source code, documentation source, and configuration files. + + + +"Object" form shall mean any form resulting from mechanical transformation or translation +of a Source form, including but not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made +available under the License, as indicated by a copyright notice that is included +in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is +based on (or derived from) the Work and for which the editorial revisions, annotations, +elaborations, or other modifications represent, as a whole, an original work of authorship. +For the purposes of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, the Work and +Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative Works thereof, +that is intentionally submitted to Licensor for inclusion in the Work by the copyright +owner or by an individual or Legal Entity authorized to submit on behalf of the copyright +owner. For the purposes of this definition, "submitted" means any form of electronic, +verbal, or written communication sent to the Licensor or its representatives, including +but not limited to communication on electronic mailing lists, source code control +systems, and issue tracking systems that are managed by, or on behalf of, the Licensor +for the purpose of iscussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of +whom a Contribution has been received by Licensor and subsequently incorporated within +the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, publicly display, publicly +perform, sublicense, and distribute the Work and such Derivative Works in Source +or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, use, offer +to sell, sell, import, and otherwise transfer the Work, where such license applies +only to those patent claims licensable by such Contributor that are necessarily infringed +by their Contribution(s) alone or by combination of their Contribution(s) with the +Work to which such Contribution(s) was submitted. If You institute patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) alleging +that the Work or a Contribution incorporated within the Work constitutes direct or +contributory patent infringement, then any patent licenses granted to You under this +License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof in +any medium, with or without modifications, and in Source or Object form, provided +that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this +License; and You must cause any modified files to carry prominent notices stating +that You changed the files; and You must retain, in the Source form of any Derivative +Works that You distribute, all copyright, patent, trademark, and attribution notices +from the Source form of the Work, excluding those notices that do not pertain to +any part of the Derivative Works; and If the Work includes a "NOTICE" text file as +part of its distribution, then any Derivative Works that You distribute must include +a readable copy of the attribution notices contained within such NOTICE file, excluding +those notices that do not pertain to any part of the Derivative Works, in at least +one of the following places: within a NOTICE text file distributed as part of the +Derivative Works; within the Source form or documentation, if provided along with +the Derivative Works; or, within a display generated by the Derivative Works, if +and wherever such third-party notices normally appear. The contents of the NOTICE +file are for informational purposes only and do not modify the License. You may add +Your own attribution notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided that such additional +attribution notices cannot be construed as modifying the License. You may add Your +own copyright statement to Your modifications and may provide additional or different +license terms and conditions for use, reproduction, or distribution of Your modifications, +or for any such Derivative Works as a whole, provided Your use, reproduction, and +distribution of the Work otherwise complies with the conditions stated in this License. + + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted for +inclusion in the Work by You to the Licensor shall be under the terms and conditions +of this License, without any additional terms or conditions. Notwithstanding the +above, nothing herein shall supersede or modify the terms of any separate license +agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, service +marks, or product names of the Licensor, except as required for reasonable and customary +use in describing the origin of the Work and reproducing the content of the NOTICE +file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the +Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without +limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, +or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or +redistributing the Work and assume any risks associated with Your exercise of permissions +under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), contract, +or otherwise, unless required by applicable law (such as deliberate and grossly negligent +acts) or agreed to in writing, shall any Contributor be liable to You for damages, +including any direct, indirect, special, incidental, or consequential damages of +any character arising as a result of this License or out of the use or inability +to use the Work (including but not limited to damages for loss of goodwill, work +stoppage, computer failure or malfunction, or any and all other commercial damages +or losses), even if such Contributor has been advised of the possibility of such +damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, or other liability +obligations and/or rights consistent with this License. However, in accepting such +obligations, You may act only on Your own behalf and on Your sole responsibility, +not on behalf of any other Contributor, and only if You agree to indemnify, defend, +and hold each Contributor harmless for any liability incurred by, or claims asserted +against, such Contributor by reason of your accepting any such warranty or additional +liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work + +To apply the Apache License to your work, attach the following boilerplate notice, +with the fields enclosed by brackets "[]" replaced with your own identifying information. +(Don't include the brackets!) The text should be enclosed in the appropriate comment +syntax for the file format. We also recommend that a file or class name and description +of purpose be included on the same "printed page" as the copyright notice for easier +identification within third-party archives. + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this +file except in compliance with the License. You may obtain a copy of the License +at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. + +********** + +tmc/keyring, Copyright (c) 2013, Travis Cline + +ISC License + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice and +this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********** + +golang/protobuf, Copyright 2010 The Go Authors. All rights reserved. +jiacfan/keyctl, Copyright (c) 2015, Jesse Sipprell. All rights reserved. +go, Copyright (c) 2009 The Go Authors. All rights reserved. +spf13/pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. Copyright (c) 2012 The Go Authors. All rights reserved. + +BSD 3-Clause "New" or "Revised" License + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. + * Neither the name of Google Inc. nor the names of its contributors may be used +to endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + +pkg/errors, Copyright (c) 2015, Dave Cheney . All rights reserved. +gopkg.in/check.v1, Copyright (c) 2010-2013 Gustavo Niemeyer . All rights reserved. + +BSD 2-Clause "Simplified" License + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + + +----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/azcopy.exe b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/azcopy old mode 100755 new mode 100644 similarity index 62% rename from src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/azcopy.exe rename to src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/azcopy index 0951b94642a..d5c0b1464f4 Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/azcopy.exe and b/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.3.1/azcopy differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.8/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/ThirdPartyNotice.txt deleted file mode 100644 index 168fec8e7b3..00000000000 --- a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.0.9/ThirdPartyNotice.txt +++ /dev/null @@ -1,265 +0,0 @@ -------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- -THIRD PARTY SOFTWARE NOTICES AND INFORMATION -Do Not Translate or Localize - -This software incorporates material from third parties. Microsoft makes certain -open source code available at http://3rdpartysource.microsoft.com, or you may -send a check or money order for US $5.00, including the product name, the open -source component name, and version number, to: - -Source Code Compliance Team -Microsoft Corporation -One Microsoft Way -Redmond, WA 98052 -USA - -Notwithstanding any other terms, you may reverse engineer this software to the -extent required to debug changes to any libraries licensed under the GNU Lesser -General Public License. - -Third Party Programs: The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party programs are included for your information only. -********** - -jwt-go, Copyright (c) 2012 Dave Grijalva -go-keychain, Copyright (c) 2015 Keybase - -MIT LICENSE -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -********** - -keyctl, Copyright (c) 2015, Jesse Sipprell -pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. -pflag, Copyright (c) 2012 The Go Authors. All rights reserved. -go, Copyright (c) 2009 The Go Authors. All rights reserved. - -BSD 3-Clause "New" or "Revised" LICENSE -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -********** - -mousetrap, Copyright 2014 Alan Shreve - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -********** - -cobra - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -********** - ------------------------------------------------ END OF THIRD PARTY NOTICE ------------------------------------------ - diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/ThirdPartyNotice.txt b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/ThirdPartyNotice.txt new file mode 100644 index 00000000000..5398763ac67 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/ThirdPartyNotice.txt @@ -0,0 +1,338 @@ +------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- + + +THIRD PARTY SOFTWARE NOTICES AND INFORMATION +Do Not Translate or Localize + +This software incorporates material from third parties. Microsoft makes certain + + +open source code available at http://3rdpartysource.microsoft.com, or you may +send a check or money order for US $5.00, including the product name, the open +source component name, and version number, to: + +Source Code Compliance Team +Microsoft Corporation +One Microsoft Way +Redmond, WA 98052 +USA + +Notwithstanding any other terms, you may reverse engineer this software to the +extent required to debug changes to any libraries licensed under the GNU Lesser + + +General Public License. + +Third Party Programs: The software may include third party programs that Microsoft, +not the third party, licenses to you under this agreement. Notices, if any, for the +third party programs are included for your information only. + +********** + +sirupsen/logrus, Copyright (c) 2014 Simon Eskildsen +danieljoos/wincred, Copyright (c) 2014 Daniel Joos +dustin/go-humanize, Copyright (c) 2005-2008 Dustin Sallings +mitchellh/go-homedir, Copyright (c) 2013 Mitchell Hashimoto +konsorten/go-windows-terminal-sequences, Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de) +jiacfan/keychain, Copyright (c) 2015 Keybase +mattn/go-ieproxy, Copyright (c) 2014 mattn +mattn/go-ieproxy, Copyright (c) 2017 oliverpool +mattn/go-ieproxy, Copyright (c) 2019 Adele Reed +dgrijalva/jwt-go, Copyright (c) 2012 Dave Grijalva +JeffreyRichter/enum, Copyright (c) 2018 Jeffrey Richter +stretchr/testify, Copyright (c) 2012-2018 Mat Ryer and Tyler Bunnell +smartystreets/goconvey, Copyright (c) 2016 SmartyStreets, LLC +cpuguy83/go-md2man, Copyright (c) 2014 Brian Goff +stretchr/objx, Copyright (c) 2014 Stretchr, Inc., Copyright (c) 2017-2018 objx contributors + + +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +********** + +go-ini/ini, Copyright 2014 Unknown +go-yaml/yaml, Copyright +minio/minio-go, Copyright 2015-2017 Minio, Inc. +census-instrumentation/opencensus-proto +census-ecosystem/opencensus-go-exporter-ocagent, Copyright 2018, OpenCensus Authors +inconshreveable/mousetrap, Copyright 2014 Alan Shreve +spf13/cobra + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution +as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner +that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that +control, are controlled by, or are under common control with that entity. For the +purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by contract +or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding +shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions +granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but +not limited to software source code, documentation source, and configuration files. + + + +"Object" form shall mean any form resulting from mechanical transformation or translation +of a Source form, including but not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made +available under the License, as indicated by a copyright notice that is included +in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is +based on (or derived from) the Work and for which the editorial revisions, annotations, +elaborations, or other modifications represent, as a whole, an original work of authorship. +For the purposes of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, the Work and +Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative Works thereof, +that is intentionally submitted to Licensor for inclusion in the Work by the copyright +owner or by an individual or Legal Entity authorized to submit on behalf of the copyright +owner. For the purposes of this definition, "submitted" means any form of electronic, +verbal, or written communication sent to the Licensor or its representatives, including +but not limited to communication on electronic mailing lists, source code control +systems, and issue tracking systems that are managed by, or on behalf of, the Licensor +for the purpose of iscussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of +whom a Contribution has been received by Licensor and subsequently incorporated within +the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, publicly display, publicly +perform, sublicense, and distribute the Work and such Derivative Works in Source +or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby grants +to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, use, offer +to sell, sell, import, and otherwise transfer the Work, where such license applies +only to those patent claims licensable by such Contributor that are necessarily infringed +by their Contribution(s) alone or by combination of their Contribution(s) with the +Work to which such Contribution(s) was submitted. If You institute patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) alleging +that the Work or a Contribution incorporated within the Work constitutes direct or +contributory patent infringement, then any patent licenses granted to You under this +License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof in +any medium, with or without modifications, and in Source or Object form, provided +that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this +License; and You must cause any modified files to carry prominent notices stating +that You changed the files; and You must retain, in the Source form of any Derivative +Works that You distribute, all copyright, patent, trademark, and attribution notices +from the Source form of the Work, excluding those notices that do not pertain to +any part of the Derivative Works; and If the Work includes a "NOTICE" text file as +part of its distribution, then any Derivative Works that You distribute must include +a readable copy of the attribution notices contained within such NOTICE file, excluding +those notices that do not pertain to any part of the Derivative Works, in at least +one of the following places: within a NOTICE text file distributed as part of the +Derivative Works; within the Source form or documentation, if provided along with +the Derivative Works; or, within a display generated by the Derivative Works, if +and wherever such third-party notices normally appear. The contents of the NOTICE +file are for informational purposes only and do not modify the License. You may add +Your own attribution notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided that such additional +attribution notices cannot be construed as modifying the License. You may add Your +own copyright statement to Your modifications and may provide additional or different +license terms and conditions for use, reproduction, or distribution of Your modifications, +or for any such Derivative Works as a whole, provided Your use, reproduction, and +distribution of the Work otherwise complies with the conditions stated in this License. + + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted for +inclusion in the Work by You to the Licensor shall be under the terms and conditions +of this License, without any additional terms or conditions. Notwithstanding the +above, nothing herein shall supersede or modify the terms of any separate license +agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, service +marks, or product names of the Licensor, except as required for reasonable and customary +use in describing the origin of the Work and reproducing the content of the NOTICE +file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the +Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without +limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, +or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or +redistributing the Work and assume any risks associated with Your exercise of permissions +under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), contract, +or otherwise, unless required by applicable law (such as deliberate and grossly negligent +acts) or agreed to in writing, shall any Contributor be liable to You for damages, +including any direct, indirect, special, incidental, or consequential damages of +any character arising as a result of this License or out of the use or inability +to use the Work (including but not limited to damages for loss of goodwill, work +stoppage, computer failure or malfunction, or any and all other commercial damages +or losses), even if such Contributor has been advised of the possibility of such +damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, or other liability +obligations and/or rights consistent with this License. However, in accepting such +obligations, You may act only on Your own behalf and on Your sole responsibility, +not on behalf of any other Contributor, and only if You agree to indemnify, defend, +and hold each Contributor harmless for any liability incurred by, or claims asserted +against, such Contributor by reason of your accepting any such warranty or additional +liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work + +To apply the Apache License to your work, attach the following boilerplate notice, +with the fields enclosed by brackets "[]" replaced with your own identifying information. +(Don't include the brackets!) The text should be enclosed in the appropriate comment +syntax for the file format. We also recommend that a file or class name and description +of purpose be included on the same "printed page" as the copyright notice for easier +identification within third-party archives. + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this +file except in compliance with the License. You may obtain a copy of the License +at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. + +********** + +tmc/keyring, Copyright (c) 2013, Travis Cline + +ISC License + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice and +this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD +TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +********** + +golang/protobuf, Copyright 2010 The Go Authors. All rights reserved. +jiacfan/keyctl, Copyright (c) 2015, Jesse Sipprell. All rights reserved. +go, Copyright (c) 2009 The Go Authors. All rights reserved. +spf13/pflag, Copyright (c) 2012 Alex Ogier. All rights reserved. Copyright (c) 2012 The Go Authors. All rights reserved. + +BSD 3-Clause "New" or "Revised" License + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. + * Neither the name of Google Inc. nor the names of its contributors may be used +to endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + +pkg/errors, Copyright (c) 2015, Dave Cheney . All rights reserved. +gopkg.in/check.v1, Copyright (c) 2010-2013 Gustavo Niemeyer . All rights reserved. + +BSD 2-Clause "Simplified" License + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +********** + + +----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ diff --git a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/azcopy b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/azcopy.exe old mode 100755 new mode 100644 similarity index 63% rename from src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/azcopy rename to src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/azcopy.exe index a2529df0ced..aae2191a0db Binary files a/src/storage-preview/azext_storage_preview/azcopy/azcopy_linux_amd64_10.0.7/azcopy and b/src/storage-preview/azext_storage_preview/azcopy/azcopy_windows_amd64_10.3.1/azcopy.exe differ diff --git a/src/storage-preview/azext_storage_preview/azcopy/util.py b/src/storage-preview/azext_storage_preview/azcopy/util.py index bcf3cc8b112..033e1a03666 100644 --- a/src/storage-preview/azext_storage_preview/azcopy/util.py +++ b/src/storage-preview/azext_storage_preview/azcopy/util.py @@ -18,7 +18,7 @@ STORAGE_RESOURCE_ENDPOINT = "https://storage.azure.com" SERVICES = {'blob', 'file'} -AZCOPY_VERSION = '10.0.9' +AZCOPY_VERSION = '10.3.1' class AzCopy(object): diff --git a/src/storage-preview/azext_storage_preview/commands.py b/src/storage-preview/azext_storage_preview/commands.py index 6b4069843e9..db1556af80a 100644 --- a/src/storage-preview/azext_storage_preview/commands.py +++ b/src/storage-preview/azext_storage_preview/commands.py @@ -6,8 +6,8 @@ from azure.cli.core.commands import CliCommandType from azure.cli.core.commands.arm import show_exception_handler from ._client_factory import (cf_sa, cf_sa_preview, cf_blob_data_gen_update, - blob_data_service_factory) -from .profiles import CUSTOM_DATA_STORAGE, CUSTOM_MGMT_STORAGE, CUSTOM_MGMT_PREVIEW_STORAGE + blob_data_service_factory, adls_blob_data_service_factory) +from .profiles import CUSTOM_DATA_STORAGE, CUSTOM_MGMT_STORAGE, CUSTOM_MGMT_PREVIEW_STORAGE, CUSTOM_DATA_STORAGE_ADLS def load_command_table(self, _): # pylint: disable=too-many-locals, too-many-statements @@ -107,3 +107,61 @@ def get_custom_sdk(custom_module, client_factory, resource_type=CUSTOM_DATA_STOR with self.command_group('storage azcopy', custom_command_type=get_custom_sdk('azcopy', None)) as g: g.custom_command('run-command', 'storage_run_command', validator=lambda namespace: None) + + # pylint: disable=line-too-long + adls_base_blob_sdk = CliCommandType( + operations_tmpl='azext_storage_preview.vendored_sdks.azure_adls_storage_preview.blob.baseblobservice#BaseBlobService.{}', + client_factory=adls_blob_data_service_factory, + resource_type=CUSTOM_DATA_STORAGE_ADLS) + + # New commands for ADLS Gen2 + # Blob Pipeline + with self.command_group('storage blob', command_type=adls_base_blob_sdk, + custom_command_type=get_custom_sdk('blob', adls_blob_data_service_factory, + CUSTOM_DATA_STORAGE_ADLS), + resource_type=CUSTOM_DATA_STORAGE_ADLS) as g: + from ._format import transform_blob_output + from ._transformers import transform_storage_list_output + g.storage_custom_command_oauth('move', 'rename_directory') + g.storage_command_oauth('list', 'list_blobs', transform=transform_storage_list_output, + table_transformer=transform_blob_output) + g.storage_custom_command_oauth('show', 'show_blob') + + with self.command_group('storage blob access', command_type=adls_base_blob_sdk, + custom_command_type=get_custom_sdk('blob', adls_blob_data_service_factory, + CUSTOM_DATA_STORAGE_ADLS), + resource_type=CUSTOM_DATA_STORAGE_ADLS) as g: + g.storage_custom_command_oauth('set', 'rename_directory') + g.storage_custom_command_oauth('update', 'show_blob') + + # Blob directory Pipeline + with self.command_group('storage blob directory', command_type=adls_base_blob_sdk, + custom_command_type=get_custom_sdk('blob', adls_blob_data_service_factory, + CUSTOM_DATA_STORAGE_ADLS), + resource_type=CUSTOM_DATA_STORAGE_ADLS) as g: + from ._format import transform_blob_output + from ._transformers import (transform_storage_list_output, create_boolean_result_output_transformer) + g.storage_command_oauth('create', 'create_directory') + g.storage_command_oauth('delete', 'delete_directory') + g.storage_custom_command_oauth('move', 'rename_directory') + g.storage_custom_command_oauth('show', 'show_directory', table_transformer=transform_blob_output, + exception_handler=show_exception_handler) + g.storage_custom_command_oauth('list', 'list_directory', transform=transform_storage_list_output, + table_transformer=transform_blob_output) + g.storage_command_oauth('exists', 'exists', transform=create_boolean_result_output_transformer('exists')) + g.storage_command_oauth( + 'metadata show', 'get_blob_metadata', exception_handler=show_exception_handler) + g.storage_command_oauth('metadata update', 'set_blob_metadata') + + with self.command_group('storage blob directory', + custom_command_type=get_custom_sdk('azcopy', blob_data_service_factory)) as g: + g.storage_custom_command_oauth('upload', 'storage_blob_upload') + g.storage_custom_command_oauth('download', 'storage_blob_download') + + with self.command_group('storage blob directory access', command_type=adls_base_blob_sdk, + custom_command_type=get_custom_sdk('blob', adls_blob_data_service_factory, + CUSTOM_DATA_STORAGE_ADLS), + resource_type=CUSTOM_DATA_STORAGE_ADLS) as g: + g.storage_command_oauth('set', 'set_path_access_control') + g.storage_command_oauth('update', 'set_path_access_control') + g.storage_command_oauth('show', 'get_path_access_control') diff --git a/src/storage-preview/azext_storage_preview/operations/blob.py b/src/storage-preview/azext_storage_preview/operations/blob.py index b04b048e180..e2ec971d9bb 100644 --- a/src/storage-preview/azext_storage_preview/operations/blob.py +++ b/src/storage-preview/azext_storage_preview/operations/blob.py @@ -4,7 +4,11 @@ # -------------------------------------------------------------------------------------------- from __future__ import print_function + from knack.util import CLIError +from knack.log import get_logger + +logger = get_logger(__name__) def set_service_properties(client, parameters, delete_retention=None, days_retained=None, static_website=None, @@ -36,3 +40,107 @@ def set_service_properties(client, parameters, delete_retention=None, days_retai client.set_blob_service_properties(**kwargs) return client.get_blob_service_properties() + + +def show_directory(client, container_name, directory_name, snapshot=None, lease_id=None, + if_modified_since=None, if_unmodified_since=None, if_match=None, + if_none_match=None, timeout=None): + directory = client.get_blob_properties( + container_name, directory_name, snapshot=snapshot, lease_id=lease_id, + if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since, if_match=if_match, + if_none_match=if_none_match, timeout=timeout) + + return directory + + +def show_blob(cmd, client, container_name, blob_name, snapshot=None, lease_id=None, + if_modified_since=None, if_unmodified_since=None, if_match=None, + if_none_match=None, timeout=None): + blob = client.get_blob_properties( + container_name, blob_name, snapshot=snapshot, lease_id=lease_id, + if_modified_since=if_modified_since, if_unmodified_since=if_unmodified_since, if_match=if_match, + if_none_match=if_none_match, timeout=timeout) + + page_ranges = None + if blob.properties.blob_type == cmd.get_models('blob.models#_BlobTypes').PageBlob: + page_ranges = client.get_page_ranges( + container_name, blob_name, snapshot=snapshot, lease_id=lease_id, if_modified_since=if_modified_since, + if_unmodified_since=if_unmodified_since, if_match=if_match, if_none_match=if_none_match, timeout=timeout) + + blob.properties.page_ranges = page_ranges + + return blob + + +# pylint: disable=unused-variable,logging-format-interpolation +def delete_directory(client, container_name, directory_name): + + deleted, marker = client.delete_directory(container_name, directory_name, recursive=True) + + # if HNS is enabled, the delete operation is atomic and no marker is returned + # if HNS is not enabled, and there are too more files/subdirectories in the directories to be deleted + # in a single call, the service returns a marker, so that we can follow it and finish deleting + # the rest of the files/subdirectories + count = 1 + while marker is not None: + deleted, marker = client.delete_directory(container_name, directory_name, marker=marker, recursive=True) + count += 1 + logger.info("Took {} call(s) to finish moving.".format(count)) + + +def list_blobs(client, container_name, prefix=None, num_results=None, include='mc', + delimiter=None, marker=None, timeout=None): + client.list_blobs(container_name, prefix, num_results, include, + delimiter, marker, timeout) + + +def list_directory(client, container_name, directory_path, prefix=None, num_results=None, include='mc', + delimiter=None, marker=None, timeout=None): + ''' + :param str container_name: + Name of existing container. + :param str prefix: + Filters the results to return only blobs whose names + begin with the specified prefix. + :param int num_results: + Specifies the maximum number of blobs to return, + including all :class:`BlobPrefix` elements. If the request does not specify + num_results or specifies a value greater than 5,000, the server will + return up to 5,000 items. Setting num_results to a value less than + or equal to zero results in error response code 400 (Bad Request). + :param ~azure.storage.blob.models.Include include: + Specifies one or more additional datasets to include in the response. + :param str delimiter: + When the request includes this parameter, the operation + returns a :class:`~azure.storage.blob.models.BlobPrefix` element in the + result list that acts as a placeholder for all blobs whose names begin + with the same substring up to the appearance of the delimiter character. + The delimiter may be a single character or a string. + :param str marker: + An opaque continuation token. This value can be retrieved from the + next_marker field of a previous generator object if num_results was + specified and that generator has finished enumerating results. If + specified, this generator will begin returning results from the point + where the previous generator stopped. + :param int timeout: + The timeout parameter is expressed in seconds. + ''' + directory_prefix = directory_path + '/' + prefix if prefix else directory_path + '/' + return client.list_blobs(container_name, directory_prefix, num_results, include, + delimiter, marker, timeout) + + +def rename_directory(client, container_name, destination_path, source_path): + + marker = client.rename_path(container_name, destination_path, source_path) + + # if HNS is enabled, the rename operation is atomic and no marker is returned + # if HNS is not enabled, and there are too more files/subdirectories in the directories to be renamed + # in a single call, the service returns a marker, so that we can follow it and finish renaming + # the rest of the files/subdirectories + + count = 1 + while marker is not None: + marker = client.rename_path(container_name, destination_path, source_path, marker=marker) + count += 1 + logger.info("Took {} call(s) to finish moving.".format(count)) diff --git a/src/storage-preview/azext_storage_preview/profiles.py b/src/storage-preview/azext_storage_preview/profiles.py index e3008d930ed..6e6dcc226b1 100644 --- a/src/storage-preview/azext_storage_preview/profiles.py +++ b/src/storage-preview/azext_storage_preview/profiles.py @@ -7,6 +7,7 @@ CUSTOM_DATA_STORAGE = CustomResourceType('azext_storage_preview.vendored_sdks.azure_storage', None) +CUSTOM_DATA_STORAGE_ADLS = CustomResourceType('azext_storage_preview.vendored_sdks.azure_adls_storage_preview', None) CUSTOM_MGMT_STORAGE = CustomResourceType('azext_storage_preview.vendored_sdks.azure_mgmt_storage', 'StorageManagementClient') CUSTOM_MGMT_PREVIEW_STORAGE = CustomResourceType('azext_storage_preview.vendored_sdks.azure_mgmt_preview_storage', diff --git a/src/storage-preview/azext_storage_preview/sdkutil.py b/src/storage-preview/azext_storage_preview/sdkutil.py index f186ce637ec..8f34cab01df 100644 --- a/src/storage-preview/azext_storage_preview/sdkutil.py +++ b/src/storage-preview/azext_storage_preview/sdkutil.py @@ -7,7 +7,7 @@ from azure.cli.core.profiles import get_sdk, supported_api_version, ResourceType from azure.cli.core.profiles._shared import APIVersionException -from .profiles import CUSTOM_DATA_STORAGE +from .profiles import CUSTOM_DATA_STORAGE, CUSTOM_DATA_STORAGE_ADLS def cosmosdb_table_exists(cli_ctx): @@ -37,6 +37,19 @@ def get_blob_service_by_type(cli_ctx, blob_type): return None +def get_adls_blob_service_by_type(cli_ctx, blob_type): + type_to_service = { + 'block': lambda ctx: get_sdk(ctx, CUSTOM_DATA_STORAGE_ADLS, 'BlockBlobService', mod='blob'), + 'page': lambda ctx: get_sdk(ctx, CUSTOM_DATA_STORAGE_ADLS, 'PageBlobService', mod='blob'), + 'append': lambda ctx: get_sdk(ctx, CUSTOM_DATA_STORAGE_ADLS, 'AppendBlobService', mod='blob') + } + + try: + return type_to_service[blob_type](cli_ctx) + except KeyError: + return None + + def get_blob_types(): return 'block', 'page', 'append' diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_premium_sku.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_premium_sku.yaml index 4999dd5d5ae..46f5ef6e5b4 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_premium_sku.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_premium_sku.yaml @@ -1,290 +1,401 @@ interactions: -- request: - body: '{"location": "northeurope", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-10-03T23:54:05Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['115'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"northeurope","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:54:05Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['389'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"northeurope","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:54:05Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"northeurope","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['389'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '433' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Premium_LRS"}, "kind": "BlockBlobStorage", "location": "northeurope"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['87'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:12 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/8ad5b9aa-5421-46b3-aa98-dae4981ba286?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/9edbc7cc-7f35-41ec-908a-9e9f872f12b1?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/8ad5b9aa-5421-46b3-aa98-dae4981ba286?monitor=true&api-version=2018-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/9edbc7cc-7f35-41ec-908a-9e9f872f12b1?monitor=true&api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"BlockBlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"northeurope","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:54:11.5232750Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:54:11.5232750Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:54:11.3982755Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/"},"primaryLocation":"northeurope","statusOfPrimary":"available"}}'} + body: + string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"BlockBlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"northeurope","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:28.2337356Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:28.2337356Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:28.1555701Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z16.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/"},"primaryLocation":"northeurope","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['1049'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:54:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '1117' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: 'b''{"name": "cli000002", "type": "Microsoft.Storage/storageAccounts"}''' + body: '{"name": "cli000002", "type": "Microsoft.Storage/storageAccounts"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account check-name] - Connection: [keep-alive] - Content-Length: ['81'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account check-name + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2018-07-01 response: - body: {string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The - storage account named cli000002 is already taken."}'} + body: + string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The storage + account named cli000002 is already taken."}' headers: - cache-control: [no-cache] - content-length: ['129'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:54:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '129' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"northeurope","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:54:05Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"northeurope","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['389'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '433' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Premium_LRS"}, "kind": "FileStorage", "location": "northeurope"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['82'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '82' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000003?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:33 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/40ea3d5c-7ec5-40a1-92e6-418950e3ea49?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/6d04abda-d797-4159-bda6-24c81087a00d?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/40ea3d5c-7ec5-40a1-92e6-418950e3ea49?monitor=true&api-version=2018-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/northeurope/asyncoperations/6d04abda-d797-4159-bda6-24c81087a00d?monitor=true&api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"FileStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000003","name":"cli000003","type":"Microsoft.Storage/storageAccounts","location":"northeurope","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:54:34.1726319Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:54:34.1726319Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:54:34.0632646Z","primaryEndpoints":{"file":"https://cli000003.file.core.windows.net/"},"primaryLocation":"northeurope","statusOfPrimary":"available"}}'} + body: + string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"FileStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000003","name":"cli000003","type":"Microsoft.Storage/storageAccounts","location":"northeurope","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:53.1756827Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:53.1756827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:53.1131965Z","primaryEndpoints":{"file":"https://cli000003.file.core.windows.net/"},"primaryLocation":"northeurope","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['1044'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:54:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '982' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:55:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: - body: 'b''{"name": "cli000003", "type": "Microsoft.Storage/storageAccounts"}''' + body: '{"name": "cli000003", "type": "Microsoft.Storage/storageAccounts"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account check-name] - Connection: [keep-alive] - Content-Length: ['81'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account check-name + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --name + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2018-07-01 response: - body: {string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The - storage account named cli000003 is already taken."}'} - headers: - cache-control: [no-cache] - content-length: ['129'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:54:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} + body: + string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The storage + account named cli000003 is already taken."}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 03 Oct 2018 23:54:55 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdYUjVIWTZVT0MyTUlUSjI1U1dTV0pKUUxNU0gzUE43STVNVHxEQ0EzMzE5RUY5QUQ2OThFLU5PUlRIRVVST1BFIiwiam9iTG9jYXRpb24iOiJub3J0aGV1cm9wZSJ9?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '129' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:55:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_with_assigned_identity.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_with_assigned_identity.yaml index 92d69ab11fd..f5fe932b8e0 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_with_assigned_identity.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_create_storage_account_with_assigned_identity.yaml @@ -1,144 +1,148 @@ interactions: -- request: - body: '{"location": "southcentralus", "tags": {"product": "azurecli", "cause": - "automation", "date": "2018-10-03T23:54:56Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['118'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:54:56Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --assign-identity + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:54:56Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:54:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "southcentralus", "identity": {"type": "SystemAssigned"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['122'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --sku --assign-identity + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/fdcae27a-5662-47dd-bb78-f8fc03362d7f?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/6bd7ef60-b038-47df-b92b-a6ea3a8728e7?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku --assign-identity + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/fdcae27a-5662-47dd-bb78-f8fc03362d7f?monitor=true&api-version=2018-07-01 - response: - body: {string: '{"identity":{"principalId":"57c73947-1eb1-4082-a7d9-8ffbbe5180d9","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:01.8104292Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:01.8104292Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:55:01.7479477Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1387'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/6bd7ef60-b038-47df-b92b-a6ea3a8728e7?monitor=true&api-version=2018-07-01 response: - body: {string: ''} + body: + string: '{"identity":{"principalId":"4853b172-5455-4188-b347-5a2db7bc285d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:30.5403694Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:30.5403694Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:30.4778681Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 03 Oct 2018 23:55:21 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdMSFRDM1QyMzdDV1M1T01aSVNZRE0zVVhUUEJTRlFSTkM0N3wzM0E1MUZBNkMwODM4MzY3LVNPVVRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJzb3V0aGNlbnRyYWx1cyJ9?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '1325' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_management_policy.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_management_policy.yaml index 905f237a23f..d4cfa5ff075 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_management_policy.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_management_policy.yaml @@ -1,117 +1,149 @@ interactions: -- request: - body: '{"location": "eastus2euap", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-10-03T23:55:22Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['115'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:55:22Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['389'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -g -n --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:55:22Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['389'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '433' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "eastus2euap"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['83'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '83' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/9169a6b3-e0ee-40ab-ba05-0b714acb93ea?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:29 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/42e05a23-682b-45d7-b06d-cc2f26871b28?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -g -n --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/9169a6b3-e0ee-40ab-ba05-0b714acb93ea?monitor=true&api-version=2018-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/42e05a23-682b-45d7-b06d-cc2f26871b28?monitor=true&api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:25.5117818Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:25.5117818Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-10-03T23:55:25.4492806Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z3.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://cli000002-secondary.dfs.core.windows.net/","web":"https://cli000002-secondary.z3.web.core.windows.net/","blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}'} + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:28.8488921Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:28.8488921Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:28.7863665Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z3.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://cli000002-secondary.dfs.core.windows.net/","web":"https://cli000002-secondary.z3.web.core.windows.net/","blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}' headers: - cache-control: [no-cache] - content-length: ['1800'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '1800' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"properties": {"policy": {"version": "0.5", "rules": [{"name": "olcmtest", "type": "Lifecycle", "definition": {"filters": {"blobTypes": ["blockBlob"], @@ -120,207 +152,308 @@ interactions: 90}, "delete": {"daysAfterModificationGreaterThan": 1000}}, "snapshot": {"delete": {"daysAfterCreationGreaterThan": 5000}}}}}]}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy create] - Connection: [keep-alive] - Content-Length: ['457'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy create + Connection: + - keep-alive + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --account-name -g --policy + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"olcmtest","type":"Lifecycle","definition":{"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]},"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}}}}]},"lastModifiedTime":"2018-10-03T23:55:45.1919523Z"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"olcmtest","type":"Lifecycle","definition":{"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}},"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]}}}]},"lastModifiedTime":"2019-10-30T11:54:50.3593703Z"}}' headers: - cache-control: [no-cache] - content-length: ['827'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:45 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '827' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy update] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy update + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"olcmtest","type":"Lifecycle","definition":{"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]},"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}}}}]},"lastModifiedTime":"2018-10-03T23:55:45.1919523Z"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"olcmtest","type":"Lifecycle","definition":{"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}},"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]}}}]},"lastModifiedTime":"2019-10-30T11:54:50.3593703Z"}}' headers: - cache-control: [no-cache] - content-length: ['827'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:45 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '827' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"properties": {"policy": {"version": "0.5", "rules": [{"name": "newname", - "type": "Lifecycle", "definition": {"filters": {"blobTypes": ["blockBlob"], - "prefixMatch": ["olcmtestcontainer"]}, "actions": {"baseBlob": {"tierToCool": - {"daysAfterModificationGreaterThan": 1000.0}, "tierToArchive": {"daysAfterModificationGreaterThan": - 90.0}, "delete": {"daysAfterModificationGreaterThan": 1000.0}}, "snapshot": - {"delete": {"daysAfterCreationGreaterThan": 5000.0}}}}}]}}}' + "type": "Lifecycle", "definition": {"actions": {"baseBlob": {"tierToCool": {"daysAfterModificationGreaterThan": + 1000.0}, "tierToArchive": {"daysAfterModificationGreaterThan": 90.0}, "delete": + {"daysAfterModificationGreaterThan": 1000.0}}, "snapshot": {"delete": {"daysAfterCreationGreaterThan": + 5000.0}}}, "filters": {"blobTypes": ["blockBlob"], "prefixMatch": ["olcmtestcontainer"]}}}]}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy update] - Connection: [keep-alive] - Content-Length: ['464'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy update + Connection: + - keep-alive + Content-Length: + - '464' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --account-name -g --set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"newname","type":"Lifecycle","definition":{"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]},"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}}}}]},"lastModifiedTime":"2018-10-03T23:55:46.8482663Z"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"newname","type":"Lifecycle","definition":{"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}},"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]}}}]},"lastModifiedTime":"2019-10-30T11:54:53.1568218Z"}}' headers: - cache-control: [no-cache] - content-length: ['826'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy show] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy show + Connection: + - keep-alive + ParameterSetName: + - --account-name -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"newname","type":"Lifecycle","definition":{"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]},"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}}}}]},"lastModifiedTime":"2018-10-03T23:55:46.8482663Z"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default","name":"DefaultManagementPolicy","type":"Microsoft.Storage/storageAccounts/managementPolicies","properties":{"policy":{"version":"0.5","rules":[{"name":"newname","type":"Lifecycle","definition":{"actions":{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":1000.0},"tierToArchive":{"daysAfterModificationGreaterThan":90.0},"delete":{"daysAfterModificationGreaterThan":1000.0}},"snapshot":{"delete":{"daysAfterCreationGreaterThan":5000.0}}},"filters":{"blobTypes":["blockBlob"],"prefixMatch":["olcmtestcontainer"]}}}]},"lastModifiedTime":"2019-10-30T11:54:53.1568218Z"}}' headers: - cache-control: [no-cache] - content-length: ['826'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '826' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy delete] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account management-policy show] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account management-policy show + Connection: + - keep-alive + ParameterSetName: + - --account-name -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002/managementPolicies/default?api-version=2018-03-01-preview response: - body: {string: '{"error":{"code":"ManagementPolicyNotFound","message":"No ManagementPolicy - found for account cli000002"}}'} - headers: - cache-control: [no-cache] - content-length: ['120'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:55:49 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - status: {code: 404, message: Not Found} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} + body: + string: '{"error":{"code":"ManagementPolicyNotFound","message":"No ManagementPolicy + found for account cli000002"}}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 03 Oct 2018 23:55:51 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdYRUFITFozRzNJM1RVM1AyRzJNTDczVzI3SUpNWVpJUldGVXw2NTc3OTlCNDRBQTA0NjEyLUVBU1RVUzJFVUFQIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyZXVhcCJ9?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 404 + message: Not Found version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_directory.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_directory.yaml new file mode 100644 index 00000000000..84b03bb22d1 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_directory.yaml @@ -0,0 +1,1334 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --hierarchical-namespace + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "westcentralus", + "properties": {"isHnsEnabled": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --kind --hierarchical-namespace + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitestaldsaccount000002?api-version=2018-07-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/84b6bdaa-0712-4096-b3a8-1089a6901c60?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind --hierarchical-namespace + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/84b6bdaa-0712-4096-b3a8-1089a6901c60?monitor=true&api-version=2018-07-01 + response: + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitestaldsaccount000002","name":"clitestaldsaccount000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:26.9893726Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:26.9893726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:26.9268511Z","primaryEndpoints":{"dfs":"https://clitestaldsaccount000002.dfs.core.windows.net/","web":"https://clitestaldsaccount000002.z4.web.core.windows.net/","blob":"https://clitestaldsaccount000002.blob.core.windows.net/","queue":"https://clitestaldsaccount000002.queue.core.windows.net/","table":"https://clitestaldsaccount000002.table.core.windows.net/","file":"https://clitestaldsaccount000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://clitestaldsaccount000002-secondary.dfs.core.windows.net/","web":"https://clitestaldsaccount000002-secondary.z4.web.core.windows.net/","blob":"https://clitestaldsaccount000002-secondary.blob.core.windows.net/","queue":"https://clitestaldsaccount000002-secondary.queue.core.windows.net/","table":"https://clitestaldsaccount000002-secondary.table.core.windows.net/"}}}' + headers: + cache-control: + - no-cache + content-length: + - '1818' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account keys list + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --query -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitestaldsaccount000002/listKeys?api-version=2018-07-01 + response: + body: + string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + headers: + cache-control: + - no-cache + content-length: + - '288' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:49 GMT + x-ms-version: + - '2018-11-09' + method: PUT + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:54:54 GMT + etag: + - '"0x8D75D2FF90E97AB"' + last-modified: + - Wed, 30 Oct 2019 11:54:51 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2018-11-09' + status: + code: 201 + message: Created +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:54 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/testdirectory + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:54:57 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-error-code: + - BlobNotFound + x-ms-version: + - '2019-02-02' + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:58 GMT + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/testdirectory?resource=directory + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:54:59 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:59 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/testdirectory + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '0' + content-type: + - application/octet-stream + date: + - Wed, 30 Oct 2019 11:55:00 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 30 Oct 2019 11:54:59 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-hdi_isfolder: + - 'true' + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:55:02 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container&comp=list + response: + body: + string: "\uFEFFtestdirectoryWed, + 30 Oct 2019 11:54:59 GMTWed, 30 Oct 2019 11:54:59 + GMT0x8D75D2FFD840B710application/octet-streamAAAAAAAAAAA=BlockBlobHottrueunlockedtrue" + headers: + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:55:03 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:55:04 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/testdirectory + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '0' + content-type: + - application/octet-stream + date: + - Wed, 30 Oct 2019 11:55:05 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 30 Oct 2019 11:54:59 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-hdi_isfolder: + - 'true' + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:55:11 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container&comp=list&prefix=testdirectory%2F&include=metadata%2Ccopy + response: + body: + string: "\uFEFFtestdirectory/testdirectory/readmeWed, + 30 Oct 2019 11:55:09 GMTWed, 30 Oct 2019 11:55:09 + GMT0x8D75D30036E066B87text/plain; + charset=utf-8sYGKK8OX+WLKH+2bAe4tSQ==BlockBlobHottrueunlockedtrue" + headers: + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:55:12 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:55:17 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container&comp=list&prefix=testdirectory%2F&include=metadata%2Ccopy + response: + body: + string: "\uFEFFtestdirectory/testdirectory/appleWed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069F2EEA0BlockBlobHottrueunlockedtruetruetestdirectory/apple/file_0Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006D6D067128text/plain; + charset=utf-8oea9ZAT8Pg4pIQdaKoTAdw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_1Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071505C0128text/plain; + charset=utf-8kt9N5OQQiHSLa3jJ1gF9Rw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_2Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007226179128text/plain; + charset=utf-86uun3SPHG7pzmnNmmB03lA==BlockBlobHottrueunlockedtruetestdirectory/apple/file_3Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D300708D3BF128text/plain; + charset=utf-88wwFh1cusJc77k6MHlYYPQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_4Wed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069FC39C128text/plain; + charset=utf-8gZg/z7/mT4b91RE+Su86Uw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_5Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006E649DD128text/plain; + charset=utf-83kn+HUpYIQKekgVXD+IT0Q==BlockBlobHottrueunlockedtruetestdirectory/apple/file_6Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007600DF8128text/plain; + charset=utf-8r6SVAXp/TNGImU8lSg5mKQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_7Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071CFA0A128text/plain; + charset=utf-8tCztJKXFy3cEfXBdyLE9hQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_8Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006F9E061128text/plain; + charset=utf-8ogQCNebMwPb+/eSR5mcfBQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_9Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006DE97DB128text/plain; + charset=utf-8ldQ6l2aRCQcDgQx7sPo93w==BlockBlobHottrueunlockedtruetestdirectory/readmeWed, + 30 Oct 2019 11:55:09 GMTWed, 30 Oct 2019 11:55:09 + GMT0x8D75D30036E066B87text/plain; + charset=utf-8sYGKK8OX+WLKH+2bAe4tSQ==BlockBlobHottrueunlockedtrue" + headers: + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:55:19 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:55:30 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container&comp=list&prefix=testdirectory%2F&include=metadata%2Ccopy + response: + body: + string: "\uFEFFtestdirectory/testdirectory/appleWed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069F2EEA0BlockBlobHottrueunlockedtruetruetestdirectory/apple/file_0Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006D6D067128text/plain; + charset=utf-8oea9ZAT8Pg4pIQdaKoTAdw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_1Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071505C0128text/plain; + charset=utf-8kt9N5OQQiHSLa3jJ1gF9Rw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_2Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007226179128text/plain; + charset=utf-86uun3SPHG7pzmnNmmB03lA==BlockBlobHottrueunlockedtruetestdirectory/apple/file_3Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D300708D3BF128text/plain; + charset=utf-88wwFh1cusJc77k6MHlYYPQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_4Wed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069FC39C128text/plain; + charset=utf-8gZg/z7/mT4b91RE+Su86Uw==BlockBlobHottrueunlockedtruetestdirectory/apple/file_5Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006E649DD128text/plain; + charset=utf-83kn+HUpYIQKekgVXD+IT0Q==BlockBlobHottrueunlockedtruetestdirectory/apple/file_6Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007600DF8128text/plain; + charset=utf-8r6SVAXp/TNGImU8lSg5mKQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_7Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071CFA0A128text/plain; + charset=utf-8tCztJKXFy3cEfXBdyLE9hQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_8Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006F9E061128text/plain; + charset=utf-8ogQCNebMwPb+/eSR5mcfBQ==BlockBlobHottrueunlockedtruetestdirectory/apple/file_9Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006DE97DB128text/plain; + charset=utf-8ldQ6l2aRCQcDgQx7sPo93w==BlockBlobHottrueunlockedtruetestdirectory/file_0Wed, + 30 Oct 2019 11:55:28 GMTWed, 30 Oct 2019 11:55:28 + GMT0x8D75D300EA8CF22129text/plain; + charset=utf-8bJ/F+JLp1wbl0CyNZUZgdg==BlockBlobHottrueunlockedtruetestdirectory/file_1Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B17FCA5129text/plain; + charset=utf-84CM7cBiJJypee5JX5ajtIg==BlockBlobHottrueunlockedtruetestdirectory/file_2Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B739AE9129text/plain; + charset=utf-8PTvNosWEV/VFhLuq5PebjA==BlockBlobHottrueunlockedtruetestdirectory/file_3Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B2E6D2A129text/plain; + charset=utf-8TpjyrQ3K1gI3sZw1jHHUIA==BlockBlobHottrueunlockedtruetestdirectory/file_4Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300AAAB372129text/plain; + charset=utf-8GUCGzENNhXDShh7lwn3Rbg==BlockBlobHottrueunlockedtruetestdirectory/file_5Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300A95B81E129text/plain; + charset=utf-8rXgh4aFeDl+XgMuMu/1S/w==BlockBlobHottrueunlockedtruetestdirectory/file_6Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B439ED4129text/plain; + charset=utf-8FR809ZZbr4ZrgBEUS7z2Sw==BlockBlobHottrueunlockedtruetestdirectory/file_7Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300A945E41129text/plain; + charset=utf-8UBpvSg50g1yvYnYWDw2juw==BlockBlobHottrueunlockedtruetestdirectory/file_8Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B7D9DC2129text/plain; + charset=utf-88vwp6GmPlJmapmYad1w/QQ==BlockBlobHottrueunlockedtruetestdirectory/file_9Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B5D9B96129text/plain; + charset=utf-8li4qOJCjNLpP2H0NsNLyfg==BlockBlobHottrueunlockedtruetestdirectory/readmeWed, + 30 Oct 2019 11:55:09 GMTWed, 30 Oct 2019 11:55:09 + GMT0x8D75D30036E066B87text/plain; + charset=utf-8sYGKK8OX+WLKH+2bAe4tSQ==BlockBlobHottrueunlockedtrue" + headers: + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:55:32 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:16 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/desdirectory + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:56:17 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-error-code: + - BlobNotFound + x-ms-version: + - '2019-02-02' + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:18 GMT + x-ms-rename-source: + - /cont7ggphddlnsy53ajhkl4c/testdirectory + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:19 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:20 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/testdirectory + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:56:20 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-error-code: + - BlobNotFound + x-ms-version: + - '2019-02-02' + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:22 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/desdirectory + response: + body: + string: '' + headers: + accept-ranges: + - bytes + content-length: + - '0' + content-type: + - application/octet-stream + date: + - Wed, 30 Oct 2019 11:56:23 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 30 Oct 2019 11:54:59 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-meta-hdi_isfolder: + - 'true' + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:24 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003?restype=container&comp=list&prefix=desdirectory%2F&include=metadata%2Ccopy + response: + body: + string: "\uFEFFdesdirectory/desdirectory/appleWed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069F2EEA0BlockBlobHottrueunlockedtruetruedesdirectory/apple/file_0Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006D6D067128text/plain; + charset=utf-8oea9ZAT8Pg4pIQdaKoTAdw==BlockBlobHottrueunlockedtruedesdirectory/apple/file_1Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071505C0128text/plain; + charset=utf-8kt9N5OQQiHSLa3jJ1gF9Rw==BlockBlobHottrueunlockedtruedesdirectory/apple/file_2Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007226179128text/plain; + charset=utf-86uun3SPHG7pzmnNmmB03lA==BlockBlobHottrueunlockedtruedesdirectory/apple/file_3Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D300708D3BF128text/plain; + charset=utf-88wwFh1cusJc77k6MHlYYPQ==BlockBlobHottrueunlockedtruedesdirectory/apple/file_4Wed, + 30 Oct 2019 11:55:14 GMTWed, 30 Oct 2019 11:55:14 + GMT0x8D75D30069FC39C128text/plain; + charset=utf-8gZg/z7/mT4b91RE+Su86Uw==BlockBlobHottrueunlockedtruedesdirectory/apple/file_5Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006E649DD128text/plain; + charset=utf-83kn+HUpYIQKekgVXD+IT0Q==BlockBlobHottrueunlockedtruedesdirectory/apple/file_6Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3007600DF8128text/plain; + charset=utf-8r6SVAXp/TNGImU8lSg5mKQ==BlockBlobHottrueunlockedtruedesdirectory/apple/file_7Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D30071CFA0A128text/plain; + charset=utf-8tCztJKXFy3cEfXBdyLE9hQ==BlockBlobHottrueunlockedtruedesdirectory/apple/file_8Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006F9E061128text/plain; + charset=utf-8ogQCNebMwPb+/eSR5mcfBQ==BlockBlobHottrueunlockedtruedesdirectory/apple/file_9Wed, + 30 Oct 2019 11:55:15 GMTWed, 30 Oct 2019 11:55:15 + GMT0x8D75D3006DE97DB128text/plain; + charset=utf-8ldQ6l2aRCQcDgQx7sPo93w==BlockBlobHottrueunlockedtruedesdirectory/file_0Wed, + 30 Oct 2019 11:55:28 GMTWed, 30 Oct 2019 11:55:28 + GMT0x8D75D300EA8CF22129text/plain; + charset=utf-8bJ/F+JLp1wbl0CyNZUZgdg==BlockBlobHottrueunlockedtruedesdirectory/file_1Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B17FCA5129text/plain; + charset=utf-84CM7cBiJJypee5JX5ajtIg==BlockBlobHottrueunlockedtruedesdirectory/file_2Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B739AE9129text/plain; + charset=utf-8PTvNosWEV/VFhLuq5PebjA==BlockBlobHottrueunlockedtruedesdirectory/file_3Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B2E6D2A129text/plain; + charset=utf-8TpjyrQ3K1gI3sZw1jHHUIA==BlockBlobHottrueunlockedtruedesdirectory/file_4Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300AAAB372129text/plain; + charset=utf-8GUCGzENNhXDShh7lwn3Rbg==BlockBlobHottrueunlockedtruedesdirectory/file_5Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300A95B81E129text/plain; + charset=utf-8rXgh4aFeDl+XgMuMu/1S/w==BlockBlobHottrueunlockedtruedesdirectory/file_6Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B439ED4129text/plain; + charset=utf-8FR809ZZbr4ZrgBEUS7z2Sw==BlockBlobHottrueunlockedtruedesdirectory/file_7Wed, + 30 Oct 2019 11:55:21 GMTWed, 30 Oct 2019 11:55:21 + GMT0x8D75D300A945E41129text/plain; + charset=utf-8UBpvSg50g1yvYnYWDw2juw==BlockBlobHottrueunlockedtruedesdirectory/file_8Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B7D9DC2129text/plain; + charset=utf-88vwp6GmPlJmapmYad1w/QQ==BlockBlobHottrueunlockedtruedesdirectory/file_9Wed, + 30 Oct 2019 11:55:22 GMTWed, 30 Oct 2019 11:55:22 + GMT0x8D75D300B5D9B96129text/plain; + charset=utf-8li4qOJCjNLpP2H0NsNLyfg==BlockBlobHottrueunlockedtruedesdirectory/readmeWed, + 30 Oct 2019 11:55:09 GMTWed, 30 Oct 2019 11:55:09 + GMT0x8D75D30036E066B87text/plain; + charset=utf-8sYGKK8OX+WLKH+2bAe4tSQ==BlockBlobHottrueunlockedtrue" + headers: + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:56:24 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-acl: + - user::rwx,group::r--,other::--- + x-ms-date: + - Wed, 30 Oct 2019 11:56:26 GMT + x-ms-version: + - '2019-02-02' + method: PATCH + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory?action=setAccessControl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:26 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-namespace-enabled: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:28 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory?action=getAccessControl&upn=False + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:56:28 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-acl: + - user::rwx,group::r--,other::--- + x-ms-group: + - $superuser + x-ms-owner: + - $superuser + x-ms-permissions: + - rwxr----- + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:29 GMT + x-ms-permissions: + - rwxrwxrwx + x-ms-version: + - '2019-02-02' + method: PATCH + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory?action=setAccessControl + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:31 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-namespace-enabled: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:32 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory?action=getAccessControl&upn=False + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:56:32 GMT + etag: + - '"0x8D75D2FFD840B71"' + last-modified: + - Wed, 30 Oct 2019 11:54:59 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-acl: + - user::rwx,group::rwx,other::rwx + x-ms-group: + - $superuser + x-ms-owner: + - $superuser + x-ms-permissions: + - rwxrwxrwx + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:34 GMT + x-ms-meta-tag1: + - value1 + x-ms-version: + - '2019-02-02' + method: PUT + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/desdirectory?comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:35 GMT + etag: + - '"0x8D75D30372EE944"' + last-modified: + - Wed, 30 Oct 2019 11:56:36 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:36 GMT + x-ms-version: + - '2019-02-02' + method: GET + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/desdirectory?comp=metadata + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:37 GMT + etag: + - '"0x8D75D30372EE944"' + last-modified: + - Wed, 30 Oct 2019 11:56:36 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-meta-hdi_isfolder: + - 'true' + x-ms-meta-tag1: + - value1 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:39 GMT + x-ms-version: + - '2019-02-02' + method: DELETE + uri: https://clitestaldsaccount000002.dfs.core.windows.net/cont000003/desdirectory?recursive=True + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:56:39 GMT + server: + - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + User-Agent: + - Azure-Storage/2.1.0-2.1.0 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:56:41 GMT + x-ms-version: + - '2019-02-02' + method: HEAD + uri: https://clitestaldsaccount000002.blob.core.windows.net/cont000003/desdirectory + response: + body: + string: '' + headers: + date: + - Wed, 30 Oct 2019 11:56:42 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-error-code: + - BlobNotFound + x-ms-version: + - '2019-02-02' + status: + code: 404 + message: The specified blob does not exist. +version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_update_service_properties.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_update_service_properties.yaml index 3632e8eb2b6..a4ecf8159cf 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_update_service_properties.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_blob_update_service_properties.yaml @@ -1,275 +1,356 @@ interactions: -- request: - body: '{"location": "westcentralus", "tags": {"product": "azurecli", "cause": - "automation", "date": "2018-10-04T00:18:08Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['117'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-04T00:18:08Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['391'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 04 Oct 2018 00:18:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-04T00:18:08Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['391'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 04 Oct 2018 00:18:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "westcentralus"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['85'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '85' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/account000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Thu, 04 Oct 2018 00:18:15 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e3db71bc-8fbb-4d68-a7a1-4c78da4e7385?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/3eb6fb7d-dc7d-4843-8777-9c84a60497ed?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --kind + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/e3db71bc-8fbb-4d68-a7a1-4c78da4e7385?monitor=true&api-version=2018-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westcentralus/asyncoperations/3eb6fb7d-dc7d-4843-8777-9c84a60497ed?monitor=true&api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/account000002","name":"account000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-04T00:18:14.9865494Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-04T00:18:14.9865494Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2018-10-04T00:18:14.9241004Z","primaryEndpoints":{"dfs":"https://account000002.dfs.core.windows.net/","web":"https://account000002.z4.web.core.windows.net/","blob":"https://account000002.blob.core.windows.net/","queue":"https://account000002.queue.core.windows.net/","table":"https://account000002.table.core.windows.net/","file":"https://account000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://account000002-secondary.dfs.core.windows.net/","web":"https://account000002-secondary.z4.web.core.windows.net/","blob":"https://account000002-secondary.blob.core.windows.net/","queue":"https://account000002-secondary.queue.core.windows.net/","table":"https://account000002-secondary.table.core.windows.net/"}}}'} + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/account000002","name":"account000002","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.4268846Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.4268846Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:27.3643395Z","primaryEndpoints":{"dfs":"https://account000002.dfs.core.windows.net/","web":"https://account000002.z4.web.core.windows.net/","blob":"https://account000002.blob.core.windows.net/","queue":"https://account000002.queue.core.windows.net/","table":"https://account000002.table.core.windows.net/","file":"https://account000002.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://account000002-secondary.dfs.core.windows.net/","web":"https://account000002-secondary.z4.web.core.windows.net/","blob":"https://account000002-secondary.blob.core.windows.net/","queue":"https://account000002-secondary.queue.core.windows.net/","table":"https://account000002-secondary.table.core.windows.net/"}}}' headers: - cache-control: [no-cache] - content-length: ['1798'] - content-type: [application/json] - date: ['Thu, 04 Oct 2018 00:18:31 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '1798' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0rc4 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account keys list + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --query -o + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/account000002/listKeys?api-version=2018-07-01 response: - body: {string: '{"keys":[{"keyName":"key1","value":"cWc+/D4kTMuLz8QmyBzEaGKhvYZCj8tzEKsUxemRzJxCYB3wcZcqBSTjxklG/eb4JQONWt3xZ1N3pIHzkkmdeQ==","permissions":"FULL"},{"keyName":"key2","value":"YttP85pIXn5htsZyauVwKGjRhlHlve7pOhPMVh72QctkX44+xeR3lRzuoRK7cTRDDclISWCv+9OFhUkBURWr0w==","permissions":"FULL"}]}'} + body: + string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: - cache-control: [no-cache] - content-length: ['288'] - content-type: [application/json] - date: ['Thu, 04 Oct 2018 00:18:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '288' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK - request: body: null headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.6.5; Windows - 10) AZURECLI/2.0.47] - x-ms-date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - x-ms-version: ['2018-03-28'] + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:49 GMT + x-ms-version: + - '2018-03-28' method: GET uri: https://account000002.blob.core.windows.net/?restype=service&comp=properties response: - body: {string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"} + body: + string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse" headers: - content-type: [application/xml] - date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2018-03-28'] - status: {code: 200, message: OK} + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:54:50 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-03-28' + status: + code: 200 + message: OK - request: body: null headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.6.5; Windows - 10) AZURECLI/2.0.47] - x-ms-date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - x-ms-version: ['2018-03-28'] + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:51 GMT + x-ms-version: + - '2018-03-28' method: GET uri: https://account000002.blob.core.windows.net/?restype=service&comp=properties response: - body: {string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse"} + body: + string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsefalse" headers: - content-type: [application/xml] - date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2018-03-28'] - status: {code: 200, message: OK} + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:54:51 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-03-28' + status: + code: 200 + message: OK - request: body: ' Trueindex.htmlerror.html' headers: - Connection: [keep-alive] - Content-Length: ['242'] - User-Agent: [Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.6.5; Windows - 10) AZURECLI/2.0.47] - x-ms-date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - x-ms-version: ['2018-03-28'] + Connection: + - keep-alive + Content-Length: + - '242' + User-Agent: + - Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:52 GMT + x-ms-version: + - '2018-03-28' method: PUT uri: https://account000002.blob.core.windows.net/?restype=service&comp=properties response: - body: {string: ''} + body: + string: '' headers: - date: ['Thu, 04 Oct 2018 00:18:36 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2018-03-28'] - status: {code: 202, message: Accepted} + content-length: + - '0' + date: + - Wed, 30 Oct 2019 11:54:53 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2018-03-28' + status: + code: 202 + message: Accepted - request: body: null headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.6.5; Windows - 10) AZURECLI/2.0.47] - x-ms-date: ['Thu, 04 Oct 2018 00:18:36 GMT'] - x-ms-version: ['2018-03-28'] + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:53 GMT + x-ms-version: + - '2018-03-28' method: GET uri: https://account000002.blob.core.windows.net/?restype=service&comp=properties response: - body: {string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsetrueindex.htmlerror.html"} + body: + string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsetrueindex.htmlerror.html" headers: - content-type: [application/xml] - date: ['Thu, 04 Oct 2018 00:18:36 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2018-03-28'] - status: {code: 200, message: OK} + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:54:53 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-03-28' + status: + code: 200 + message: OK - request: body: null headers: - Connection: [keep-alive] - User-Agent: [Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.6.5; Windows - 10) AZURECLI/2.0.47] - x-ms-date: ['Thu, 04 Oct 2018 00:18:36 GMT'] - x-ms-version: ['2018-03-28'] + Connection: + - keep-alive + User-Agent: + - Azure-Storage/1.2.0rc1-1.2.0rc1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.0.75 + x-ms-date: + - Wed, 30 Oct 2019 11:54:54 GMT + x-ms-version: + - '2018-03-28' method: GET uri: https://account000002.blob.core.windows.net/?restype=service&comp=properties response: - body: {string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsetrueindex.htmlerror.html"} - headers: - content-type: [application/xml] - date: ['Thu, 04 Oct 2018 00:18:35 GMT'] - server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - transfer-encoding: [chunked] - x-ms-version: ['2018-03-28'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} + body: + string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsefalsetrueindex.htmlerror.html" headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 04 Oct 2018 00:18:37 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdEWjZCUVMzRlY1N0JBUFMzUVZCSjVYWllYU1dBM0hTSjQ0N3w3N0UwOTQ0MjJCRDIzNEUzLVdFU1RDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Indlc3RjZW50cmFsdXMifQ?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14997'] - status: {code: 202, message: Accepted} + content-type: + - application/xml + date: + - Wed, 30 Oct 2019 11:54:54 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2018-03-28' + status: + code: 200 + message: OK version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_create_default_sku.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_create_default_sku.yaml index a1b2b92852d..4abdbb8df5a 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_create_default_sku.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_create_default_sku.yaml @@ -1,143 +1,147 @@ interactions: -- request: - body: '{"location": "southcentralus", "tags": {"product": "azurecli", "cause": - "automation", "date": "2018-10-03T23:55:52Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['118'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:55:52Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:55:52Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_RAGRS"}, "kind": "Storage", "location": "southcentralus"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['84'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '84' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:55:54 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/ea7b34e7-e1ce-4c22-827a-4b4b5f1588f8?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/dc821dce-e774-4cd0-b760-0f94d66ba9a3?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/ea7b34e7-e1ce-4c22-827a-4b4b5f1588f8?monitor=true&api-version=2018-07-01 - response: - body: {string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:55.2963279Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:55:55.2963279Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:55:55.2338280Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available","secondaryLocation":"northcentralus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}'} - headers: - cache-control: [no-cache] - content-length: ['1570'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:56:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/dc821dce-e774-4cd0-b760-0f94d66ba9a3?monitor=true&api-version=2018-07-01 response: - body: {string: ''} + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.3521871Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.3521871Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:27.2896863Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available","secondaryLocation":"northcentralus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 03 Oct 2018 23:56:14 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc1UFpYNk5KTU9QS0NWT0FESVVCNVhIWEs0WVdGSEpMSkVPSnxDQ0E2NjlEMjlGNjQ0OUJBLVNPVVRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJzb3V0aGNlbnRyYWx1cyJ9?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '1508' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_update_storage_account_with_assigned_identity.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_update_storage_account_with_assigned_identity.yaml index 2b386b8382b..a0f566b8896 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_update_storage_account_with_assigned_identity.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_update_storage_account_with_assigned_identity.yaml @@ -1,145 +1,198 @@ interactions: -- request: - body: '{"location": "southcentralus", "tags": {"product": "azurecli", "cause": - "automation", "date": "2018-10-03T23:56:14Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['118'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:56:14Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:56:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-03T23:56:14Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-30T11:54:14Z"},"properties":{"provisioningState":"Succeeded"}}' headers: - cache-control: [no-cache] - content-length: ['392'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:56:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_LRS"}, "kind": "Storage", "location": "southcentralus"}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - Content-Length: ['82'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + Content-Length: + - '82' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [no-cache] - content-length: ['0'] - content-type: [text/plain; charset=utf-8] - date: ['Wed, 03 Oct 2018 23:56:18 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/18df2ef5-8148-4d0c-b71a-639281c6ebf0?monitor=true&api-version=2018-07-01'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '0' + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 30 Oct 2019 11:54:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/521adbb5-5a23-4c74-8891-6116c2863f0c?monitor=true&api-version=2018-07-01 + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account create + Connection: + - keep-alive + ParameterSetName: + - -n -g --sku + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/18df2ef5-8148-4d0c-b71a-639281c6ebf0?monitor=true&api-version=2018-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/521adbb5-5a23-4c74-8891-6116c2863f0c?monitor=true&api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:56:18.2315761Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}'} + body: + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:27.9307948Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['1247'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:56:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '1185' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account update] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account update + Connection: + - keep-alive + ParameterSetName: + - -n -g --assign-identity + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:56:18.2315761Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}'} + body: + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:27.9307948Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['1247'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:56:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} + cache-control: + - no-cache + content-length: + - '1185' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK - request: body: '{"sku": {"name": "Standard_LRS"}, "tags": {}, "identity": {"type": "SystemAssigned"}, "properties": {"encryption": {"services": {"blob": {"enabled": true}, "file": @@ -147,60 +200,56 @@ interactions: false, "networkAcls": {"bypass": "AzureServices", "virtualNetworkRules": [], "ipRules": [], "defaultAction": "Allow"}}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [storage account update] - Connection: [keep-alive] - Content-Length: ['366'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 azure-mgmt-storage/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.47] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage account update + Connection: + - keep-alive + Content-Length: + - '366' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --assign-identity + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-storage/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + accept-language: + - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2018-07-01 response: - body: {string: '{"identity":{"principalId":"d7fb3e2f-5dfa-41be-bd55-62c3a24bd143","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"trustedDirectories":["72f988bf-86f1-41af-91ab-2d7cd011db47"],"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"},"blob":{"enabled":true,"lastEnabledTime":"2018-10-03T23:56:18.2784439Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-03T23:56:18.2315761Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}'} - headers: - cache-control: [no-cache] - content-length: ['1387'] - content-type: [application/json] - date: ['Wed, 03 Oct 2018 23:56:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: ['Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 - Microsoft-HTTPAPI/2.0'] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.4 - msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} + body: + string: '{"identity":{"principalId":"104f6164-2578-4c95-a509-561e828ca115","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"},"blob":{"enabled":true,"lastEnabledTime":"2019-10-30T11:54:27.9932497Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-10-30T11:54:27.9307948Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}' headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 03 Oct 2018 23:56:40 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGWUZVRkFXS1JQV0FXWVhCRkM1RkZOSVhTM1lLSVhQS09XUnxBQUY2OTBGNEZDQTRGNEJELVNPVVRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJzb3V0aGNlbnRyYWx1cyJ9?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] - status: {code: 202, message: Accepted} + cache-control: + - no-cache + content-length: + - '1325' + content-type: + - application/json + date: + - Wed, 30 Oct 2019 11:54:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK version: 1 diff --git a/src/storage-preview/azext_storage_preview/tests/latest/test_storage_adls_scenarios.py b/src/storage-preview/azext_storage_preview/tests/latest/test_storage_adls_scenarios.py new file mode 100644 index 00000000000..641ca9707dd --- /dev/null +++ b/src/storage-preview/azext_storage_preview/tests/latest/test_storage_adls_scenarios.py @@ -0,0 +1,114 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, + JMESPathCheck, api_version_constraint) + +from .storage_test_util import StorageScenarioMixin, StorageTestFilesPreparer +from ...profiles import CUSTOM_MGMT_STORAGE + + +@api_version_constraint(CUSTOM_MGMT_STORAGE, min_api='2016-12-01') +class StorageBlobDirectoryTests(StorageScenarioMixin, ScenarioTest): + @StorageTestFilesPreparer() + @ResourceGroupPreparer(location='westcentralus') + def test_storage_blob_directory(self, resource_group, test_dir): + storage_account = self.create_random_name(prefix='clitestaldsaccount', length=24) + self.kwargs.update({ + 'sc': storage_account, + 'rg': resource_group + }) + self.cmd('storage account create -n {sc} -g {rg} --kind StorageV2 --hierarchical-namespace true') + account_info = self.get_account_info(resource_group, storage_account) + container = self.create_container(account_info) + directory = 'testdirectory' + + # Create a storage blob directory and check its existence + self.storage_cmd('storage blob directory exists -c {} -d {}', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('exists', False)) + self.storage_cmd('storage blob directory create -c {} -d {}', account_info, container, directory) + self.storage_cmd('storage blob directory exists -c {} -d {} ', account_info, container, directory)\ + .assert_with_checks(JMESPathCheck('exists', True)) + self.storage_cmd('storage blob list -c {}', account_info, container) \ + .assert_with_checks(JMESPathCheck('length(@)', 1)) + self.storage_cmd('storage blob directory show -c {} -d {} ', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('metadata.hdi_isfolder', "true")) + + # Upload a single blob to the blob directory + self.storage_cmd('storage blob directory upload -c {} -d {} -s "{}"', account_info, container, directory, + os.path.join(test_dir, 'readme')) + self.storage_cmd('storage blob directory list -c {} -d {}', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('length(@)', 1)) + + # Upload a local directory to the blob directory + self.storage_cmd('storage blob directory upload -c {} -d {} -s "{}" --recursive', account_info, container, + directory, os.path.join(test_dir, 'apple')) + self.storage_cmd('storage blob directory list -c {} -d {}', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('length(@)', 12)) + + # Upload files in a local directory to the blob directory + self.storage_cmd('storage blob directory upload -c {} -d {} -s "{}" --recursive', account_info, container, + directory, os.path.join(test_dir, 'butter/file_*')) + self.storage_cmd('storage blob directory list -c {} -d {}', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('length(@)', 22)) + + local_folder = self.create_temp_dir() + # Download a single file + self.storage_cmd('storage blob directory download -c {} -s "{}" -d "{}" --recursive', account_info, container, + os.path.join(directory, 'readme'), local_folder) + self.assertEqual(1, sum(len(f) for r, d, f in os.walk(local_folder))) + + # Download entire directory + self.storage_cmd('storage blob directory download -c {} -s {} -d "{}" --recursive', account_info, container, + directory, local_folder) + self.assertEqual(2, sum(len(d) for r, d, f in os.walk(local_folder))) + self.assertEqual(22, sum(len(f) for r, d, f in os.walk(local_folder))) + + # Download an entire subdirectory of a storage blob directory. + self.storage_cmd('storage blob directory download -c {} -s {} -d "{}" --recursive', account_info, container, + '/'.join([directory, 'apple']), local_folder) + self.assertEqual(3, sum(len(d) for r, d, f in os.walk(local_folder))) + self.assertEqual(32, sum(len(f) for r, d, f in os.walk(local_folder))) + + # Move the blob directory to another directory + des_directory = 'desdirectory' + self.storage_cmd('storage blob directory exists -c {} -d {} ', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('exists', False)) + self.storage_cmd('storage blob directory move -c {} -d {} -s {}', account_info, + container, des_directory, directory) + self.storage_cmd('storage blob directory exists -c {} -d {} ', account_info, container, directory) \ + .assert_with_checks(JMESPathCheck('exists', False)) + self.storage_cmd('storage blob directory exists -c {} -d {} ', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('exists', True)) + self.storage_cmd('storage blob directory list -c {} -d {}', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('length(@)', 22)) + + # Storage blob directory access control + acl = "user::rwx,group::r--,other::---" + self.storage_cmd('storage blob directory access set -c {} -d {} -a "{}"', account_info, container, des_directory, acl) + self.storage_cmd('storage blob directory access show -c {} -d {}', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('acl', acl)) + self.storage_cmd('storage blob directory access update -c {} -d {} --permissions "rwxrwxrwx"', account_info, + container, des_directory, acl) + self.storage_cmd('storage blob directory access show -c {} -d {}', account_info, container, + des_directory).assert_with_checks(JMESPathCheck('permissions', "rwxrwxrwx")) + + # Storage blob directory metadata + self.storage_cmd('storage blob directory metadata update -c {} -d {} --metadata "tag1=value1"', account_info, + container, des_directory) + self.storage_cmd('storage blob directory metadata show -c {} -d {} ', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('tag1', "value1")) + + # Remove blob directory + self.storage_cmd('storage blob directory delete -c {} -d {} --recursive', account_info, + container, des_directory, directory) + self.storage_cmd('storage blob directory exists -c {} -d {}', account_info, container, des_directory) \ + .assert_with_checks(JMESPathCheck('exists', False)) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/__init__.py b/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/__init__.py new file mode 100644 index 00000000000..a5b81f3bde4 --- /dev/null +++ b/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/v2019_02_02_preview b/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/v2019_02_02_preview new file mode 160000 index 00000000000..c1eb9755f0c --- /dev/null +++ b/src/storage-preview/azext_storage_preview/vendored_sdks/azure_adls_storage_preview/v2019_02_02_preview @@ -0,0 +1 @@ +Subproject commit c1eb9755f0c3f30950c56729e20045b0a37d420c diff --git a/src/storage-preview/setup.py b/src/storage-preview/setup.py index ca58e24e99a..462d018fb64 100644 --- a/src/storage-preview/setup.py +++ b/src/storage-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.2.8" +VERSION = "0.2.9" CLASSIFIERS = [ 'Development Status :: 4 - Beta',