diff --git a/linter_exclusions.yml b/linter_exclusions.yml index 41d508e048c..bf30f578766 100644 --- a/linter_exclusions.yml +++ b/linter_exclusions.yml @@ -370,6 +370,17 @@ databox job create: staging_storage_account: rule_exclusions: - option_length_too_long + transfer_configuration_type: + rule_exclusions: + - option_length_too_long + transfer_filter_details: + rule_exclusions: + - option_length_too_long +databox job mark-devices-shipped: + parameters: + deliver_package_details: + rule_exclusions: + - option_length_too_long databricks workspace create: parameters: managed_resource_group: diff --git a/src/databox/HISTORY.rst b/src/databox/HISTORY.rst index c3e5d4838ef..5adc12cbea6 100644 --- a/src/databox/HISTORY.rst +++ b/src/databox/HISTORY.rst @@ -3,6 +3,12 @@ Release History =============== +1.0.0 +++++++ +* `az databox job create`: Add new parameter `--transfer-type` `--transfer-configuration-type` `--transfer-filter-details` `--data-box-customer-disk` to support managing import or export` jobs +* `az databox job create/update`: Add new parameter `--kek-type` `--kek-identity` `--kek-url` `--kek-vault-resource-id` to support managing customer managed key +* `az databox job`: Add new subcommand `mark-devices-shipped` to support marking devices shipped + 0.1.2 ++++++ * Migrate to track2 SDK diff --git a/src/databox/azext_databox/__init__.py b/src/databox/azext_databox/__init__.py index f7ea258697c..a2c5285a445 100644 --- a/src/databox/azext_databox/__init__.py +++ b/src/databox/azext_databox/__init__.py @@ -1,26 +1,36 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- from azure.cli.core import AzCommandsLoader - -import azext_databox._help # pylint: disable=unused-import +from azext_databox._help import helps # pylint: disable=unused-import class DataBoxCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType - from azext_databox._client_factory import cf_databox - databox_custom = CliCommandType( - operations_tmpl='azext_databox.custom#{}', - client_factory=cf_databox) - super(DataBoxCommandsLoader, self).__init__(cli_ctx=cli_ctx, - custom_command_type=databox_custom) + custom_command_type = CliCommandType( + operations_tmpl='azext_databox.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) def load_command_table(self, args): from azext_databox.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table + try: + from . import aaz + except ImportError: + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) load_command_table(self, args) return self.command_table diff --git a/src/databox/azext_databox/_help.py b/src/databox/azext_databox/_help.py index ff8468658c7..126d5d00714 100644 --- a/src/databox/azext_databox/_help.py +++ b/src/databox/azext_databox/_help.py @@ -1,105 +1,11 @@ -# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -# pylint: disable=too-many-lines # pylint: disable=line-too-long -from knack.help_files import helps # pylint: disable=unused-import - -helps['databox'] = """ - type: group - short-summary: Manage databox. -""" - -helps['databox job'] = """ - type: group - short-summary: Commands to manage databox job. -""" - -helps['databox job create'] = """ - type: command - short-summary: Create a new job with the specified parameters. - examples: - - name: Create a databox job to use both storage account and managed disk as data destination. - text: |- - az databox job create --resource-group "SdkRg4981" --name "SdkJob3971" --location \\ - "westus" --sku "DataBox" --contact-name "Public SDK Test" \\ - --phone "1234567890" --email-list "testing@microsoft.com" \\ - --street-address1 "16 TOWNSEND ST" --street-address2 "Unit 1" --city "San Francisco" \\ - --state-or-province "CA" --country "US" --postal-code "94107" --company-name "Microsoft" \\ - --storage-account sa1 sa2 --staging-storage-account sa \\ - --resource-group-for-managed-disk /subscriptions/sub/resourceGroups/rg - - - name: Create a databoxdisk job to use storage account as data destination. - text: |- - az databox job create --resource-group "SdkRg4981" --name "SdkJob3971" --location \\ - "westus" --sku "DataBoxDisk" --expected-data-size 1 --contact-name "Public SDK Test" \\ - --phone "1234567890" --email-list "testing@microsoft.com" --street-address1 "16 TOWNSEND ST" \\ - --street-address2 "Unit 1" --city "San Francisco" --state-or-province "CA" --country "US" \\ - --postal-code "94107" --company-name "Microsoft" --storage-account sa1 -""" - -helps['databox job update'] = """ - type: command - short-summary: Update an existing job with the specified parameters. - examples: - - name: Update the job "SdkJob3971" with the specified parameters. - text: |- - az databox job update --resource-group "SdkRg4981" --name "SdkJob3971" \\ - --contact-name "Update Job" --phone "1234567890" \\ - --email-list "testing@microsoft.com" \\ - --street-address1 "16 TOWNSEND ST" \\ - --city "San Francisco" --state-or-province "CA" \\ - --country "US" --postal-code "94107" \\ - --company-name "Microsoft" \\ -""" - -helps['databox job delete'] = """ - type: command - short-summary: Delete a job. - examples: - - name: Delete the job "SdkJob3971" in resource group "SdkRg4981". - text: |- - az databox job delete --resource-group "SdkRg4981" --name "SdkJob3971" -""" - -helps['databox job show'] = """ - type: command - short-summary: Get information about the specified job. - examples: - - name: Get the information about the job "SdkJob3971". - text: |- - az databox job show --resource-group "SdkRg4981" --name "SdkJob3971" -""" - -helps['databox job list'] = """ - type: command - short-summary: List all the jobs available under the given resource group or the given subscription. - examples: - - name: List all the jobs available under the current subscription. - text: |- - az databox job list - - name: List all the jobs available under the resource group "SdkRg4981". - text: |- - az databox job list --resource-group "SdkRg4981" -""" - -helps['databox job cancel'] = """ - type: command - short-summary: Cancel a job. - examples: - - name: Cancel the job "SdkJob3971" under resource group "SdkRg4981". - text: |- - az databox job cancel --resource-group "SdkRg4981" --name "SdkJob3971" --reason "CancelTest" -""" +# pylint: disable=too-many-lines -helps['databox job list-credentials'] = """ - type: command - short-summary: List the unencrypted secrets related to the job. - examples: - - name: List the unencrypted secrets related to the job "TJ-636646322037905056". - text: |- - az databox job list-credentials --resource-group "bvttoolrg6" --name "TJ-636646322037905056" -""" +from knack.help_files import helps # pylint: disable=unused-import diff --git a/src/databox/azext_databox/_params.py b/src/databox/azext_databox/_params.py index c9d09d4467c..cfcec717c9c 100644 --- a/src/databox/azext_databox/_params.py +++ b/src/databox/azext_databox/_params.py @@ -1,75 +1,13 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long + # pylint: disable=too-many-lines # pylint: disable=too-many-statements -from azure.cli.core.commands.parameters import ( - tags_type, - get_enum_type, - get_location_type -) -from azure.cli.core.commands.validators import get_default_location_from_resource_group -from knack.arguments import CLIArgumentType - - -def load_arguments(self, _): - storage_accounts_type = CLIArgumentType(help='Space-separated list of the destination storage account. It can be the name or resource ID of storage account.', arg_group='Storage Account', nargs='+') - staging_storage_account_type = CLIArgumentType(help='The name or ID of the destination storage account that can be used to copy the vhd for staging.', arg_group='Managed Disk') - resource_group_for_managed_disk_type = CLIArgumentType(help='The name or ID of the destination resource group where the Compute disks should be created.', arg_group='Managed Disk') - job_name_type = CLIArgumentType(options_list=['--name', '-n'], help='The name of the job resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only') - - with self.argument_context('databox job create') as c: - c.argument('job_name', job_name_type) - c.argument('location', arg_type=get_location_type(self.cli_ctx), default=None, - validator=get_default_location_from_resource_group) - c.argument('tags', tags_type) - c.argument('sku', arg_type=get_enum_type(['DataBox', 'DataBoxDisk', 'DataBoxHeavy']), - help='The sku type of DataBox.') - c.argument('expected_data_size', type=int, help='The expected size of the data which needs to be transferred in this job, in terabytes.The maximum usable capacity is up to 35 TB. This is only needed when sku is DataBoxDisk.') - c.argument('contact_name', help='Contact name of the person.', arg_group='Contact Details') - c.argument('phone', help='Phone number of the contact person.', arg_group='Contact Details') - c.argument('mobile', help='Mobile number of the contact person.', arg_group='Contact Details') - c.argument('email_list', help='Space-separated list of Email addresses to be notified about job progress.', arg_group='Contact Details', nargs='+') - c.argument('street_address1', help='Street Address line 1.', arg_group='Shipping Address') - c.argument('street_address2', help='Street Address line 2.', arg_group='Shipping Address') - c.argument('street_address3', help='Street Address line 3.', arg_group='Shipping Address') - c.argument('city', help='Name of the City.', arg_group='Shipping Address') - c.argument('state_or_province', help='Name of the State or Province.', arg_group='Shipping Address') - c.argument('country', help='Name of the Country. Ex: US', arg_group='Shipping Address') - c.argument('postal_code', help='Postal code.', arg_group='Shipping Address') - c.argument('company_name', help='Name of the company.', arg_group='Shipping Address') - c.extra('storage_accounts', arg_type=storage_accounts_type) - c.extra('staging_storage_account', arg_type=staging_storage_account_type) - c.extra('resource_group_for_managed_disk', arg_type=resource_group_for_managed_disk_type) - c.ignore('destination_account_details') - - with self.argument_context('databox job update') as c: - c.argument('job_name', job_name_type) - c.argument('contact_name', help='Contact name of the person.', arg_group='Contact Details') - c.argument('phone', help='Phone number of the contact person.', arg_group='Contact Details') - c.argument('mobile', help='Mobile number of the contact person.', arg_group='Contact Details') - c.argument('email_list', help='List of Email addresses to be notified about job progress.', arg_group='Contact Details', nargs='+') - c.argument('street_address1', help='Street Address line 1.', arg_group='Shipping Address') - c.argument('street_address2', help='Street Address line 2.', arg_group='Shipping Address') - c.argument('street_address3', help='Street Address line 3.', arg_group='Shipping Address') - c.argument('city', help='Name of the City.', arg_group='Shipping Address') - c.argument('state_or_province', help='Name of the State or Province.', arg_group='Shipping Address') - c.argument('country', help='Name of the Country. Ex: US', arg_group='Shipping Address') - c.argument('postal_code', help='Postal code.', arg_group='Shipping Address') - c.argument('company_name', help='Name of the company.', arg_group='Shipping Address') - - with self.argument_context('databox job delete') as c: - c.argument('job_name', job_name_type) - - with self.argument_context('databox job show') as c: - c.argument('job_name', job_name_type) - - with self.argument_context('databox job cancel') as c: - c.argument('job_name', job_name_type) - c.argument('reason', help='Reason for cancellation.') - with self.argument_context('databox job list-credentials') as c: - c.argument('job_name', job_name_type) +def load_arguments(self, _): # pylint: disable=unused-argument + pass diff --git a/src/databox/azext_databox/_validators.py b/src/databox/azext_databox/_validators.py deleted file mode 100644 index a4339304141..00000000000 --- a/src/databox/azext_databox/_validators.py +++ /dev/null @@ -1,85 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -from azure.cli.core.commands.client_factory import get_subscription_id -from msrestazure.tools import resource_id - - -def validate_create_input_parameters(cmd, namespace): - _parse_storage_account_details(cmd, namespace) - _parse_managed_disk_details(cmd, namespace) - _validate_expected_data_size_for_databoxdisk(namespace) - _validate_destination_account_details(namespace) - - -def _parse_storage_account_details(cmd, namespace): - """Parse storage account details for destination.""" - from msrestazure.tools import is_valid_resource_id - - if not namespace.destination_account_details: - namespace.destination_account_details = [] - - if namespace.storage_accounts: - for storage_account in namespace.storage_accounts: - if storage_account and not is_valid_resource_id(storage_account): - storage_account = resource_id( - subscription=get_subscription_id(cmd.cli_ctx), - resource_group=namespace.resource_group_name, - namespace='Microsoft.Storage', - type='storageAccounts', - name=storage_account - ) - - if storage_account: - storage_account_details = {'storage_account_id': storage_account, - 'data_destination_type': 'StorageAccount'} - namespace.destination_account_details.append(storage_account_details) - - del namespace.storage_accounts - - -def _parse_managed_disk_details(cmd, namespace): - """Parse managed disk details for destination.""" - from msrestazure.tools import is_valid_resource_id - - if not namespace.destination_account_details: - namespace.destination_account_details = [] - - subscription = get_subscription_id(cmd.cli_ctx) - if namespace.staging_storage_account and not is_valid_resource_id(namespace.staging_storage_account): - namespace.staging_storage_account = resource_id( - subscription=subscription, - resource_group=namespace.resource_group_name, - namespace='Microsoft.Storage', - type='storageAccounts', - name=namespace.staging_storage_account - ) - - if namespace.resource_group_for_managed_disk and not is_valid_resource_id( - namespace.resource_group_for_managed_disk): - namespace.resource_group_for_managed_disk = '/subscriptions/' + subscription + '/resourceGroups/' + namespace.resource_group_for_managed_disk - - if namespace.staging_storage_account and namespace.resource_group_for_managed_disk: - managed_disk_details = {'staging_storage_account_id': namespace.staging_storage_account, - 'resource_group_id': namespace.resource_group_for_managed_disk, - 'data_destination_type': 'ManagedDisk'} - namespace.destination_account_details.append(managed_disk_details) - - del namespace.staging_storage_account - del namespace.resource_group_for_managed_disk - - -def _validate_expected_data_size_for_databoxdisk(namespace): - if namespace.sku == 'DataBoxDisk' and not namespace.expected_data_size: - raise ValueError( - "You must provide '--expected-data-size' when the 'sku' is 'DataBoxDisk'.") - - -def _validate_destination_account_details(namespace): - if not namespace.destination_account_details: - raise ValueError( - "You must provide at least one '--storage-account' or the combination of '--staging-storage-account' and " - "'--resource-group-for-managed-disk'") diff --git a/src/databox/azext_databox/vendored_sdks/__init__.py b/src/databox/azext_databox/aaz/__init__.py similarity index 84% rename from src/databox/azext_databox/vendored_sdks/__init__.py rename to src/databox/azext_databox/aaz/__init__.py index 7183870ee56..5757aea3175 100644 --- a/src/databox/azext_databox/vendored_sdks/__init__.py +++ b/src/databox/azext_databox/aaz/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/databox/azext_databox/vendored_sdks/databox/models.py b/src/databox/azext_databox/aaz/latest/__init__.py similarity index 66% rename from src/databox/azext_databox/vendored_sdks/databox/models.py rename to src/databox/azext_databox/aaz/latest/__init__.py index 1d5d79558e5..5757aea3175 100644 --- a/src/databox/azext_databox/vendored_sdks/databox/models.py +++ b/src/databox/azext_databox/aaz/latest/__init__.py @@ -1,7 +1,6 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -from .v2019_09_01.models import * +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/databox/azext_databox/_client_factory.py b/src/databox/azext_databox/aaz/latest/databox/__cmd_group.py similarity index 52% rename from src/databox/azext_databox/_client_factory.py rename to src/databox/azext_databox/aaz/latest/databox/__cmd_group.py index 441837babe7..f0b37d2d88a 100644 --- a/src/databox/azext_databox/_client_factory.py +++ b/src/databox/azext_databox/aaz/latest/databox/__cmd_group.py @@ -1,14 +1,23 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- +# pylint: skip-file +# flake8: noqa -def cf_databox(cli_ctx, *_): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azext_databox.vendored_sdks.databox import DataBoxManagementClient - return get_mgmt_service_client(cli_ctx, DataBoxManagementClient) +from azure.cli.core.aaz import * -def cf_jobs(cli_ctx, *_): - return cf_databox(cli_ctx).jobs +@register_command_group( + "databox", +) +class __CMDGroup(AAZCommandGroup): + """Manage data box + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_version.py b/src/databox/azext_databox/aaz/latest/databox/__init__.py similarity index 58% rename from src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_version.py rename to src/databox/azext_databox/aaz/latest/databox/__init__.py index eae7c95b6fb..5a9d61963d6 100644 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_version.py +++ b/src/databox/azext_databox/aaz/latest/databox/__init__.py @@ -1,9 +1,11 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- -VERSION = "0.1.0" +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * diff --git a/src/databox/azext_databox/aaz/latest/databox/job/__cmd_group.py b/src/databox/azext_databox/aaz/latest/databox/job/__cmd_group.py new file mode 100644 index 00000000000..edf0e204a32 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "databox job", +) +class __CMDGroup(AAZCommandGroup): + """Manage data box job + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/__init__.py b/src/databox/azext_databox/aaz/latest/databox/job/__init__.py new file mode 100644 index 00000000000..ab097ec5be4 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/__init__.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._cancel import * +from ._create import * +from ._delete import * +from ._list import * +from ._list_credential import * +from ._mark_devices_shipped import * +from ._show import * +from ._update import * diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_cancel.py b/src/databox/azext_databox/aaz/latest/databox/job/_cancel.py new file mode 100644 index 00000000000..4e2bc299071 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_cancel.py @@ -0,0 +1,169 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job cancel", + confirmation="Are you sure you want to perform this operation?", +) +class Cancel(AAZCommand): + """CancelJob. + + :example: Cancel job + az databox job cancel -g rg --job-name name --reason reason + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}/cancel", "2022-12-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "CancellationReason" + + _args_schema = cls._args_schema + _args_schema.reason = AAZStrArg( + options=["--reason"], + arg_group="CancellationReason", + help="Reason for cancellation.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.JobsCancel(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class JobsCancel(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("reason", AAZStrType, ".reason", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_204(self, session): + pass + + +class _CancelHelper: + """Helper class for Cancel""" + + +__all__ = ["Cancel"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_create.py b/src/databox/azext_databox/aaz/latest/databox/job/_create.py new file mode 100644 index 00000000000..4a05fb206bb --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_create.py @@ -0,0 +1,2432 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job create", +) +class Create(AAZCommand): + """Create a new job with the specified parameters. + + :example: Create job + az databox job create -g rg -n job-name --sku databox --contact-name 'test' --phone 14258828080 --email-list testing@microsoft.com --street-address1 "1 MICROSOFT WAY" --city Redmond --state-or-province WA --country US --postal-code 98052 --company-name Microsoft --storage-account account-id --staging-storage-account account-id --resource-group-for-managed-disk rg --transfer-type ImportToAzure --kek-type MicrosoftManaged + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "ContactDetails" + + _args_schema = cls._args_schema + _args_schema.contact_name = AAZStrArg( + options=["--contact-name"], + arg_group="ContactDetails", + help="Contact name of the person.", + ) + _args_schema.email_list = AAZListArg( + options=["--email-list"], + arg_group="ContactDetails", + help="List of Email-ids to be notified about job progress.", + ) + _args_schema.mobile = AAZStrArg( + options=["--mobile"], + arg_group="ContactDetails", + help="Mobile number of the contact person.", + ) + _args_schema.phone = AAZStrArg( + options=["--phone"], + arg_group="ContactDetails", + help="Phone number of the contact person.", + ) + + email_list = cls._args_schema.email_list + email_list.Element = AAZStrArg() + + # define Arg Group "Details" + + _args_schema = cls._args_schema + _args_schema.data_box = AAZObjectArg( + options=["--data-box"], + arg_group="Details", + help="Databox Job Details.", + ) + _args_schema.data_box_customer_disk = AAZObjectArg( + options=["--data-box-customer-disk"], + arg_group="Details", + help="Customer disk job details.", + ) + _args_schema.data_box_disk = AAZObjectArg( + options=["--data-box-disk"], + arg_group="Details", + help="Databox Heavy Device Job Details", + ) + _args_schema.data_box_heavy = AAZObjectArg( + options=["--data-box-heavy"], + arg_group="Details", + help="Databox Heavy Device Job Details", + ) + _args_schema.data_export_details = AAZListArg( + options=["--data-export-details"], + arg_group="Details", + help="Details of the data to be exported from azure.", + ) + _args_schema.data_import_details = AAZListArg( + options=["--data-import-details"], + arg_group="Details", + help="Details of the data to be imported into azure.", + ) + _args_schema.expected_data_size = AAZIntArg( + options=["--expected-data-size"], + arg_group="Details", + help="The expected size of the data, which needs to be transferred in this job, in terabytes.", + ) + + data_box = cls._args_schema.data_box + data_box.device_password = AAZStrArg( + options=["device-password"], + help="Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+", + ) + + data_box_customer_disk = cls._args_schema.data_box_customer_disk + data_box_customer_disk.enable_manifest_backup = AAZBoolArg( + options=["enable-manifest-backup"], + help="Flag to indicate if disk manifest should be backed-up in the Storage Account.", + default=False, + ) + data_box_customer_disk.import_disk_details_collection = AAZDictArg( + options=["import-disk-details-collection"], + help="Contains the map of disk serial number to the disk details for import jobs.", + ) + data_box_customer_disk.return_to_customer_package_details = AAZObjectArg( + options=["return-to-customer-package-details"], + help="Return package shipping details.", + required=True, + ) + + import_disk_details_collection = cls._args_schema.data_box_customer_disk.import_disk_details_collection + import_disk_details_collection.Element = AAZObjectArg() + + _element = cls._args_schema.data_box_customer_disk.import_disk_details_collection.Element + _element.bit_locker_key = AAZStrArg( + options=["bit-locker-key"], + help="BitLocker key used to encrypt the disk.", + required=True, + ) + _element.manifest_file = AAZStrArg( + options=["manifest-file"], + help="The relative path of the manifest file on the disk.", + required=True, + ) + _element.manifest_hash = AAZStrArg( + options=["manifest-hash"], + help="The Base16-encoded MD5 hash of the manifest file on the disk.", + required=True, + ) + + return_to_customer_package_details = cls._args_schema.data_box_customer_disk.return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrArg( + options=["carrier-account-number"], + help="Carrier Account Number of customer for customer disk.", + ) + return_to_customer_package_details.carrier_name = AAZStrArg( + options=["carrier-name"], + help="Name of the carrier.", + ) + return_to_customer_package_details.tracking_id = AAZStrArg( + options=["tracking-id"], + help="Tracking Id of shipment.", + ) + + data_box_disk = cls._args_schema.data_box_disk + data_box_disk.passkey = AAZStrArg( + options=["passkey"], + help="User entered passkey for DataBox Disk job.", + ) + data_box_disk.preferred_disks = AAZDictArg( + options=["preferred-disks"], + help="User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int.", + ) + + preferred_disks = cls._args_schema.data_box_disk.preferred_disks + preferred_disks.Element = AAZIntArg() + + data_box_heavy = cls._args_schema.data_box_heavy + data_box_heavy.device_password = AAZStrArg( + options=["device-password"], + help="Set Device password for unlocking Databox Heavy. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+", + ) + + data_export_details = cls._args_schema.data_export_details + data_export_details.Element = AAZObjectArg() + + _element = cls._args_schema.data_export_details.Element + _element.account_details = AAZObjectArg( + options=["account-details"], + help="Account details of the data to be transferred", + required=True, + ) + _element.log_collection_level = AAZStrArg( + options=["log-collection-level"], + help="Level of the logs to be collected.", + default="Error", + enum={"Error": "Error", "Verbose": "Verbose"}, + ) + _element.transfer_configuration = AAZObjectArg( + options=["transfer-configuration"], + help="Configuration for the data transfer.", + required=True, + ) + + account_details = cls._args_schema.data_export_details.Element.account_details + account_details.managed_disk = AAZObjectArg( + options=["managed-disk"], + ) + account_details.storage_account = AAZObjectArg( + options=["storage-account"], + ) + account_details.share_password = AAZStrArg( + options=["share-password"], + help="Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+", + ) + + managed_disk = cls._args_schema.data_export_details.Element.account_details.managed_disk + managed_disk.resource_group_id = AAZStrArg( + options=["resource-group-id"], + help="Resource Group Id of the compute disks.", + required=True, + ) + managed_disk.staging_storage_account_id = AAZStrArg( + options=["staging-storage-account-id"], + help="Resource Id of the storage account that can be used to copy the vhd for staging.", + required=True, + ) + + storage_account = cls._args_schema.data_export_details.Element.account_details.storage_account + storage_account.storage_account_id = AAZStrArg( + options=["storage-account-id"], + help="Storage Account Resource Id.", + required=True, + ) + + transfer_configuration = cls._args_schema.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectArg( + options=["transfer-all-details"], + help="Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll", + ) + transfer_configuration.transfer_configuration_type = AAZStrArg( + options=["transfer-configuration-type"], + help="Type of the configuration for transfer.", + required=True, + enum={"TransferAll": "TransferAll", "TransferUsingFilter": "TransferUsingFilter"}, + ) + transfer_configuration.transfer_filter_details = AAZObjectArg( + options=["transfer-filter-details"], + help="Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.", + ) + + transfer_all_details = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectArg( + options=["include"], + help="Details to transfer all data.", + ) + + include = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrArg( + options=["data-account-type"], + help="Type of the account of data", + required=True, + default="StorageAccount", + enum={"ManagedDisk": "ManagedDisk", "StorageAccount": "StorageAccount"}, + ) + include.transfer_all_blobs = AAZBoolArg( + options=["transfer-all-blobs"], + help="To indicate if all Azure blobs have to be transferred", + ) + include.transfer_all_files = AAZBoolArg( + options=["transfer-all-files"], + help="To indicate if all Azure Files have to be transferred", + ) + + transfer_filter_details = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.azure_file_filter_details = AAZObjectArg( + options=["azure-file-filter-details"], + help="Filter details to transfer Azure files.", + ) + transfer_filter_details.blob_filter_details = AAZObjectArg( + options=["blob-filter-details"], + help="Filter details to transfer blobs.", + ) + transfer_filter_details.data_account_type = AAZStrArg( + options=["data-account-type"], + help="Type of the account of data.", + default="StorageAccount", + enum={"ManagedDisk": "ManagedDisk", "StorageAccount": "StorageAccount"}, + ) + transfer_filter_details.filter_file_details = AAZListArg( + options=["filter-file-details"], + help="Details of the filter files to be used for data transfer.", + ) + + azure_file_filter_details = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListArg( + options=["file-path-list"], + help="List of full path of the files to be transferred.", + ) + azure_file_filter_details.file_prefix_list = AAZListArg( + options=["file-prefix-list"], + help="Prefix list of the Azure files to be transferred.", + ) + azure_file_filter_details.file_share_list = AAZListArg( + options=["file-share-list"], + help="List of file shares to be transferred.", + ) + + file_path_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrArg() + + file_prefix_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrArg() + + file_share_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrArg() + + blob_filter_details = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.blob_filter_details + blob_filter_details.blob_path_list = AAZListArg( + options=["blob-path-list"], + help="List of full path of the blobs to be transferred.", + ) + blob_filter_details.blob_prefix_list = AAZListArg( + options=["blob-prefix-list"], + help="Prefix list of the Azure blobs to be transferred.", + ) + blob_filter_details.container_list = AAZListArg( + options=["container-list"], + help="List of blob containers to be transferred.", + ) + + blob_path_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrArg() + + blob_prefix_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrArg() + + container_list = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.blob_filter_details.container_list + container_list.Element = AAZStrArg() + + filter_file_details = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.filter_file_details + filter_file_details.Element = AAZObjectArg() + + _element = cls._args_schema.data_export_details.Element.transfer_configuration.transfer_filter_details.filter_file_details.Element + _element.filter_file_path = AAZStrArg( + options=["filter-file-path"], + help="Path of the file that contains the details of all items to transfer.", + required=True, + ) + _element.filter_file_type = AAZStrArg( + options=["filter-file-type"], + help="Type of the filter file.", + required=True, + enum={"AzureBlob": "AzureBlob", "AzureFile": "AzureFile"}, + ) + + data_import_details = cls._args_schema.data_import_details + data_import_details.Element = AAZObjectArg() + + _element = cls._args_schema.data_import_details.Element + _element.account_details = AAZObjectArg( + options=["account-details"], + help="Account details of the data to be transferred", + required=True, + ) + _element.log_collection_level = AAZStrArg( + options=["log-collection-level"], + help="Level of the logs to be collected.", + default="Error", + enum={"Error": "Error", "Verbose": "Verbose"}, + ) + + account_details = cls._args_schema.data_import_details.Element.account_details + account_details.managed_disk = AAZObjectArg( + options=["managed-disk"], + ) + account_details.storage_account = AAZObjectArg( + options=["storage-account"], + ) + account_details.share_password = AAZStrArg( + options=["share-password"], + help="Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+", + ) + + managed_disk = cls._args_schema.data_import_details.Element.account_details.managed_disk + managed_disk.resource_group_id = AAZStrArg( + options=["resource-group-id"], + help="Resource Group Id of the compute disks.", + required=True, + ) + managed_disk.staging_storage_account_id = AAZStrArg( + options=["staging-storage-account-id"], + help="Resource Id of the storage account that can be used to copy the vhd for staging.", + required=True, + ) + + storage_account = cls._args_schema.data_import_details.Element.account_details.storage_account + storage_account.storage_account_id = AAZStrArg( + options=["storage-account-id"], + help="Storage Account Resource Id.", + required=True, + ) + + # define Arg Group "JobResource" + + _args_schema = cls._args_schema + _args_schema.identity = AAZObjectArg( + options=["--identity"], + arg_group="JobResource", + help="Msi identity of the resource", + ) + _args_schema.location = AAZResourceLocationArg( + arg_group="JobResource", + help="The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed.", + required=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="JobResource", + help="The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", + ) + + identity = cls._args_schema.identity + identity.type = AAZStrArg( + options=["type"], + help="Identity type", + default="None", + ) + identity.user_assigned_identities = AAZDictArg( + options=["user-assigned-identities"], + help="User Assigned Identities", + ) + + user_assigned_identities = cls._args_schema.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + blank={}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + + # define Arg Group "KeyEncryptionKey" + + _args_schema = cls._args_schema + _args_schema.kek_identity = AAZObjectArg( + options=["--kek-identity"], + arg_group="KeyEncryptionKey", + help="Managed identity properties used for key encryption.", + ) + _args_schema.kek_type = AAZStrArg( + options=["--kek-type"], + arg_group="KeyEncryptionKey", + help="Type of encryption key used for key encryption.", + default="MicrosoftManaged", + enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, + ) + _args_schema.kek_url = AAZStrArg( + options=["--kek-url"], + arg_group="KeyEncryptionKey", + help="Key encryption key. It is required in case of Customer managed KekType.", + ) + _args_schema.kek_vault_resource_id = AAZStrArg( + options=["--kek-vault-resource-id"], + arg_group="KeyEncryptionKey", + help="Kek vault resource id. It is required in case of Customer managed KekType.", + ) + + kek_identity = cls._args_schema.kek_identity + kek_identity.type = AAZStrArg( + options=["type"], + help="Managed service identity type.", + ) + kek_identity.user_assigned = AAZObjectArg( + options=["user-assigned"], + help="User assigned identity properties.", + ) + + user_assigned = cls._args_schema.kek_identity.user_assigned + user_assigned.resource_id = AAZStrArg( + options=["resource-id"], + help="Arm resource id for user assigned identity to be used to fetch MSI token.", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.transfer_type = AAZStrArg( + options=["--transfer-type"], + arg_group="Properties", + help="Type of the data transfer.", + required=True, + enum={"ExportFromAzure": "ExportFromAzure", "ImportToAzure": "ImportToAzure"}, + ) + + # define Arg Group "ShippingAddress" + + _args_schema = cls._args_schema + _args_schema.city = AAZStrArg( + options=["--city"], + arg_group="ShippingAddress", + help="Name of the city.", + ) + _args_schema.company_name = AAZStrArg( + options=["--company-name"], + arg_group="ShippingAddress", + help="Name of the company.", + ) + _args_schema.country = AAZStrArg( + options=["--country"], + arg_group="ShippingAddress", + help="Name of the Country.", + ) + _args_schema.postal_code = AAZStrArg( + options=["--postal-code"], + arg_group="ShippingAddress", + help="Postal code.", + ) + _args_schema.state_or_province = AAZStrArg( + options=["--state-or-province"], + arg_group="ShippingAddress", + help="Name of the State or Province.", + ) + _args_schema.street_address1 = AAZStrArg( + options=["--street-address1"], + arg_group="ShippingAddress", + help="Street Address line 1.", + ) + _args_schema.street_address2 = AAZStrArg( + options=["--street-address2"], + arg_group="ShippingAddress", + help="Street Address line 2.", + ) + _args_schema.street_address3 = AAZStrArg( + options=["--street-address3"], + arg_group="ShippingAddress", + help="Street Address line 3.", + ) + + # define Arg Group "Sku" + + _args_schema = cls._args_schema + _args_schema.sku = AAZStrArg( + options=["--sku"], + arg_group="Sku", + help="The sku name.", + required=True, + enum={"DataBox": "DataBox", "DataBoxCustomerDisk": "DataBoxCustomerDisk", "DataBoxDisk": "DataBoxDisk", "DataBoxHeavy": "DataBoxHeavy"}, + ) + return cls._args_schema + + _args_shipping_address_create = None + + @classmethod + def _build_args_shipping_address_create(cls, _schema): + if cls._args_shipping_address_create is not None: + _schema.address_type = cls._args_shipping_address_create.address_type + _schema.city = cls._args_shipping_address_create.city + _schema.company_name = cls._args_shipping_address_create.company_name + _schema.country = cls._args_shipping_address_create.country + _schema.postal_code = cls._args_shipping_address_create.postal_code + _schema.skip_address_validation = cls._args_shipping_address_create.skip_address_validation + _schema.state_or_province = cls._args_shipping_address_create.state_or_province + _schema.street_address1 = cls._args_shipping_address_create.street_address1 + _schema.street_address2 = cls._args_shipping_address_create.street_address2 + _schema.street_address3 = cls._args_shipping_address_create.street_address3 + _schema.tax_identification_number = cls._args_shipping_address_create.tax_identification_number + _schema.zip_extended_code = cls._args_shipping_address_create.zip_extended_code + return + + cls._args_shipping_address_create = AAZObjectArg() + + shipping_address_create = cls._args_shipping_address_create + shipping_address_create.address_type = AAZStrArg( + options=["address-type"], + help="Type of address.", + default="None", + enum={"Commercial": "Commercial", "None": "None", "Residential": "Residential"}, + ) + shipping_address_create.city = AAZStrArg( + options=["city"], + help="Name of the City.", + ) + shipping_address_create.company_name = AAZStrArg( + options=["company-name"], + help="Name of the company.", + ) + shipping_address_create.country = AAZStrArg( + options=["country"], + help="Name of the Country.", + required=True, + ) + shipping_address_create.postal_code = AAZStrArg( + options=["postal-code"], + help="Postal code.", + ) + shipping_address_create.skip_address_validation = AAZBoolArg( + options=["skip-address-validation"], + help="Flag to indicate if customer has chosen to skip default address validation", + ) + shipping_address_create.state_or_province = AAZStrArg( + options=["state-or-province"], + help="Name of the State or Province.", + ) + shipping_address_create.street_address1 = AAZStrArg( + options=["street-address1"], + help="Street Address line 1.", + required=True, + ) + shipping_address_create.street_address2 = AAZStrArg( + options=["street-address2"], + help="Street Address line 2.", + ) + shipping_address_create.street_address3 = AAZStrArg( + options=["street-address3"], + help="Street Address line 3.", + ) + shipping_address_create.tax_identification_number = AAZStrArg( + options=["tax-identification-number"], + help="Tax Identification Number", + ) + shipping_address_create.zip_extended_code = AAZStrArg( + options=["zip-extended-code"], + help="Extended Zip Code.", + ) + + _schema.address_type = cls._args_shipping_address_create.address_type + _schema.city = cls._args_shipping_address_create.city + _schema.company_name = cls._args_shipping_address_create.company_name + _schema.country = cls._args_shipping_address_create.country + _schema.postal_code = cls._args_shipping_address_create.postal_code + _schema.skip_address_validation = cls._args_shipping_address_create.skip_address_validation + _schema.state_or_province = cls._args_shipping_address_create.state_or_province + _schema.street_address1 = cls._args_shipping_address_create.street_address1 + _schema.street_address2 = cls._args_shipping_address_create.street_address2 + _schema.street_address3 = cls._args_shipping_address_create.street_address3 + _schema.tax_identification_number = cls._args_shipping_address_create.tax_identification_number + _schema.zip_extended_code = cls._args_shipping_address_create.zip_extended_code + + _args_transport_preferences_create = None + + @classmethod + def _build_args_transport_preferences_create(cls, _schema): + if cls._args_transport_preferences_create is not None: + _schema.preferred_shipment_type = cls._args_transport_preferences_create.preferred_shipment_type + return + + cls._args_transport_preferences_create = AAZObjectArg() + + transport_preferences_create = cls._args_transport_preferences_create + transport_preferences_create.preferred_shipment_type = AAZStrArg( + options=["preferred-shipment-type"], + help="Indicates Shipment Logistics type that the customer preferred.", + required=True, + enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, + ) + + _schema.preferred_shipment_type = cls._args_transport_preferences_create.preferred_shipment_type + + def _execute_operations(self): + self.pre_operations() + yield self.JobsCreate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class JobsCreate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, ".", typ_kwargs={"flags": {"required": True, "client_flatten": True}}) + _builder.set_prop("sku", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type") + identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") + + user_assigned_identities = _builder.get(".identity.userAssignedIdentities") + if user_assigned_identities is not None: + user_assigned_identities.set_elements(AAZObjectType, ".") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("details", AAZObjectType) + properties.set_prop("transferType", AAZStrType, ".transfer_type", typ_kwargs={"flags": {"required": True}}) + + details = _builder.get(".properties.details") + if details is not None: + details.set_prop("contactDetails", AAZObjectType, ".", typ_kwargs={"flags": {"required": True}}) + details.set_prop("dataExportDetails", AAZListType, ".data_export_details") + details.set_prop("dataImportDetails", AAZListType, ".data_import_details") + details.set_prop("expectedDataSizeInTeraBytes", AAZIntType, ".expected_data_size") + details.set_const("jobDetailsType", "DataBox", AAZStrType, ".data_box", typ_kwargs={"flags": {"required": True}}) + details.set_const("jobDetailsType", "DataBoxCustomerDisk", AAZStrType, ".data_box_customer_disk", typ_kwargs={"flags": {"required": True}}) + details.set_const("jobDetailsType", "DataBoxDisk", AAZStrType, ".data_box_disk", typ_kwargs={"flags": {"required": True}}) + details.set_const("jobDetailsType", "DataBoxHeavy", AAZStrType, ".data_box_heavy", typ_kwargs={"flags": {"required": True}}) + details.set_prop("keyEncryptionKey", AAZObjectType) + details.set_prop("shippingAddress", AAZObjectType) + details.discriminate_by("jobDetailsType", "DataBox") + details.discriminate_by("jobDetailsType", "DataBoxCustomerDisk") + details.discriminate_by("jobDetailsType", "DataBoxDisk") + details.discriminate_by("jobDetailsType", "DataBoxHeavy") + + contact_details = _builder.get(".properties.details.contactDetails") + if contact_details is not None: + contact_details.set_prop("contactName", AAZStrType, ".contact_name", typ_kwargs={"flags": {"required": True}}) + contact_details.set_prop("emailList", AAZListType, ".email_list", typ_kwargs={"flags": {"required": True}}) + contact_details.set_prop("mobile", AAZStrType, ".mobile") + contact_details.set_prop("phone", AAZStrType, ".phone", typ_kwargs={"flags": {"required": True}}) + + email_list = _builder.get(".properties.details.contactDetails.emailList") + if email_list is not None: + email_list.set_elements(AAZStrType, ".") + + data_export_details = _builder.get(".properties.details.dataExportDetails") + if data_export_details is not None: + data_export_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.details.dataExportDetails[]") + if _elements is not None: + _elements.set_prop("accountDetails", AAZObjectType, ".account_details", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("logCollectionLevel", AAZStrType, ".log_collection_level") + _elements.set_prop("transferConfiguration", AAZObjectType, ".transfer_configuration", typ_kwargs={"flags": {"required": True}}) + + account_details = _builder.get(".properties.details.dataExportDetails[].accountDetails") + if account_details is not None: + account_details.set_const("dataAccountType", "ManagedDisk", AAZStrType, ".managed_disk", typ_kwargs={"flags": {"required": True}}) + account_details.set_const("dataAccountType", "StorageAccount", AAZStrType, ".storage_account", typ_kwargs={"flags": {"required": True}}) + account_details.set_prop("sharePassword", AAZStrType, ".share_password", typ_kwargs={"flags": {"secret": True}}) + account_details.discriminate_by("dataAccountType", "ManagedDisk") + account_details.discriminate_by("dataAccountType", "StorageAccount") + + disc_managed_disk = _builder.get(".properties.details.dataExportDetails[].accountDetails{dataAccountType:ManagedDisk}") + if disc_managed_disk is not None: + disc_managed_disk.set_prop("resourceGroupId", AAZStrType, ".managed_disk.resource_group_id", typ_kwargs={"flags": {"required": True}}) + disc_managed_disk.set_prop("stagingStorageAccountId", AAZStrType, ".managed_disk.staging_storage_account_id", typ_kwargs={"flags": {"required": True}}) + + disc_storage_account = _builder.get(".properties.details.dataExportDetails[].accountDetails{dataAccountType:StorageAccount}") + if disc_storage_account is not None: + disc_storage_account.set_prop("storageAccountId", AAZStrType, ".storage_account.storage_account_id", typ_kwargs={"flags": {"required": True}}) + + transfer_configuration = _builder.get(".properties.details.dataExportDetails[].transferConfiguration") + if transfer_configuration is not None: + transfer_configuration.set_prop("transferAllDetails", AAZObjectType, ".transfer_all_details") + transfer_configuration.set_prop("transferConfigurationType", AAZStrType, ".transfer_configuration_type", typ_kwargs={"flags": {"required": True}}) + transfer_configuration.set_prop("transferFilterDetails", AAZObjectType, ".transfer_filter_details") + + transfer_all_details = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferAllDetails") + if transfer_all_details is not None: + transfer_all_details.set_prop("include", AAZObjectType, ".include") + + include = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferAllDetails.include") + if include is not None: + include.set_prop("dataAccountType", AAZStrType, ".data_account_type", typ_kwargs={"flags": {"required": True}}) + include.set_prop("transferAllBlobs", AAZBoolType, ".transfer_all_blobs") + include.set_prop("transferAllFiles", AAZBoolType, ".transfer_all_files") + + transfer_filter_details = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails") + if transfer_filter_details is not None: + transfer_filter_details.set_prop("include", AAZObjectType) + + include = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include") + if include is not None: + include.set_prop("azureFileFilterDetails", AAZObjectType, ".azure_file_filter_details") + include.set_prop("blobFilterDetails", AAZObjectType, ".blob_filter_details") + include.set_prop("dataAccountType", AAZStrType, ".data_account_type", typ_kwargs={"flags": {"required": True}}) + include.set_prop("filterFileDetails", AAZListType, ".filter_file_details") + + azure_file_filter_details = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.azureFileFilterDetails") + if azure_file_filter_details is not None: + azure_file_filter_details.set_prop("filePathList", AAZListType, ".file_path_list") + azure_file_filter_details.set_prop("filePrefixList", AAZListType, ".file_prefix_list") + azure_file_filter_details.set_prop("fileShareList", AAZListType, ".file_share_list") + + file_path_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.azureFileFilterDetails.filePathList") + if file_path_list is not None: + file_path_list.set_elements(AAZStrType, ".") + + file_prefix_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.azureFileFilterDetails.filePrefixList") + if file_prefix_list is not None: + file_prefix_list.set_elements(AAZStrType, ".") + + file_share_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.azureFileFilterDetails.fileShareList") + if file_share_list is not None: + file_share_list.set_elements(AAZStrType, ".") + + blob_filter_details = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.blobFilterDetails") + if blob_filter_details is not None: + blob_filter_details.set_prop("blobPathList", AAZListType, ".blob_path_list") + blob_filter_details.set_prop("blobPrefixList", AAZListType, ".blob_prefix_list") + blob_filter_details.set_prop("containerList", AAZListType, ".container_list") + + blob_path_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.blobFilterDetails.blobPathList") + if blob_path_list is not None: + blob_path_list.set_elements(AAZStrType, ".") + + blob_prefix_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.blobFilterDetails.blobPrefixList") + if blob_prefix_list is not None: + blob_prefix_list.set_elements(AAZStrType, ".") + + container_list = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.blobFilterDetails.containerList") + if container_list is not None: + container_list.set_elements(AAZStrType, ".") + + filter_file_details = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.filterFileDetails") + if filter_file_details is not None: + filter_file_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.details.dataExportDetails[].transferConfiguration.transferFilterDetails.include.filterFileDetails[]") + if _elements is not None: + _elements.set_prop("filterFilePath", AAZStrType, ".filter_file_path", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("filterFileType", AAZStrType, ".filter_file_type", typ_kwargs={"flags": {"required": True}}) + + data_import_details = _builder.get(".properties.details.dataImportDetails") + if data_import_details is not None: + data_import_details.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.details.dataImportDetails[]") + if _elements is not None: + _elements.set_prop("accountDetails", AAZObjectType, ".account_details", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("logCollectionLevel", AAZStrType, ".log_collection_level") + + account_details = _builder.get(".properties.details.dataImportDetails[].accountDetails") + if account_details is not None: + account_details.set_const("dataAccountType", "ManagedDisk", AAZStrType, ".managed_disk", typ_kwargs={"flags": {"required": True}}) + account_details.set_const("dataAccountType", "StorageAccount", AAZStrType, ".storage_account", typ_kwargs={"flags": {"required": True}}) + account_details.set_prop("sharePassword", AAZStrType, ".share_password", typ_kwargs={"flags": {"secret": True}}) + account_details.discriminate_by("dataAccountType", "ManagedDisk") + account_details.discriminate_by("dataAccountType", "StorageAccount") + + disc_managed_disk = _builder.get(".properties.details.dataImportDetails[].accountDetails{dataAccountType:ManagedDisk}") + if disc_managed_disk is not None: + disc_managed_disk.set_prop("resourceGroupId", AAZStrType, ".managed_disk.resource_group_id", typ_kwargs={"flags": {"required": True}}) + disc_managed_disk.set_prop("stagingStorageAccountId", AAZStrType, ".managed_disk.staging_storage_account_id", typ_kwargs={"flags": {"required": True}}) + + disc_storage_account = _builder.get(".properties.details.dataImportDetails[].accountDetails{dataAccountType:StorageAccount}") + if disc_storage_account is not None: + disc_storage_account.set_prop("storageAccountId", AAZStrType, ".storage_account.storage_account_id", typ_kwargs={"flags": {"required": True}}) + + key_encryption_key = _builder.get(".properties.details.keyEncryptionKey") + if key_encryption_key is not None: + key_encryption_key.set_prop("identityProperties", AAZObjectType, ".kek_identity") + key_encryption_key.set_prop("kekType", AAZStrType, ".kek_type", typ_kwargs={"flags": {"required": True}}) + key_encryption_key.set_prop("kekUrl", AAZStrType, ".kek_url") + key_encryption_key.set_prop("kekVaultResourceID", AAZStrType, ".kek_vault_resource_id") + + identity_properties = _builder.get(".properties.details.keyEncryptionKey.identityProperties") + if identity_properties is not None: + identity_properties.set_prop("type", AAZStrType, ".type") + identity_properties.set_prop("userAssigned", AAZObjectType, ".user_assigned") + + user_assigned = _builder.get(".properties.details.keyEncryptionKey.identityProperties.userAssigned") + if user_assigned is not None: + user_assigned.set_prop("resourceId", AAZStrType, ".resource_id") + + shipping_address = _builder.get(".properties.details.shippingAddress") + if shipping_address is not None: + shipping_address.set_prop("city", AAZStrType, ".city") + shipping_address.set_prop("companyName", AAZStrType, ".company_name") + shipping_address.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) + shipping_address.set_prop("postalCode", AAZStrType, ".postal_code") + shipping_address.set_prop("stateOrProvince", AAZStrType, ".state_or_province") + shipping_address.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) + shipping_address.set_prop("streetAddress2", AAZStrType, ".street_address2") + shipping_address.set_prop("streetAddress3", AAZStrType, ".street_address3") + + disc_data_box = _builder.get(".properties.details{jobDetailsType:DataBox}") + if disc_data_box is not None: + disc_data_box.set_prop("devicePassword", AAZStrType, ".data_box.device_password") + + disc_data_box_customer_disk = _builder.get(".properties.details{jobDetailsType:DataBoxCustomerDisk}") + if disc_data_box_customer_disk is not None: + disc_data_box_customer_disk.set_prop("enableManifestBackup", AAZBoolType, ".data_box_customer_disk.enable_manifest_backup") + disc_data_box_customer_disk.set_prop("importDiskDetailsCollection", AAZDictType, ".data_box_customer_disk.import_disk_details_collection") + disc_data_box_customer_disk.set_prop("returnToCustomerPackageDetails", AAZObjectType, ".data_box_customer_disk.return_to_customer_package_details", typ_kwargs={"flags": {"required": True}}) + + import_disk_details_collection = _builder.get(".properties.details{jobDetailsType:DataBoxCustomerDisk}.importDiskDetailsCollection") + if import_disk_details_collection is not None: + import_disk_details_collection.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.details{jobDetailsType:DataBoxCustomerDisk}.importDiskDetailsCollection{}") + if _elements is not None: + _elements.set_prop("bitLockerKey", AAZStrType, ".bit_locker_key", typ_kwargs={"flags": {"required": True, "secret": True}}) + _elements.set_prop("manifestFile", AAZStrType, ".manifest_file", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("manifestHash", AAZStrType, ".manifest_hash", typ_kwargs={"flags": {"required": True}}) + + return_to_customer_package_details = _builder.get(".properties.details{jobDetailsType:DataBoxCustomerDisk}.returnToCustomerPackageDetails") + if return_to_customer_package_details is not None: + return_to_customer_package_details.set_prop("carrierAccountNumber", AAZStrType, ".carrier_account_number", typ_kwargs={"flags": {"secret": True}}) + return_to_customer_package_details.set_prop("carrierName", AAZStrType, ".carrier_name") + return_to_customer_package_details.set_prop("trackingId", AAZStrType, ".tracking_id") + + disc_data_box_disk = _builder.get(".properties.details{jobDetailsType:DataBoxDisk}") + if disc_data_box_disk is not None: + disc_data_box_disk.set_prop("passkey", AAZStrType, ".data_box_disk.passkey") + disc_data_box_disk.set_prop("preferredDisks", AAZDictType, ".data_box_disk.preferred_disks") + + preferred_disks = _builder.get(".properties.details{jobDetailsType:DataBoxDisk}.preferredDisks") + if preferred_disks is not None: + preferred_disks.set_elements(AAZIntType, ".") + + disc_data_box_heavy = _builder.get(".properties.details{jobDetailsType:DataBoxHeavy}") + if disc_data_box_heavy is not None: + disc_data_box_heavy.set_prop("devicePassword", AAZStrType, ".data_box_heavy.device_password") + + sku = _builder.get(".sku") + if sku is not None: + sku.set_prop("name", AAZStrType, ".sku", typ_kwargs={"flags": {"required": True}}) + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _schema_on_200.sku = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.cancellation_reason = AAZStrType( + serialized_name="cancellationReason", + flags={"read_only": True}, + ) + properties.delivery_info = AAZObjectType( + serialized_name="deliveryInfo", + ) + properties.delivery_type = AAZStrType( + serialized_name="deliveryType", + ) + properties.details = AAZObjectType() + properties.error = AAZObjectType() + _CreateHelper._build_schema_cloud_error_read(properties.error) + properties.is_cancellable = AAZBoolType( + serialized_name="isCancellable", + flags={"read_only": True}, + ) + properties.is_cancellable_without_fee = AAZBoolType( + serialized_name="isCancellableWithoutFee", + flags={"read_only": True}, + ) + properties.is_deletable = AAZBoolType( + serialized_name="isDeletable", + flags={"read_only": True}, + ) + properties.is_prepare_to_ship_enabled = AAZBoolType( + serialized_name="isPrepareToShipEnabled", + flags={"read_only": True}, + ) + properties.is_shipping_address_editable = AAZBoolType( + serialized_name="isShippingAddressEditable", + flags={"read_only": True}, + ) + properties.reverse_shipping_details_update = AAZStrType( + serialized_name="reverseShippingDetailsUpdate", + flags={"read_only": True}, + ) + properties.reverse_transport_preference_update = AAZStrType( + serialized_name="reverseTransportPreferenceUpdate", + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + flags={"read_only": True}, + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"required": True}, + ) + + delivery_info = cls._schema_on_200.properties.delivery_info + delivery_info.scheduled_date_time = AAZStrType( + serialized_name="scheduledDateTime", + ) + + details = cls._schema_on_200.properties.details + details.actions = AAZListType( + flags={"read_only": True}, + ) + details.chain_of_custody_sas_key = AAZStrType( + serialized_name="chainOfCustodySasKey", + flags={"read_only": True}, + ) + details.contact_details = AAZObjectType( + serialized_name="contactDetails", + flags={"required": True}, + ) + details.copy_log_details = AAZListType( + serialized_name="copyLogDetails", + flags={"read_only": True}, + ) + details.data_center_code = AAZStrType( + serialized_name="dataCenterCode", + flags={"read_only": True}, + ) + details.data_export_details = AAZListType( + serialized_name="dataExportDetails", + ) + details.data_import_details = AAZListType( + serialized_name="dataImportDetails", + ) + details.datacenter_address = AAZObjectType( + serialized_name="datacenterAddress", + ) + details.delivery_package = AAZObjectType( + serialized_name="deliveryPackage", + ) + _CreateHelper._build_schema_package_shipping_details_read(details.delivery_package) + details.device_erasure_details = AAZObjectType( + serialized_name="deviceErasureDetails", + ) + details.expected_data_size_in_tera_bytes = AAZIntType( + serialized_name="expectedDataSizeInTeraBytes", + ) + details.job_details_type = AAZStrType( + serialized_name="jobDetailsType", + flags={"required": True}, + ) + details.job_stages = AAZListType( + serialized_name="jobStages", + flags={"read_only": True}, + ) + details.key_encryption_key = AAZObjectType( + serialized_name="keyEncryptionKey", + ) + details.last_mitigation_action_on_job = AAZObjectType( + serialized_name="lastMitigationActionOnJob", + ) + details.preferences = AAZObjectType() + details.return_package = AAZObjectType( + serialized_name="returnPackage", + ) + _CreateHelper._build_schema_package_shipping_details_read(details.return_package) + details.reverse_shipment_label_sas_key = AAZStrType( + serialized_name="reverseShipmentLabelSasKey", + flags={"read_only": True}, + ) + details.reverse_shipping_details = AAZObjectType( + serialized_name="reverseShippingDetails", + ) + details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _CreateHelper._build_schema_shipping_address_read(details.shipping_address) + + actions = cls._schema_on_200.properties.details.actions + actions.Element = AAZStrType() + + contact_details = cls._schema_on_200.properties.details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.email_list = AAZListType( + serialized_name="emailList", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.notification_preference = AAZListType( + serialized_name="notificationPreference", + ) + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + email_list = cls._schema_on_200.properties.details.contact_details.email_list + email_list.Element = AAZStrType() + + notification_preference = cls._schema_on_200.properties.details.contact_details.notification_preference + notification_preference.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.contact_details.notification_preference.Element + _element.send_notification = AAZBoolType( + serialized_name="sendNotification", + flags={"required": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"required": True}, + ) + + copy_log_details = cls._schema_on_200.properties.details.copy_log_details + copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.copy_log_details.Element + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + + disc_data_box = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") + disc_data_box.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box.copy_log_link = AAZStrType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box.copy_verbose_log_link = AAZStrType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") + disc_data_box_disk.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + disc_data_box_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_heavy = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") + disc_data_box_heavy.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_log_link = AAZListType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_verbose_log_link = AAZListType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + copy_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link + copy_log_link.Element = AAZStrType() + + copy_verbose_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link + copy_verbose_log_link.Element = AAZStrType() + + data_export_details = cls._schema_on_200.properties.details.data_export_details + data_export_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _CreateHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + _element.transfer_configuration = AAZObjectType( + serialized_name="transferConfiguration", + flags={"required": True}, + ) + + transfer_configuration = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectType( + serialized_name="transferAllDetails", + ) + transfer_configuration.transfer_configuration_type = AAZStrType( + serialized_name="transferConfigurationType", + flags={"required": True}, + ) + transfer_configuration.transfer_filter_details = AAZObjectType( + serialized_name="transferFilterDetails", + ) + + transfer_all_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.transfer_all_blobs = AAZBoolType( + serialized_name="transferAllBlobs", + ) + include.transfer_all_files = AAZBoolType( + serialized_name="transferAllFiles", + ) + + transfer_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include + include.azure_file_filter_details = AAZObjectType( + serialized_name="azureFileFilterDetails", + ) + include.blob_filter_details = AAZObjectType( + serialized_name="blobFilterDetails", + ) + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.filter_file_details = AAZListType( + serialized_name="filterFileDetails", + ) + + azure_file_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListType( + serialized_name="filePathList", + ) + azure_file_filter_details.file_prefix_list = AAZListType( + serialized_name="filePrefixList", + ) + azure_file_filter_details.file_share_list = AAZListType( + serialized_name="fileShareList", + ) + + file_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrType() + + file_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrType() + + file_share_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrType() + + blob_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details + blob_filter_details.blob_path_list = AAZListType( + serialized_name="blobPathList", + ) + blob_filter_details.blob_prefix_list = AAZListType( + serialized_name="blobPrefixList", + ) + blob_filter_details.container_list = AAZListType( + serialized_name="containerList", + ) + + blob_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrType() + + blob_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrType() + + container_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list + container_list.Element = AAZStrType() + + filter_file_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details + filter_file_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element + _element.filter_file_path = AAZStrType( + serialized_name="filterFilePath", + flags={"required": True}, + ) + _element.filter_file_type = AAZStrType( + serialized_name="filterFileType", + flags={"required": True}, + ) + + data_import_details = cls._schema_on_200.properties.details.data_import_details + data_import_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_import_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _CreateHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + + datacenter_address = cls._schema_on_200.properties.details.datacenter_address + datacenter_address.data_center_azure_location = AAZStrType( + serialized_name="dataCenterAzureLocation", + flags={"read_only": True}, + ) + datacenter_address.datacenter_address_type = AAZStrType( + serialized_name="datacenterAddressType", + flags={"required": True}, + ) + datacenter_address.supported_carriers_for_return_shipment = AAZListType( + serialized_name="supportedCarriersForReturnShipment", + flags={"read_only": True}, + ) + + supported_carriers_for_return_shipment = cls._schema_on_200.properties.details.datacenter_address.supported_carriers_for_return_shipment + supported_carriers_for_return_shipment.Element = AAZStrType() + + disc_datacenter_address_instruction = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") + disc_datacenter_address_instruction.communication_instruction = AAZStrType( + serialized_name="communicationInstruction", + flags={"read_only": True}, + ) + + disc_datacenter_address_location = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") + disc_datacenter_address_location.additional_shipping_information = AAZStrType( + serialized_name="additionalShippingInformation", + flags={"read_only": True}, + ) + disc_datacenter_address_location.address_type = AAZStrType( + serialized_name="addressType", + flags={"read_only": True}, + ) + disc_datacenter_address_location.city = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.company = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.contact_person_name = AAZStrType( + serialized_name="contactPersonName", + flags={"read_only": True}, + ) + disc_datacenter_address_location.country = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone_extension = AAZStrType( + serialized_name="phoneExtension", + flags={"read_only": True}, + ) + disc_datacenter_address_location.state = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street1 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street2 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street3 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.zip = AAZStrType( + flags={"read_only": True}, + ) + + device_erasure_details = cls._schema_on_200.properties.details.device_erasure_details + device_erasure_details.device_erasure_status = AAZStrType( + serialized_name="deviceErasureStatus", + flags={"read_only": True}, + ) + device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( + serialized_name="erasureOrDestructionCertificateSasKey", + flags={"read_only": True}, + ) + + job_stages = cls._schema_on_200.properties.details.job_stages + job_stages.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.job_stages.Element + _element.display_name = AAZStrType( + serialized_name="displayName", + flags={"read_only": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"read_only": True}, + ) + _element.stage_status = AAZStrType( + serialized_name="stageStatus", + flags={"read_only": True}, + ) + _element.stage_time = AAZStrType( + serialized_name="stageTime", + flags={"read_only": True}, + ) + + key_encryption_key = cls._schema_on_200.properties.details.key_encryption_key + key_encryption_key.identity_properties = AAZObjectType( + serialized_name="identityProperties", + ) + key_encryption_key.kek_type = AAZStrType( + serialized_name="kekType", + flags={"required": True}, + ) + key_encryption_key.kek_url = AAZStrType( + serialized_name="kekUrl", + ) + key_encryption_key.kek_vault_resource_id = AAZStrType( + serialized_name="kekVaultResourceID", + ) + + identity_properties = cls._schema_on_200.properties.details.key_encryption_key.identity_properties + identity_properties.type = AAZStrType() + identity_properties.user_assigned = AAZObjectType( + serialized_name="userAssigned", + ) + + user_assigned = cls._schema_on_200.properties.details.key_encryption_key.identity_properties.user_assigned + user_assigned.resource_id = AAZStrType( + serialized_name="resourceId", + ) + + last_mitigation_action_on_job = cls._schema_on_200.properties.details.last_mitigation_action_on_job + last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( + serialized_name="actionDateTimeInUtc", + ) + last_mitigation_action_on_job.customer_resolution = AAZStrType( + serialized_name="customerResolution", + ) + last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( + serialized_name="isPerformedByCustomer", + ) + + preferences = cls._schema_on_200.properties.details.preferences + preferences.encryption_preferences = AAZObjectType( + serialized_name="encryptionPreferences", + ) + preferences.preferred_data_center_region = AAZListType( + serialized_name="preferredDataCenterRegion", + ) + preferences.reverse_transport_preferences = AAZObjectType( + serialized_name="reverseTransportPreferences", + ) + _CreateHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) + preferences.storage_account_access_tier_preferences = AAZListType( + serialized_name="storageAccountAccessTierPreferences", + ) + preferences.transport_preferences = AAZObjectType( + serialized_name="transportPreferences", + ) + _CreateHelper._build_schema_transport_preferences_read(preferences.transport_preferences) + + encryption_preferences = cls._schema_on_200.properties.details.preferences.encryption_preferences + encryption_preferences.double_encryption = AAZStrType( + serialized_name="doubleEncryption", + ) + encryption_preferences.hardware_encryption = AAZStrType( + serialized_name="hardwareEncryption", + ) + + preferred_data_center_region = cls._schema_on_200.properties.details.preferences.preferred_data_center_region + preferred_data_center_region.Element = AAZStrType() + + storage_account_access_tier_preferences = cls._schema_on_200.properties.details.preferences.storage_account_access_tier_preferences + storage_account_access_tier_preferences.Element = AAZStrType() + + reverse_shipping_details = cls._schema_on_200.properties.details.reverse_shipping_details + reverse_shipping_details.contact_details = AAZObjectType( + serialized_name="contactDetails", + ) + reverse_shipping_details.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + reverse_shipping_details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _CreateHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) + + contact_details = cls._schema_on_200.properties.details.reverse_shipping_details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + disc_data_box = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox") + disc_data_box.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress + copy_progress.Element = AAZObjectType() + _CreateHelper._build_schema_copy_progress_read(copy_progress.Element) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( + serialized_name="deliverToDcPackageDetails", + ) + disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( + serialized_name="enableManifestBackup", + ) + disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( + serialized_name="exportDiskDetailsCollection", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( + serialized_name="importDiskDetailsCollection", + ) + disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( + serialized_name="returnToCustomerPackageDetails", + flags={"required": True}, + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _CreateHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + deliver_to_dc_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details + deliver_to_dc_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + deliver_to_dc_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + export_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection + export_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"read_only": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"read_only": True}, + ) + + import_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection + import_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"required": True, "secret": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"required": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"required": True}, + ) + + return_to_customer_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True}, + ) + return_to_customer_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + return_to_customer_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk") + disc_data_box_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.disks_and_size_details = AAZDictType( + serialized_name="disksAndSizeDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_log_details = AAZListType( + serialized_name="granularCopyLogDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_progress = AAZListType( + serialized_name="granularCopyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.passkey = AAZStrType() + disc_data_box_disk.preferred_disks = AAZDictType( + serialized_name="preferredDisks", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_copied = AAZIntType( + serialized_name="bytesCopied", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _CreateHelper._build_schema_cloud_error_read(_element.error) + _element.percent_complete = AAZIntType( + serialized_name="percentComplete", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + disks_and_size_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details + disks_and_size_details.Element = AAZIntType() + + granular_copy_log_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details + granular_copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + _element.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + granular_copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress + granular_copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _CreateHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions + actions.Element = AAZStrType() + + preferred_disks = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks + preferred_disks.Element = AAZIntType() + + disc_data_box_heavy = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") + disc_data_box_heavy.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_heavy.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress + copy_progress.Element = AAZObjectType() + _CreateHelper._build_schema_copy_progress_read(copy_progress.Element) + + sku = cls._schema_on_200.sku + sku.display_name = AAZStrType( + serialized_name="displayName", + ) + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _CreateHelper: + """Helper class for Create""" + + @classmethod + def _build_schema_shipping_address_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("addressType", AAZStrType, ".address_type") + _builder.set_prop("city", AAZStrType, ".city") + _builder.set_prop("companyName", AAZStrType, ".company_name") + _builder.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("postalCode", AAZStrType, ".postal_code") + _builder.set_prop("skipAddressValidation", AAZBoolType, ".skip_address_validation") + _builder.set_prop("stateOrProvince", AAZStrType, ".state_or_province") + _builder.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("streetAddress2", AAZStrType, ".street_address2") + _builder.set_prop("streetAddress3", AAZStrType, ".street_address3") + _builder.set_prop("taxIdentificationNumber", AAZStrType, ".tax_identification_number") + _builder.set_prop("zipExtendedCode", AAZStrType, ".zip_extended_code") + + @classmethod + def _build_schema_transport_preferences_create(cls, _builder): + if _builder is None: + return + _builder.set_prop("preferredShipmentType", AAZStrType, ".preferred_shipment_type", typ_kwargs={"flags": {"required": True}}) + + _schema_cloud_error_read = None + + @classmethod + def _build_schema_cloud_error_read(cls, _schema): + if cls._schema_cloud_error_read is not None: + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + return + + cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() + + cloud_error_read = _schema_cloud_error_read + cloud_error_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + cloud_error_read.code = AAZStrType() + cloud_error_read.details = AAZListType( + flags={"read_only": True}, + ) + cloud_error_read.message = AAZStrType() + cloud_error_read.target = AAZStrType() + + additional_info = _schema_cloud_error_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_cloud_error_read.additional_info.Element + _element.type = AAZStrType() + + details = _schema_cloud_error_read.details + details.Element = AAZObjectType() + cls._build_schema_cloud_error_read(details.Element) + + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + + _schema_copy_progress_read = None + + @classmethod + def _build_schema_copy_progress_read(cls, _schema): + if cls._schema_copy_progress_read is not None: + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + return + + cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() + + copy_progress_read = _schema_copy_progress_read + copy_progress_read.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + copy_progress_read.actions = AAZListType( + flags={"read_only": True}, + ) + copy_progress_read.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + copy_progress_read.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.error = AAZObjectType() + cls._build_schema_cloud_error_read(copy_progress_read.error) + copy_progress_read.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + copy_progress_read.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + copy_progress_read.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + copy_progress_read.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + copy_progress_read.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = _schema_copy_progress_read.actions + actions.Element = AAZStrType() + + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + + _schema_data_account_details_read = None + + @classmethod + def _build_schema_data_account_details_read(cls, _schema): + if cls._schema_data_account_details_read is not None: + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + return + + cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() + + data_account_details_read = _schema_data_account_details_read + data_account_details_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + + disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") + disc_managed_disk.resource_group_id = AAZStrType( + serialized_name="resourceGroupId", + flags={"required": True}, + ) + disc_managed_disk.staging_storage_account_id = AAZStrType( + serialized_name="stagingStorageAccountId", + flags={"required": True}, + ) + + disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") + disc_storage_account.storage_account_id = AAZStrType( + serialized_name="storageAccountId", + flags={"required": True}, + ) + + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + + _schema_package_shipping_details_read = None + + @classmethod + def _build_schema_package_shipping_details_read(cls, _schema): + if cls._schema_package_shipping_details_read is not None: + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + return + + cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() + + package_shipping_details_read = _schema_package_shipping_details_read + package_shipping_details_read.carrier_name = AAZStrType( + serialized_name="carrierName", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_id = AAZStrType( + serialized_name="trackingId", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_url = AAZStrType( + serialized_name="trackingUrl", + flags={"read_only": True}, + ) + + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + + _schema_shipping_address_read = None + + @classmethod + def _build_schema_shipping_address_read(cls, _schema): + if cls._schema_shipping_address_read is not None: + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + return + + cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() + + shipping_address_read = _schema_shipping_address_read + shipping_address_read.address_type = AAZStrType( + serialized_name="addressType", + ) + shipping_address_read.city = AAZStrType() + shipping_address_read.company_name = AAZStrType( + serialized_name="companyName", + ) + shipping_address_read.country = AAZStrType( + flags={"required": True}, + ) + shipping_address_read.postal_code = AAZStrType( + serialized_name="postalCode", + ) + shipping_address_read.skip_address_validation = AAZBoolType( + serialized_name="skipAddressValidation", + ) + shipping_address_read.state_or_province = AAZStrType( + serialized_name="stateOrProvince", + ) + shipping_address_read.street_address1 = AAZStrType( + serialized_name="streetAddress1", + flags={"required": True}, + ) + shipping_address_read.street_address2 = AAZStrType( + serialized_name="streetAddress2", + ) + shipping_address_read.street_address3 = AAZStrType( + serialized_name="streetAddress3", + ) + shipping_address_read.tax_identification_number = AAZStrType( + serialized_name="taxIdentificationNumber", + ) + shipping_address_read.zip_extended_code = AAZStrType( + serialized_name="zipExtendedCode", + ) + + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + + _schema_transport_preferences_read = None + + @classmethod + def _build_schema_transport_preferences_read(cls, _schema): + if cls._schema_transport_preferences_read is not None: + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + return + + cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() + + transport_preferences_read = _schema_transport_preferences_read + transport_preferences_read.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + transport_preferences_read.preferred_shipment_type = AAZStrType( + serialized_name="preferredShipmentType", + flags={"required": True}, + ) + + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + + +__all__ = ["Create"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_delete.py b/src/databox/azext_databox/aaz/latest/databox/job/_delete.py new file mode 100644 index 00000000000..ec40ed86e50 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_delete.py @@ -0,0 +1,168 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a job. + + :example: Delete job + az databox job delete -n job-name -g rg + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, None) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.JobsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class JobsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_list.py b/src/databox/azext_databox/aaz/latest/databox/job/_list.py new file mode 100644 index 00000000000..3399905369e --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_list.py @@ -0,0 +1,2599 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job list", +) +class List(AAZCommand): + """List all the jobs available under the subscription. + + :example: List job by resource group + az databox job list -g rg + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.databox/jobs", "2022-12-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs", "2022-12-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.JobsListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.JobsList(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class JobsListByResourceGroup(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.sku = AAZObjectType( + flags={"required": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.cancellation_reason = AAZStrType( + serialized_name="cancellationReason", + flags={"read_only": True}, + ) + properties.delivery_info = AAZObjectType( + serialized_name="deliveryInfo", + ) + properties.delivery_type = AAZStrType( + serialized_name="deliveryType", + ) + properties.details = AAZObjectType() + properties.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(properties.error) + properties.is_cancellable = AAZBoolType( + serialized_name="isCancellable", + flags={"read_only": True}, + ) + properties.is_cancellable_without_fee = AAZBoolType( + serialized_name="isCancellableWithoutFee", + flags={"read_only": True}, + ) + properties.is_deletable = AAZBoolType( + serialized_name="isDeletable", + flags={"read_only": True}, + ) + properties.is_prepare_to_ship_enabled = AAZBoolType( + serialized_name="isPrepareToShipEnabled", + flags={"read_only": True}, + ) + properties.is_shipping_address_editable = AAZBoolType( + serialized_name="isShippingAddressEditable", + flags={"read_only": True}, + ) + properties.reverse_shipping_details_update = AAZStrType( + serialized_name="reverseShippingDetailsUpdate", + flags={"read_only": True}, + ) + properties.reverse_transport_preference_update = AAZStrType( + serialized_name="reverseTransportPreferenceUpdate", + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + flags={"read_only": True}, + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"required": True}, + ) + + delivery_info = cls._schema_on_200.value.Element.properties.delivery_info + delivery_info.scheduled_date_time = AAZStrType( + serialized_name="scheduledDateTime", + ) + + details = cls._schema_on_200.value.Element.properties.details + details.actions = AAZListType( + flags={"read_only": True}, + ) + details.chain_of_custody_sas_key = AAZStrType( + serialized_name="chainOfCustodySasKey", + flags={"read_only": True}, + ) + details.contact_details = AAZObjectType( + serialized_name="contactDetails", + flags={"required": True}, + ) + details.copy_log_details = AAZListType( + serialized_name="copyLogDetails", + flags={"read_only": True}, + ) + details.data_center_code = AAZStrType( + serialized_name="dataCenterCode", + flags={"read_only": True}, + ) + details.data_export_details = AAZListType( + serialized_name="dataExportDetails", + ) + details.data_import_details = AAZListType( + serialized_name="dataImportDetails", + ) + details.datacenter_address = AAZObjectType( + serialized_name="datacenterAddress", + ) + details.delivery_package = AAZObjectType( + serialized_name="deliveryPackage", + ) + _ListHelper._build_schema_package_shipping_details_read(details.delivery_package) + details.device_erasure_details = AAZObjectType( + serialized_name="deviceErasureDetails", + ) + details.expected_data_size_in_tera_bytes = AAZIntType( + serialized_name="expectedDataSizeInTeraBytes", + ) + details.job_details_type = AAZStrType( + serialized_name="jobDetailsType", + flags={"required": True}, + ) + details.job_stages = AAZListType( + serialized_name="jobStages", + flags={"read_only": True}, + ) + details.key_encryption_key = AAZObjectType( + serialized_name="keyEncryptionKey", + ) + details.last_mitigation_action_on_job = AAZObjectType( + serialized_name="lastMitigationActionOnJob", + ) + details.preferences = AAZObjectType() + details.return_package = AAZObjectType( + serialized_name="returnPackage", + ) + _ListHelper._build_schema_package_shipping_details_read(details.return_package) + details.reverse_shipment_label_sas_key = AAZStrType( + serialized_name="reverseShipmentLabelSasKey", + flags={"read_only": True}, + ) + details.reverse_shipping_details = AAZObjectType( + serialized_name="reverseShippingDetails", + ) + details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ListHelper._build_schema_shipping_address_read(details.shipping_address) + + actions = cls._schema_on_200.value.Element.properties.details.actions + actions.Element = AAZStrType() + + contact_details = cls._schema_on_200.value.Element.properties.details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.email_list = AAZListType( + serialized_name="emailList", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.notification_preference = AAZListType( + serialized_name="notificationPreference", + ) + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + email_list = cls._schema_on_200.value.Element.properties.details.contact_details.email_list + email_list.Element = AAZStrType() + + notification_preference = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference + notification_preference.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference.Element + _element.send_notification = AAZBoolType( + serialized_name="sendNotification", + flags={"required": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"required": True}, + ) + + copy_log_details = cls._schema_on_200.value.Element.properties.details.copy_log_details + copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + + disc_data_box = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") + disc_data_box.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box.copy_log_link = AAZStrType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box.copy_verbose_log_link = AAZStrType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") + disc_data_box_disk.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + disc_data_box_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") + disc_data_box_heavy.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_log_link = AAZListType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_verbose_log_link = AAZListType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + copy_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link + copy_log_link.Element = AAZStrType() + + copy_verbose_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link + copy_verbose_log_link.Element = AAZStrType() + + data_export_details = cls._schema_on_200.value.Element.properties.details.data_export_details + data_export_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ListHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + _element.transfer_configuration = AAZObjectType( + serialized_name="transferConfiguration", + flags={"required": True}, + ) + + transfer_configuration = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectType( + serialized_name="transferAllDetails", + ) + transfer_configuration.transfer_configuration_type = AAZStrType( + serialized_name="transferConfigurationType", + flags={"required": True}, + ) + transfer_configuration.transfer_filter_details = AAZObjectType( + serialized_name="transferFilterDetails", + ) + + transfer_all_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectType() + + include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.transfer_all_blobs = AAZBoolType( + serialized_name="transferAllBlobs", + ) + include.transfer_all_files = AAZBoolType( + serialized_name="transferAllFiles", + ) + + transfer_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.include = AAZObjectType() + + include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include + include.azure_file_filter_details = AAZObjectType( + serialized_name="azureFileFilterDetails", + ) + include.blob_filter_details = AAZObjectType( + serialized_name="blobFilterDetails", + ) + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.filter_file_details = AAZListType( + serialized_name="filterFileDetails", + ) + + azure_file_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListType( + serialized_name="filePathList", + ) + azure_file_filter_details.file_prefix_list = AAZListType( + serialized_name="filePrefixList", + ) + azure_file_filter_details.file_share_list = AAZListType( + serialized_name="fileShareList", + ) + + file_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrType() + + file_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrType() + + file_share_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrType() + + blob_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details + blob_filter_details.blob_path_list = AAZListType( + serialized_name="blobPathList", + ) + blob_filter_details.blob_prefix_list = AAZListType( + serialized_name="blobPrefixList", + ) + blob_filter_details.container_list = AAZListType( + serialized_name="containerList", + ) + + blob_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrType() + + blob_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrType() + + container_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list + container_list.Element = AAZStrType() + + filter_file_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details + filter_file_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element + _element.filter_file_path = AAZStrType( + serialized_name="filterFilePath", + flags={"required": True}, + ) + _element.filter_file_type = AAZStrType( + serialized_name="filterFileType", + flags={"required": True}, + ) + + data_import_details = cls._schema_on_200.value.Element.properties.details.data_import_details + data_import_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_import_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ListHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + + datacenter_address = cls._schema_on_200.value.Element.properties.details.datacenter_address + datacenter_address.data_center_azure_location = AAZStrType( + serialized_name="dataCenterAzureLocation", + flags={"read_only": True}, + ) + datacenter_address.datacenter_address_type = AAZStrType( + serialized_name="datacenterAddressType", + flags={"required": True}, + ) + datacenter_address.supported_carriers_for_return_shipment = AAZListType( + serialized_name="supportedCarriersForReturnShipment", + flags={"read_only": True}, + ) + + supported_carriers_for_return_shipment = cls._schema_on_200.value.Element.properties.details.datacenter_address.supported_carriers_for_return_shipment + supported_carriers_for_return_shipment.Element = AAZStrType() + + disc_datacenter_address_instruction = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") + disc_datacenter_address_instruction.communication_instruction = AAZStrType( + serialized_name="communicationInstruction", + flags={"read_only": True}, + ) + + disc_datacenter_address_location = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") + disc_datacenter_address_location.additional_shipping_information = AAZStrType( + serialized_name="additionalShippingInformation", + flags={"read_only": True}, + ) + disc_datacenter_address_location.address_type = AAZStrType( + serialized_name="addressType", + flags={"read_only": True}, + ) + disc_datacenter_address_location.city = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.company = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.contact_person_name = AAZStrType( + serialized_name="contactPersonName", + flags={"read_only": True}, + ) + disc_datacenter_address_location.country = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone_extension = AAZStrType( + serialized_name="phoneExtension", + flags={"read_only": True}, + ) + disc_datacenter_address_location.state = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street1 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street2 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street3 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.zip = AAZStrType( + flags={"read_only": True}, + ) + + device_erasure_details = cls._schema_on_200.value.Element.properties.details.device_erasure_details + device_erasure_details.device_erasure_status = AAZStrType( + serialized_name="deviceErasureStatus", + flags={"read_only": True}, + ) + device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( + serialized_name="erasureOrDestructionCertificateSasKey", + flags={"read_only": True}, + ) + + job_stages = cls._schema_on_200.value.Element.properties.details.job_stages + job_stages.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.job_stages.Element + _element.display_name = AAZStrType( + serialized_name="displayName", + flags={"read_only": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"read_only": True}, + ) + _element.stage_status = AAZStrType( + serialized_name="stageStatus", + flags={"read_only": True}, + ) + _element.stage_time = AAZStrType( + serialized_name="stageTime", + flags={"read_only": True}, + ) + + key_encryption_key = cls._schema_on_200.value.Element.properties.details.key_encryption_key + key_encryption_key.identity_properties = AAZObjectType( + serialized_name="identityProperties", + ) + key_encryption_key.kek_type = AAZStrType( + serialized_name="kekType", + flags={"required": True}, + ) + key_encryption_key.kek_url = AAZStrType( + serialized_name="kekUrl", + ) + key_encryption_key.kek_vault_resource_id = AAZStrType( + serialized_name="kekVaultResourceID", + ) + + identity_properties = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties + identity_properties.type = AAZStrType() + identity_properties.user_assigned = AAZObjectType( + serialized_name="userAssigned", + ) + + user_assigned = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties.user_assigned + user_assigned.resource_id = AAZStrType( + serialized_name="resourceId", + ) + + last_mitigation_action_on_job = cls._schema_on_200.value.Element.properties.details.last_mitigation_action_on_job + last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( + serialized_name="actionDateTimeInUtc", + ) + last_mitigation_action_on_job.customer_resolution = AAZStrType( + serialized_name="customerResolution", + ) + last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( + serialized_name="isPerformedByCustomer", + ) + + preferences = cls._schema_on_200.value.Element.properties.details.preferences + preferences.encryption_preferences = AAZObjectType( + serialized_name="encryptionPreferences", + ) + preferences.preferred_data_center_region = AAZListType( + serialized_name="preferredDataCenterRegion", + ) + preferences.reverse_transport_preferences = AAZObjectType( + serialized_name="reverseTransportPreferences", + ) + _ListHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) + preferences.storage_account_access_tier_preferences = AAZListType( + serialized_name="storageAccountAccessTierPreferences", + ) + preferences.transport_preferences = AAZObjectType( + serialized_name="transportPreferences", + ) + _ListHelper._build_schema_transport_preferences_read(preferences.transport_preferences) + + encryption_preferences = cls._schema_on_200.value.Element.properties.details.preferences.encryption_preferences + encryption_preferences.double_encryption = AAZStrType( + serialized_name="doubleEncryption", + ) + encryption_preferences.hardware_encryption = AAZStrType( + serialized_name="hardwareEncryption", + ) + + preferred_data_center_region = cls._schema_on_200.value.Element.properties.details.preferences.preferred_data_center_region + preferred_data_center_region.Element = AAZStrType() + + storage_account_access_tier_preferences = cls._schema_on_200.value.Element.properties.details.preferences.storage_account_access_tier_preferences + storage_account_access_tier_preferences.Element = AAZStrType() + + reverse_shipping_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details + reverse_shipping_details.contact_details = AAZObjectType( + serialized_name="contactDetails", + ) + reverse_shipping_details.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + reverse_shipping_details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ListHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) + + contact_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + disc_data_box = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox") + disc_data_box.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress + copy_progress.Element = AAZObjectType() + _ListHelper._build_schema_copy_progress_read(copy_progress.Element) + + disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( + serialized_name="deliverToDcPackageDetails", + ) + disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( + serialized_name="enableManifestBackup", + ) + disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( + serialized_name="exportDiskDetailsCollection", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( + serialized_name="importDiskDetailsCollection", + ) + disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( + serialized_name="returnToCustomerPackageDetails", + flags={"required": True}, + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + deliver_to_dc_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details + deliver_to_dc_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + deliver_to_dc_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + export_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection + export_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"read_only": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"read_only": True}, + ) + + import_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection + import_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"required": True, "secret": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"required": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"required": True}, + ) + + return_to_customer_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True}, + ) + return_to_customer_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + return_to_customer_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk") + disc_data_box_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.disks_and_size_details = AAZDictType( + serialized_name="disksAndSizeDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_log_details = AAZListType( + serialized_name="granularCopyLogDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_progress = AAZListType( + serialized_name="granularCopyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.passkey = AAZStrType() + disc_data_box_disk.preferred_disks = AAZDictType( + serialized_name="preferredDisks", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_copied = AAZIntType( + serialized_name="bytesCopied", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.percent_complete = AAZIntType( + serialized_name="percentComplete", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + disks_and_size_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details + disks_and_size_details.Element = AAZIntType() + + granular_copy_log_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details + granular_copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + _element.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + granular_copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress + granular_copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions + actions.Element = AAZStrType() + + preferred_disks = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks + preferred_disks.Element = AAZIntType() + + disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") + disc_data_box_heavy.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_heavy.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress + copy_progress.Element = AAZObjectType() + _ListHelper._build_schema_copy_progress_read(copy_progress.Element) + + sku = cls._schema_on_200.value.Element.sku + sku.display_name = AAZStrType( + serialized_name="displayName", + ) + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class JobsList(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _element.sku = AAZObjectType( + flags={"required": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.cancellation_reason = AAZStrType( + serialized_name="cancellationReason", + flags={"read_only": True}, + ) + properties.delivery_info = AAZObjectType( + serialized_name="deliveryInfo", + ) + properties.delivery_type = AAZStrType( + serialized_name="deliveryType", + ) + properties.details = AAZObjectType() + properties.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(properties.error) + properties.is_cancellable = AAZBoolType( + serialized_name="isCancellable", + flags={"read_only": True}, + ) + properties.is_cancellable_without_fee = AAZBoolType( + serialized_name="isCancellableWithoutFee", + flags={"read_only": True}, + ) + properties.is_deletable = AAZBoolType( + serialized_name="isDeletable", + flags={"read_only": True}, + ) + properties.is_prepare_to_ship_enabled = AAZBoolType( + serialized_name="isPrepareToShipEnabled", + flags={"read_only": True}, + ) + properties.is_shipping_address_editable = AAZBoolType( + serialized_name="isShippingAddressEditable", + flags={"read_only": True}, + ) + properties.reverse_shipping_details_update = AAZStrType( + serialized_name="reverseShippingDetailsUpdate", + flags={"read_only": True}, + ) + properties.reverse_transport_preference_update = AAZStrType( + serialized_name="reverseTransportPreferenceUpdate", + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + flags={"read_only": True}, + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"required": True}, + ) + + delivery_info = cls._schema_on_200.value.Element.properties.delivery_info + delivery_info.scheduled_date_time = AAZStrType( + serialized_name="scheduledDateTime", + ) + + details = cls._schema_on_200.value.Element.properties.details + details.actions = AAZListType( + flags={"read_only": True}, + ) + details.chain_of_custody_sas_key = AAZStrType( + serialized_name="chainOfCustodySasKey", + flags={"read_only": True}, + ) + details.contact_details = AAZObjectType( + serialized_name="contactDetails", + flags={"required": True}, + ) + details.copy_log_details = AAZListType( + serialized_name="copyLogDetails", + flags={"read_only": True}, + ) + details.data_center_code = AAZStrType( + serialized_name="dataCenterCode", + flags={"read_only": True}, + ) + details.data_export_details = AAZListType( + serialized_name="dataExportDetails", + ) + details.data_import_details = AAZListType( + serialized_name="dataImportDetails", + ) + details.datacenter_address = AAZObjectType( + serialized_name="datacenterAddress", + ) + details.delivery_package = AAZObjectType( + serialized_name="deliveryPackage", + ) + _ListHelper._build_schema_package_shipping_details_read(details.delivery_package) + details.device_erasure_details = AAZObjectType( + serialized_name="deviceErasureDetails", + ) + details.expected_data_size_in_tera_bytes = AAZIntType( + serialized_name="expectedDataSizeInTeraBytes", + ) + details.job_details_type = AAZStrType( + serialized_name="jobDetailsType", + flags={"required": True}, + ) + details.job_stages = AAZListType( + serialized_name="jobStages", + flags={"read_only": True}, + ) + details.key_encryption_key = AAZObjectType( + serialized_name="keyEncryptionKey", + ) + details.last_mitigation_action_on_job = AAZObjectType( + serialized_name="lastMitigationActionOnJob", + ) + details.preferences = AAZObjectType() + details.return_package = AAZObjectType( + serialized_name="returnPackage", + ) + _ListHelper._build_schema_package_shipping_details_read(details.return_package) + details.reverse_shipment_label_sas_key = AAZStrType( + serialized_name="reverseShipmentLabelSasKey", + flags={"read_only": True}, + ) + details.reverse_shipping_details = AAZObjectType( + serialized_name="reverseShippingDetails", + ) + details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ListHelper._build_schema_shipping_address_read(details.shipping_address) + + actions = cls._schema_on_200.value.Element.properties.details.actions + actions.Element = AAZStrType() + + contact_details = cls._schema_on_200.value.Element.properties.details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.email_list = AAZListType( + serialized_name="emailList", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.notification_preference = AAZListType( + serialized_name="notificationPreference", + ) + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + email_list = cls._schema_on_200.value.Element.properties.details.contact_details.email_list + email_list.Element = AAZStrType() + + notification_preference = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference + notification_preference.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.contact_details.notification_preference.Element + _element.send_notification = AAZBoolType( + serialized_name="sendNotification", + flags={"required": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"required": True}, + ) + + copy_log_details = cls._schema_on_200.value.Element.properties.details.copy_log_details + copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + + disc_data_box = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") + disc_data_box.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box.copy_log_link = AAZStrType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box.copy_verbose_log_link = AAZStrType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") + disc_data_box_disk.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + disc_data_box_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") + disc_data_box_heavy.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_log_link = AAZListType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_verbose_log_link = AAZListType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + copy_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link + copy_log_link.Element = AAZStrType() + + copy_verbose_log_link = cls._schema_on_200.value.Element.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link + copy_verbose_log_link.Element = AAZStrType() + + data_export_details = cls._schema_on_200.value.Element.properties.details.data_export_details + data_export_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ListHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + _element.transfer_configuration = AAZObjectType( + serialized_name="transferConfiguration", + flags={"required": True}, + ) + + transfer_configuration = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectType( + serialized_name="transferAllDetails", + ) + transfer_configuration.transfer_configuration_type = AAZStrType( + serialized_name="transferConfigurationType", + flags={"required": True}, + ) + transfer_configuration.transfer_filter_details = AAZObjectType( + serialized_name="transferFilterDetails", + ) + + transfer_all_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectType() + + include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.transfer_all_blobs = AAZBoolType( + serialized_name="transferAllBlobs", + ) + include.transfer_all_files = AAZBoolType( + serialized_name="transferAllFiles", + ) + + transfer_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.include = AAZObjectType() + + include = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include + include.azure_file_filter_details = AAZObjectType( + serialized_name="azureFileFilterDetails", + ) + include.blob_filter_details = AAZObjectType( + serialized_name="blobFilterDetails", + ) + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.filter_file_details = AAZListType( + serialized_name="filterFileDetails", + ) + + azure_file_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListType( + serialized_name="filePathList", + ) + azure_file_filter_details.file_prefix_list = AAZListType( + serialized_name="filePrefixList", + ) + azure_file_filter_details.file_share_list = AAZListType( + serialized_name="fileShareList", + ) + + file_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrType() + + file_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrType() + + file_share_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrType() + + blob_filter_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details + blob_filter_details.blob_path_list = AAZListType( + serialized_name="blobPathList", + ) + blob_filter_details.blob_prefix_list = AAZListType( + serialized_name="blobPrefixList", + ) + blob_filter_details.container_list = AAZListType( + serialized_name="containerList", + ) + + blob_path_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrType() + + blob_prefix_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrType() + + container_list = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list + container_list.Element = AAZStrType() + + filter_file_details = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details + filter_file_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element + _element.filter_file_path = AAZStrType( + serialized_name="filterFilePath", + flags={"required": True}, + ) + _element.filter_file_type = AAZStrType( + serialized_name="filterFileType", + flags={"required": True}, + ) + + data_import_details = cls._schema_on_200.value.Element.properties.details.data_import_details + data_import_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.data_import_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ListHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + + datacenter_address = cls._schema_on_200.value.Element.properties.details.datacenter_address + datacenter_address.data_center_azure_location = AAZStrType( + serialized_name="dataCenterAzureLocation", + flags={"read_only": True}, + ) + datacenter_address.datacenter_address_type = AAZStrType( + serialized_name="datacenterAddressType", + flags={"required": True}, + ) + datacenter_address.supported_carriers_for_return_shipment = AAZListType( + serialized_name="supportedCarriersForReturnShipment", + flags={"read_only": True}, + ) + + supported_carriers_for_return_shipment = cls._schema_on_200.value.Element.properties.details.datacenter_address.supported_carriers_for_return_shipment + supported_carriers_for_return_shipment.Element = AAZStrType() + + disc_datacenter_address_instruction = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") + disc_datacenter_address_instruction.communication_instruction = AAZStrType( + serialized_name="communicationInstruction", + flags={"read_only": True}, + ) + + disc_datacenter_address_location = cls._schema_on_200.value.Element.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") + disc_datacenter_address_location.additional_shipping_information = AAZStrType( + serialized_name="additionalShippingInformation", + flags={"read_only": True}, + ) + disc_datacenter_address_location.address_type = AAZStrType( + serialized_name="addressType", + flags={"read_only": True}, + ) + disc_datacenter_address_location.city = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.company = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.contact_person_name = AAZStrType( + serialized_name="contactPersonName", + flags={"read_only": True}, + ) + disc_datacenter_address_location.country = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone_extension = AAZStrType( + serialized_name="phoneExtension", + flags={"read_only": True}, + ) + disc_datacenter_address_location.state = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street1 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street2 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street3 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.zip = AAZStrType( + flags={"read_only": True}, + ) + + device_erasure_details = cls._schema_on_200.value.Element.properties.details.device_erasure_details + device_erasure_details.device_erasure_status = AAZStrType( + serialized_name="deviceErasureStatus", + flags={"read_only": True}, + ) + device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( + serialized_name="erasureOrDestructionCertificateSasKey", + flags={"read_only": True}, + ) + + job_stages = cls._schema_on_200.value.Element.properties.details.job_stages + job_stages.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.job_stages.Element + _element.display_name = AAZStrType( + serialized_name="displayName", + flags={"read_only": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"read_only": True}, + ) + _element.stage_status = AAZStrType( + serialized_name="stageStatus", + flags={"read_only": True}, + ) + _element.stage_time = AAZStrType( + serialized_name="stageTime", + flags={"read_only": True}, + ) + + key_encryption_key = cls._schema_on_200.value.Element.properties.details.key_encryption_key + key_encryption_key.identity_properties = AAZObjectType( + serialized_name="identityProperties", + ) + key_encryption_key.kek_type = AAZStrType( + serialized_name="kekType", + flags={"required": True}, + ) + key_encryption_key.kek_url = AAZStrType( + serialized_name="kekUrl", + ) + key_encryption_key.kek_vault_resource_id = AAZStrType( + serialized_name="kekVaultResourceID", + ) + + identity_properties = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties + identity_properties.type = AAZStrType() + identity_properties.user_assigned = AAZObjectType( + serialized_name="userAssigned", + ) + + user_assigned = cls._schema_on_200.value.Element.properties.details.key_encryption_key.identity_properties.user_assigned + user_assigned.resource_id = AAZStrType( + serialized_name="resourceId", + ) + + last_mitigation_action_on_job = cls._schema_on_200.value.Element.properties.details.last_mitigation_action_on_job + last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( + serialized_name="actionDateTimeInUtc", + ) + last_mitigation_action_on_job.customer_resolution = AAZStrType( + serialized_name="customerResolution", + ) + last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( + serialized_name="isPerformedByCustomer", + ) + + preferences = cls._schema_on_200.value.Element.properties.details.preferences + preferences.encryption_preferences = AAZObjectType( + serialized_name="encryptionPreferences", + ) + preferences.preferred_data_center_region = AAZListType( + serialized_name="preferredDataCenterRegion", + ) + preferences.reverse_transport_preferences = AAZObjectType( + serialized_name="reverseTransportPreferences", + ) + _ListHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) + preferences.storage_account_access_tier_preferences = AAZListType( + serialized_name="storageAccountAccessTierPreferences", + ) + preferences.transport_preferences = AAZObjectType( + serialized_name="transportPreferences", + ) + _ListHelper._build_schema_transport_preferences_read(preferences.transport_preferences) + + encryption_preferences = cls._schema_on_200.value.Element.properties.details.preferences.encryption_preferences + encryption_preferences.double_encryption = AAZStrType( + serialized_name="doubleEncryption", + ) + encryption_preferences.hardware_encryption = AAZStrType( + serialized_name="hardwareEncryption", + ) + + preferred_data_center_region = cls._schema_on_200.value.Element.properties.details.preferences.preferred_data_center_region + preferred_data_center_region.Element = AAZStrType() + + storage_account_access_tier_preferences = cls._schema_on_200.value.Element.properties.details.preferences.storage_account_access_tier_preferences + storage_account_access_tier_preferences.Element = AAZStrType() + + reverse_shipping_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details + reverse_shipping_details.contact_details = AAZObjectType( + serialized_name="contactDetails", + ) + reverse_shipping_details.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + reverse_shipping_details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ListHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) + + contact_details = cls._schema_on_200.value.Element.properties.details.reverse_shipping_details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + disc_data_box = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox") + disc_data_box.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress + copy_progress.Element = AAZObjectType() + _ListHelper._build_schema_copy_progress_read(copy_progress.Element) + + disc_data_box_customer_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( + serialized_name="deliverToDcPackageDetails", + ) + disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( + serialized_name="enableManifestBackup", + ) + disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( + serialized_name="exportDiskDetailsCollection", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( + serialized_name="importDiskDetailsCollection", + ) + disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( + serialized_name="returnToCustomerPackageDetails", + flags={"required": True}, + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + deliver_to_dc_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details + deliver_to_dc_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + deliver_to_dc_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + export_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection + export_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"read_only": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"read_only": True}, + ) + + import_disk_details_collection = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection + import_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"required": True, "secret": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"required": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"required": True}, + ) + + return_to_customer_package_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True}, + ) + return_to_customer_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + return_to_customer_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + disc_data_box_disk = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk") + disc_data_box_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.disks_and_size_details = AAZDictType( + serialized_name="disksAndSizeDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_log_details = AAZListType( + serialized_name="granularCopyLogDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_progress = AAZListType( + serialized_name="granularCopyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.passkey = AAZStrType() + disc_data_box_disk.preferred_disks = AAZDictType( + serialized_name="preferredDisks", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_copied = AAZIntType( + serialized_name="bytesCopied", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.percent_complete = AAZIntType( + serialized_name="percentComplete", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + disks_and_size_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details + disks_and_size_details.Element = AAZIntType() + + granular_copy_log_details = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details + granular_copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + _element.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + granular_copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress + granular_copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ListHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions + actions.Element = AAZStrType() + + preferred_disks = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks + preferred_disks.Element = AAZIntType() + + disc_data_box_heavy = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") + disc_data_box_heavy.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_heavy.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.value.Element.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress + copy_progress.Element = AAZObjectType() + _ListHelper._build_schema_copy_progress_read(copy_progress.Element) + + sku = cls._schema_on_200.value.Element.sku + sku.display_name = AAZStrType( + serialized_name="displayName", + ) + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + _schema_cloud_error_read = None + + @classmethod + def _build_schema_cloud_error_read(cls, _schema): + if cls._schema_cloud_error_read is not None: + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + return + + cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() + + cloud_error_read = _schema_cloud_error_read + cloud_error_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + cloud_error_read.code = AAZStrType() + cloud_error_read.details = AAZListType( + flags={"read_only": True}, + ) + cloud_error_read.message = AAZStrType() + cloud_error_read.target = AAZStrType() + + additional_info = _schema_cloud_error_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_cloud_error_read.additional_info.Element + _element.type = AAZStrType() + + details = _schema_cloud_error_read.details + details.Element = AAZObjectType() + cls._build_schema_cloud_error_read(details.Element) + + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + + _schema_copy_progress_read = None + + @classmethod + def _build_schema_copy_progress_read(cls, _schema): + if cls._schema_copy_progress_read is not None: + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + return + + cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() + + copy_progress_read = _schema_copy_progress_read + copy_progress_read.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + copy_progress_read.actions = AAZListType( + flags={"read_only": True}, + ) + copy_progress_read.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + copy_progress_read.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.error = AAZObjectType() + cls._build_schema_cloud_error_read(copy_progress_read.error) + copy_progress_read.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + copy_progress_read.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + copy_progress_read.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + copy_progress_read.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + copy_progress_read.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = _schema_copy_progress_read.actions + actions.Element = AAZStrType() + + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + + _schema_data_account_details_read = None + + @classmethod + def _build_schema_data_account_details_read(cls, _schema): + if cls._schema_data_account_details_read is not None: + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + return + + cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() + + data_account_details_read = _schema_data_account_details_read + data_account_details_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + + disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") + disc_managed_disk.resource_group_id = AAZStrType( + serialized_name="resourceGroupId", + flags={"required": True}, + ) + disc_managed_disk.staging_storage_account_id = AAZStrType( + serialized_name="stagingStorageAccountId", + flags={"required": True}, + ) + + disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") + disc_storage_account.storage_account_id = AAZStrType( + serialized_name="storageAccountId", + flags={"required": True}, + ) + + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + + _schema_package_shipping_details_read = None + + @classmethod + def _build_schema_package_shipping_details_read(cls, _schema): + if cls._schema_package_shipping_details_read is not None: + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + return + + cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() + + package_shipping_details_read = _schema_package_shipping_details_read + package_shipping_details_read.carrier_name = AAZStrType( + serialized_name="carrierName", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_id = AAZStrType( + serialized_name="trackingId", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_url = AAZStrType( + serialized_name="trackingUrl", + flags={"read_only": True}, + ) + + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + + _schema_shipping_address_read = None + + @classmethod + def _build_schema_shipping_address_read(cls, _schema): + if cls._schema_shipping_address_read is not None: + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + return + + cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() + + shipping_address_read = _schema_shipping_address_read + shipping_address_read.address_type = AAZStrType( + serialized_name="addressType", + ) + shipping_address_read.city = AAZStrType() + shipping_address_read.company_name = AAZStrType( + serialized_name="companyName", + ) + shipping_address_read.country = AAZStrType( + flags={"required": True}, + ) + shipping_address_read.postal_code = AAZStrType( + serialized_name="postalCode", + ) + shipping_address_read.skip_address_validation = AAZBoolType( + serialized_name="skipAddressValidation", + ) + shipping_address_read.state_or_province = AAZStrType( + serialized_name="stateOrProvince", + ) + shipping_address_read.street_address1 = AAZStrType( + serialized_name="streetAddress1", + flags={"required": True}, + ) + shipping_address_read.street_address2 = AAZStrType( + serialized_name="streetAddress2", + ) + shipping_address_read.street_address3 = AAZStrType( + serialized_name="streetAddress3", + ) + shipping_address_read.tax_identification_number = AAZStrType( + serialized_name="taxIdentificationNumber", + ) + shipping_address_read.zip_extended_code = AAZStrType( + serialized_name="zipExtendedCode", + ) + + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + + _schema_transport_preferences_read = None + + @classmethod + def _build_schema_transport_preferences_read(cls, _schema): + if cls._schema_transport_preferences_read is not None: + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + return + + cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() + + transport_preferences_read = _schema_transport_preferences_read + transport_preferences_read.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + transport_preferences_read.preferred_shipment_type = AAZStrType( + serialized_name="preferredShipmentType", + flags={"required": True}, + ) + + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + + +__all__ = ["List"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_list_credential.py b/src/databox/azext_databox/aaz/latest/databox/job/_list_credential.py new file mode 100644 index 00000000000..bc951a35bf4 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_list_credential.py @@ -0,0 +1,465 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job list-credential", +) +class ListCredential(AAZCommand): + """This method gets the unencrypted secrets related to the job. + + :example: List credential + az databox job list-credential -g rg -n job-name + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}/listcredentials", "2022-12-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.JobsListCredentials(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + return result + + class JobsListCredentials(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.job_name = AAZStrType( + serialized_name="jobName", + flags={"read_only": True}, + ) + _element.job_secrets = AAZObjectType( + serialized_name="jobSecrets", + ) + + job_secrets = cls._schema_on_200.value.Element.job_secrets + job_secrets.dc_access_security_code = AAZObjectType( + serialized_name="dcAccessSecurityCode", + ) + job_secrets.error = AAZObjectType() + _ListCredentialHelper._build_schema_cloud_error_read(job_secrets.error) + job_secrets.job_secrets_type = AAZStrType( + serialized_name="jobSecretsType", + flags={"required": True}, + ) + + dc_access_security_code = cls._schema_on_200.value.Element.job_secrets.dc_access_security_code + dc_access_security_code.forward_dc_access_code = AAZStrType( + serialized_name="forwardDCAccessCode", + ) + dc_access_security_code.reverse_dc_access_code = AAZStrType( + serialized_name="reverseDCAccessCode", + ) + + disc_data_box = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox") + disc_data_box.pod_secrets = AAZListType( + serialized_name="podSecrets", + ) + + pod_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets + pod_secrets.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element + _element.account_credential_details = AAZListType( + serialized_name="accountCredentialDetails", + flags={"read_only": True}, + ) + _element.device_password = AAZStrType( + serialized_name="devicePassword", + flags={"read_only": True}, + ) + _element.device_serial_number = AAZStrType( + serialized_name="deviceSerialNumber", + flags={"read_only": True}, + ) + _element.encoded_validation_cert_pub_key = AAZStrType( + serialized_name="encodedValidationCertPubKey", + flags={"read_only": True}, + ) + _element.network_configurations = AAZListType( + serialized_name="networkConfigurations", + flags={"read_only": True}, + ) + + account_credential_details = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element.account_credential_details + account_credential_details.Element = AAZObjectType() + _ListCredentialHelper._build_schema_account_credential_details_read(account_credential_details.Element) + + network_configurations = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBox").pod_secrets.Element.network_configurations + network_configurations.Element = AAZObjectType() + _ListCredentialHelper._build_schema_appliance_network_configuration_read(network_configurations.Element) + + disc_data_box_customer_disk = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True, "read_only": True}, + ) + disc_data_box_customer_disk.disk_secrets = AAZListType( + serialized_name="diskSecrets", + flags={"read_only": True}, + ) + + disk_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxCustomerDisk").disk_secrets + disk_secrets.Element = AAZObjectType() + _ListCredentialHelper._build_schema_disk_secret_read(disk_secrets.Element) + + disc_data_box_disk = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxDisk") + disc_data_box_disk.disk_secrets = AAZListType( + serialized_name="diskSecrets", + flags={"read_only": True}, + ) + disc_data_box_disk.is_passkey_user_defined = AAZBoolType( + serialized_name="isPasskeyUserDefined", + flags={"read_only": True}, + ) + disc_data_box_disk.pass_key = AAZStrType( + serialized_name="passKey", + flags={"read_only": True}, + ) + + disk_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxDisk").disk_secrets + disk_secrets.Element = AAZObjectType() + _ListCredentialHelper._build_schema_disk_secret_read(disk_secrets.Element) + + disc_data_box_heavy = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy") + disc_data_box_heavy.cabinet_pod_secrets = AAZListType( + serialized_name="cabinetPodSecrets", + flags={"read_only": True}, + ) + + cabinet_pod_secrets = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets + cabinet_pod_secrets.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element + _element.account_credential_details = AAZListType( + serialized_name="accountCredentialDetails", + flags={"read_only": True}, + ) + _element.device_password = AAZStrType( + serialized_name="devicePassword", + flags={"read_only": True}, + ) + _element.device_serial_number = AAZStrType( + serialized_name="deviceSerialNumber", + flags={"read_only": True}, + ) + _element.encoded_validation_cert_pub_key = AAZStrType( + serialized_name="encodedValidationCertPubKey", + flags={"read_only": True}, + ) + _element.network_configurations = AAZListType( + serialized_name="networkConfigurations", + flags={"read_only": True}, + ) + + account_credential_details = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element.account_credential_details + account_credential_details.Element = AAZObjectType() + _ListCredentialHelper._build_schema_account_credential_details_read(account_credential_details.Element) + + network_configurations = cls._schema_on_200.value.Element.job_secrets.discriminate_by("job_secrets_type", "DataBoxHeavy").cabinet_pod_secrets.Element.network_configurations + network_configurations.Element = AAZObjectType() + _ListCredentialHelper._build_schema_appliance_network_configuration_read(network_configurations.Element) + + return cls._schema_on_200 + + +class _ListCredentialHelper: + """Helper class for ListCredential""" + + _schema_account_credential_details_read = None + + @classmethod + def _build_schema_account_credential_details_read(cls, _schema): + if cls._schema_account_credential_details_read is not None: + _schema.account_connection_string = cls._schema_account_credential_details_read.account_connection_string + _schema.account_name = cls._schema_account_credential_details_read.account_name + _schema.data_account_type = cls._schema_account_credential_details_read.data_account_type + _schema.share_credential_details = cls._schema_account_credential_details_read.share_credential_details + return + + cls._schema_account_credential_details_read = _schema_account_credential_details_read = AAZObjectType() + + account_credential_details_read = _schema_account_credential_details_read + account_credential_details_read.account_connection_string = AAZStrType( + serialized_name="accountConnectionString", + flags={"read_only": True}, + ) + account_credential_details_read.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + account_credential_details_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + account_credential_details_read.share_credential_details = AAZListType( + serialized_name="shareCredentialDetails", + flags={"read_only": True}, + ) + + share_credential_details = _schema_account_credential_details_read.share_credential_details + share_credential_details.Element = AAZObjectType() + + _element = _schema_account_credential_details_read.share_credential_details.Element + _element.password = AAZStrType( + flags={"read_only": True}, + ) + _element.share_name = AAZStrType( + serialized_name="shareName", + flags={"read_only": True}, + ) + _element.share_type = AAZStrType( + serialized_name="shareType", + flags={"read_only": True}, + ) + _element.supported_access_protocols = AAZListType( + serialized_name="supportedAccessProtocols", + flags={"read_only": True}, + ) + _element.user_name = AAZStrType( + serialized_name="userName", + flags={"read_only": True}, + ) + + supported_access_protocols = _schema_account_credential_details_read.share_credential_details.Element.supported_access_protocols + supported_access_protocols.Element = AAZStrType() + + _schema.account_connection_string = cls._schema_account_credential_details_read.account_connection_string + _schema.account_name = cls._schema_account_credential_details_read.account_name + _schema.data_account_type = cls._schema_account_credential_details_read.data_account_type + _schema.share_credential_details = cls._schema_account_credential_details_read.share_credential_details + + _schema_appliance_network_configuration_read = None + + @classmethod + def _build_schema_appliance_network_configuration_read(cls, _schema): + if cls._schema_appliance_network_configuration_read is not None: + _schema.mac_address = cls._schema_appliance_network_configuration_read.mac_address + _schema.name = cls._schema_appliance_network_configuration_read.name + return + + cls._schema_appliance_network_configuration_read = _schema_appliance_network_configuration_read = AAZObjectType() + + appliance_network_configuration_read = _schema_appliance_network_configuration_read + appliance_network_configuration_read.mac_address = AAZStrType( + serialized_name="macAddress", + flags={"read_only": True}, + ) + appliance_network_configuration_read.name = AAZStrType( + flags={"read_only": True}, + ) + + _schema.mac_address = cls._schema_appliance_network_configuration_read.mac_address + _schema.name = cls._schema_appliance_network_configuration_read.name + + _schema_cloud_error_read = None + + @classmethod + def _build_schema_cloud_error_read(cls, _schema): + if cls._schema_cloud_error_read is not None: + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + return + + cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() + + cloud_error_read = _schema_cloud_error_read + cloud_error_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + cloud_error_read.code = AAZStrType() + cloud_error_read.details = AAZListType( + flags={"read_only": True}, + ) + cloud_error_read.message = AAZStrType() + cloud_error_read.target = AAZStrType() + + additional_info = _schema_cloud_error_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_cloud_error_read.additional_info.Element + _element.type = AAZStrType() + + details = _schema_cloud_error_read.details + details.Element = AAZObjectType() + cls._build_schema_cloud_error_read(details.Element) + + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + + _schema_disk_secret_read = None + + @classmethod + def _build_schema_disk_secret_read(cls, _schema): + if cls._schema_disk_secret_read is not None: + _schema.bit_locker_key = cls._schema_disk_secret_read.bit_locker_key + _schema.disk_serial_number = cls._schema_disk_secret_read.disk_serial_number + return + + cls._schema_disk_secret_read = _schema_disk_secret_read = AAZObjectType() + + disk_secret_read = _schema_disk_secret_read + disk_secret_read.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"read_only": True}, + ) + disk_secret_read.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + + _schema.bit_locker_key = cls._schema_disk_secret_read.bit_locker_key + _schema.disk_serial_number = cls._schema_disk_secret_read.disk_serial_number + + +__all__ = ["ListCredential"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_mark_devices_shipped.py b/src/databox/azext_databox/aaz/latest/databox/job/_mark_devices_shipped.py new file mode 100644 index 00000000000..c0c61634cfa --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_mark_devices_shipped.py @@ -0,0 +1,183 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job mark-devices-shipped", +) +class MarkDevicesShipped(AAZCommand): + """Request to mark devices for a given job as shipped + + :example: Mark devices shipped + az databox job mark-devices-shipped -g rg -n job-name + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}/markdevicesshipped", "2022-12-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "MarkDevicesShippedRequest" + + _args_schema = cls._args_schema + _args_schema.deliver_package_details = AAZObjectArg( + options=["--deliver-package-details"], + arg_group="MarkDevicesShippedRequest", + help="Delivery package details", + required=True, + ) + + deliver_package_details = cls._args_schema.deliver_package_details + deliver_package_details.carrier_name = AAZStrArg( + options=["carrier-name"], + help="Name of the carrier.", + ) + deliver_package_details.tracking_id = AAZStrArg( + options=["tracking-id"], + help="Tracking Id of shipment.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.JobsMarkDevicesShipped(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class JobsMarkDevicesShipped(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("deliverToDcPackageDetails", AAZObjectType, ".deliver_package_details", typ_kwargs={"flags": {"required": True}}) + + deliver_to_dc_package_details = _builder.get(".deliverToDcPackageDetails") + if deliver_to_dc_package_details is not None: + deliver_to_dc_package_details.set_prop("carrierName", AAZStrType, ".carrier_name") + deliver_to_dc_package_details.set_prop("trackingId", AAZStrType, ".tracking_id") + + return self.serialize_content(_content_value) + + def on_204(self, session): + pass + + +class _MarkDevicesShippedHelper: + """Helper class for MarkDevicesShipped""" + + +__all__ = ["MarkDevicesShipped"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_show.py b/src/databox/azext_databox/aaz/latest/databox/job/_show.py new file mode 100644 index 00000000000..9281f953191 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_show.py @@ -0,0 +1,1516 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job show", +) +class Show(AAZCommand): + """Get information about the specified job. + + :example: Show job + az databox job show -g rg -n job-name + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.JobsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class JobsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _schema_on_200.sku = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.cancellation_reason = AAZStrType( + serialized_name="cancellationReason", + flags={"read_only": True}, + ) + properties.delivery_info = AAZObjectType( + serialized_name="deliveryInfo", + ) + properties.delivery_type = AAZStrType( + serialized_name="deliveryType", + ) + properties.details = AAZObjectType() + properties.error = AAZObjectType() + _ShowHelper._build_schema_cloud_error_read(properties.error) + properties.is_cancellable = AAZBoolType( + serialized_name="isCancellable", + flags={"read_only": True}, + ) + properties.is_cancellable_without_fee = AAZBoolType( + serialized_name="isCancellableWithoutFee", + flags={"read_only": True}, + ) + properties.is_deletable = AAZBoolType( + serialized_name="isDeletable", + flags={"read_only": True}, + ) + properties.is_prepare_to_ship_enabled = AAZBoolType( + serialized_name="isPrepareToShipEnabled", + flags={"read_only": True}, + ) + properties.is_shipping_address_editable = AAZBoolType( + serialized_name="isShippingAddressEditable", + flags={"read_only": True}, + ) + properties.reverse_shipping_details_update = AAZStrType( + serialized_name="reverseShippingDetailsUpdate", + flags={"read_only": True}, + ) + properties.reverse_transport_preference_update = AAZStrType( + serialized_name="reverseTransportPreferenceUpdate", + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + flags={"read_only": True}, + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"required": True}, + ) + + delivery_info = cls._schema_on_200.properties.delivery_info + delivery_info.scheduled_date_time = AAZStrType( + serialized_name="scheduledDateTime", + ) + + details = cls._schema_on_200.properties.details + details.actions = AAZListType( + flags={"read_only": True}, + ) + details.chain_of_custody_sas_key = AAZStrType( + serialized_name="chainOfCustodySasKey", + flags={"read_only": True}, + ) + details.contact_details = AAZObjectType( + serialized_name="contactDetails", + flags={"required": True}, + ) + details.copy_log_details = AAZListType( + serialized_name="copyLogDetails", + flags={"read_only": True}, + ) + details.data_center_code = AAZStrType( + serialized_name="dataCenterCode", + flags={"read_only": True}, + ) + details.data_export_details = AAZListType( + serialized_name="dataExportDetails", + ) + details.data_import_details = AAZListType( + serialized_name="dataImportDetails", + ) + details.datacenter_address = AAZObjectType( + serialized_name="datacenterAddress", + ) + details.delivery_package = AAZObjectType( + serialized_name="deliveryPackage", + ) + _ShowHelper._build_schema_package_shipping_details_read(details.delivery_package) + details.device_erasure_details = AAZObjectType( + serialized_name="deviceErasureDetails", + ) + details.expected_data_size_in_tera_bytes = AAZIntType( + serialized_name="expectedDataSizeInTeraBytes", + ) + details.job_details_type = AAZStrType( + serialized_name="jobDetailsType", + flags={"required": True}, + ) + details.job_stages = AAZListType( + serialized_name="jobStages", + flags={"read_only": True}, + ) + details.key_encryption_key = AAZObjectType( + serialized_name="keyEncryptionKey", + ) + details.last_mitigation_action_on_job = AAZObjectType( + serialized_name="lastMitigationActionOnJob", + ) + details.preferences = AAZObjectType() + details.return_package = AAZObjectType( + serialized_name="returnPackage", + ) + _ShowHelper._build_schema_package_shipping_details_read(details.return_package) + details.reverse_shipment_label_sas_key = AAZStrType( + serialized_name="reverseShipmentLabelSasKey", + flags={"read_only": True}, + ) + details.reverse_shipping_details = AAZObjectType( + serialized_name="reverseShippingDetails", + ) + details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ShowHelper._build_schema_shipping_address_read(details.shipping_address) + + actions = cls._schema_on_200.properties.details.actions + actions.Element = AAZStrType() + + contact_details = cls._schema_on_200.properties.details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.email_list = AAZListType( + serialized_name="emailList", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.notification_preference = AAZListType( + serialized_name="notificationPreference", + ) + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + email_list = cls._schema_on_200.properties.details.contact_details.email_list + email_list.Element = AAZStrType() + + notification_preference = cls._schema_on_200.properties.details.contact_details.notification_preference + notification_preference.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.contact_details.notification_preference.Element + _element.send_notification = AAZBoolType( + serialized_name="sendNotification", + flags={"required": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"required": True}, + ) + + copy_log_details = cls._schema_on_200.properties.details.copy_log_details + copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.copy_log_details.Element + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + + disc_data_box = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") + disc_data_box.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box.copy_log_link = AAZStrType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box.copy_verbose_log_link = AAZStrType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") + disc_data_box_disk.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + disc_data_box_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_heavy = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") + disc_data_box_heavy.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_log_link = AAZListType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_verbose_log_link = AAZListType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + copy_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link + copy_log_link.Element = AAZStrType() + + copy_verbose_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link + copy_verbose_log_link.Element = AAZStrType() + + data_export_details = cls._schema_on_200.properties.details.data_export_details + data_export_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ShowHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + _element.transfer_configuration = AAZObjectType( + serialized_name="transferConfiguration", + flags={"required": True}, + ) + + transfer_configuration = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectType( + serialized_name="transferAllDetails", + ) + transfer_configuration.transfer_configuration_type = AAZStrType( + serialized_name="transferConfigurationType", + flags={"required": True}, + ) + transfer_configuration.transfer_filter_details = AAZObjectType( + serialized_name="transferFilterDetails", + ) + + transfer_all_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.transfer_all_blobs = AAZBoolType( + serialized_name="transferAllBlobs", + ) + include.transfer_all_files = AAZBoolType( + serialized_name="transferAllFiles", + ) + + transfer_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include + include.azure_file_filter_details = AAZObjectType( + serialized_name="azureFileFilterDetails", + ) + include.blob_filter_details = AAZObjectType( + serialized_name="blobFilterDetails", + ) + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.filter_file_details = AAZListType( + serialized_name="filterFileDetails", + ) + + azure_file_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListType( + serialized_name="filePathList", + ) + azure_file_filter_details.file_prefix_list = AAZListType( + serialized_name="filePrefixList", + ) + azure_file_filter_details.file_share_list = AAZListType( + serialized_name="fileShareList", + ) + + file_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrType() + + file_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrType() + + file_share_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrType() + + blob_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details + blob_filter_details.blob_path_list = AAZListType( + serialized_name="blobPathList", + ) + blob_filter_details.blob_prefix_list = AAZListType( + serialized_name="blobPrefixList", + ) + blob_filter_details.container_list = AAZListType( + serialized_name="containerList", + ) + + blob_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrType() + + blob_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrType() + + container_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list + container_list.Element = AAZStrType() + + filter_file_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details + filter_file_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element + _element.filter_file_path = AAZStrType( + serialized_name="filterFilePath", + flags={"required": True}, + ) + _element.filter_file_type = AAZStrType( + serialized_name="filterFileType", + flags={"required": True}, + ) + + data_import_details = cls._schema_on_200.properties.details.data_import_details + data_import_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_import_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _ShowHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + + datacenter_address = cls._schema_on_200.properties.details.datacenter_address + datacenter_address.data_center_azure_location = AAZStrType( + serialized_name="dataCenterAzureLocation", + flags={"read_only": True}, + ) + datacenter_address.datacenter_address_type = AAZStrType( + serialized_name="datacenterAddressType", + flags={"required": True}, + ) + datacenter_address.supported_carriers_for_return_shipment = AAZListType( + serialized_name="supportedCarriersForReturnShipment", + flags={"read_only": True}, + ) + + supported_carriers_for_return_shipment = cls._schema_on_200.properties.details.datacenter_address.supported_carriers_for_return_shipment + supported_carriers_for_return_shipment.Element = AAZStrType() + + disc_datacenter_address_instruction = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") + disc_datacenter_address_instruction.communication_instruction = AAZStrType( + serialized_name="communicationInstruction", + flags={"read_only": True}, + ) + + disc_datacenter_address_location = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") + disc_datacenter_address_location.additional_shipping_information = AAZStrType( + serialized_name="additionalShippingInformation", + flags={"read_only": True}, + ) + disc_datacenter_address_location.address_type = AAZStrType( + serialized_name="addressType", + flags={"read_only": True}, + ) + disc_datacenter_address_location.city = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.company = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.contact_person_name = AAZStrType( + serialized_name="contactPersonName", + flags={"read_only": True}, + ) + disc_datacenter_address_location.country = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone_extension = AAZStrType( + serialized_name="phoneExtension", + flags={"read_only": True}, + ) + disc_datacenter_address_location.state = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street1 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street2 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street3 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.zip = AAZStrType( + flags={"read_only": True}, + ) + + device_erasure_details = cls._schema_on_200.properties.details.device_erasure_details + device_erasure_details.device_erasure_status = AAZStrType( + serialized_name="deviceErasureStatus", + flags={"read_only": True}, + ) + device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( + serialized_name="erasureOrDestructionCertificateSasKey", + flags={"read_only": True}, + ) + + job_stages = cls._schema_on_200.properties.details.job_stages + job_stages.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.job_stages.Element + _element.display_name = AAZStrType( + serialized_name="displayName", + flags={"read_only": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"read_only": True}, + ) + _element.stage_status = AAZStrType( + serialized_name="stageStatus", + flags={"read_only": True}, + ) + _element.stage_time = AAZStrType( + serialized_name="stageTime", + flags={"read_only": True}, + ) + + key_encryption_key = cls._schema_on_200.properties.details.key_encryption_key + key_encryption_key.identity_properties = AAZObjectType( + serialized_name="identityProperties", + ) + key_encryption_key.kek_type = AAZStrType( + serialized_name="kekType", + flags={"required": True}, + ) + key_encryption_key.kek_url = AAZStrType( + serialized_name="kekUrl", + ) + key_encryption_key.kek_vault_resource_id = AAZStrType( + serialized_name="kekVaultResourceID", + ) + + identity_properties = cls._schema_on_200.properties.details.key_encryption_key.identity_properties + identity_properties.type = AAZStrType() + identity_properties.user_assigned = AAZObjectType( + serialized_name="userAssigned", + ) + + user_assigned = cls._schema_on_200.properties.details.key_encryption_key.identity_properties.user_assigned + user_assigned.resource_id = AAZStrType( + serialized_name="resourceId", + ) + + last_mitigation_action_on_job = cls._schema_on_200.properties.details.last_mitigation_action_on_job + last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( + serialized_name="actionDateTimeInUtc", + ) + last_mitigation_action_on_job.customer_resolution = AAZStrType( + serialized_name="customerResolution", + ) + last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( + serialized_name="isPerformedByCustomer", + ) + + preferences = cls._schema_on_200.properties.details.preferences + preferences.encryption_preferences = AAZObjectType( + serialized_name="encryptionPreferences", + ) + preferences.preferred_data_center_region = AAZListType( + serialized_name="preferredDataCenterRegion", + ) + preferences.reverse_transport_preferences = AAZObjectType( + serialized_name="reverseTransportPreferences", + ) + _ShowHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) + preferences.storage_account_access_tier_preferences = AAZListType( + serialized_name="storageAccountAccessTierPreferences", + ) + preferences.transport_preferences = AAZObjectType( + serialized_name="transportPreferences", + ) + _ShowHelper._build_schema_transport_preferences_read(preferences.transport_preferences) + + encryption_preferences = cls._schema_on_200.properties.details.preferences.encryption_preferences + encryption_preferences.double_encryption = AAZStrType( + serialized_name="doubleEncryption", + ) + encryption_preferences.hardware_encryption = AAZStrType( + serialized_name="hardwareEncryption", + ) + + preferred_data_center_region = cls._schema_on_200.properties.details.preferences.preferred_data_center_region + preferred_data_center_region.Element = AAZStrType() + + storage_account_access_tier_preferences = cls._schema_on_200.properties.details.preferences.storage_account_access_tier_preferences + storage_account_access_tier_preferences.Element = AAZStrType() + + reverse_shipping_details = cls._schema_on_200.properties.details.reverse_shipping_details + reverse_shipping_details.contact_details = AAZObjectType( + serialized_name="contactDetails", + ) + reverse_shipping_details.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + reverse_shipping_details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _ShowHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) + + contact_details = cls._schema_on_200.properties.details.reverse_shipping_details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + disc_data_box = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox") + disc_data_box.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress + copy_progress.Element = AAZObjectType() + _ShowHelper._build_schema_copy_progress_read(copy_progress.Element) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( + serialized_name="deliverToDcPackageDetails", + ) + disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( + serialized_name="enableManifestBackup", + ) + disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( + serialized_name="exportDiskDetailsCollection", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( + serialized_name="importDiskDetailsCollection", + ) + disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( + serialized_name="returnToCustomerPackageDetails", + flags={"required": True}, + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ShowHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + deliver_to_dc_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details + deliver_to_dc_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + deliver_to_dc_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + export_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection + export_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"read_only": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"read_only": True}, + ) + + import_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection + import_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"required": True, "secret": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"required": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"required": True}, + ) + + return_to_customer_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True}, + ) + return_to_customer_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + return_to_customer_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk") + disc_data_box_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.disks_and_size_details = AAZDictType( + serialized_name="disksAndSizeDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_log_details = AAZListType( + serialized_name="granularCopyLogDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_progress = AAZListType( + serialized_name="granularCopyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.passkey = AAZStrType() + disc_data_box_disk.preferred_disks = AAZDictType( + serialized_name="preferredDisks", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_copied = AAZIntType( + serialized_name="bytesCopied", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ShowHelper._build_schema_cloud_error_read(_element.error) + _element.percent_complete = AAZIntType( + serialized_name="percentComplete", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + disks_and_size_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details + disks_and_size_details.Element = AAZIntType() + + granular_copy_log_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details + granular_copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + _element.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + granular_copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress + granular_copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _ShowHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions + actions.Element = AAZStrType() + + preferred_disks = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks + preferred_disks.Element = AAZIntType() + + disc_data_box_heavy = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") + disc_data_box_heavy.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_heavy.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress + copy_progress.Element = AAZObjectType() + _ShowHelper._build_schema_copy_progress_read(copy_progress.Element) + + sku = cls._schema_on_200.sku + sku.display_name = AAZStrType( + serialized_name="displayName", + ) + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_cloud_error_read = None + + @classmethod + def _build_schema_cloud_error_read(cls, _schema): + if cls._schema_cloud_error_read is not None: + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + return + + cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() + + cloud_error_read = _schema_cloud_error_read + cloud_error_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + cloud_error_read.code = AAZStrType() + cloud_error_read.details = AAZListType( + flags={"read_only": True}, + ) + cloud_error_read.message = AAZStrType() + cloud_error_read.target = AAZStrType() + + additional_info = _schema_cloud_error_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_cloud_error_read.additional_info.Element + _element.type = AAZStrType() + + details = _schema_cloud_error_read.details + details.Element = AAZObjectType() + cls._build_schema_cloud_error_read(details.Element) + + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + + _schema_copy_progress_read = None + + @classmethod + def _build_schema_copy_progress_read(cls, _schema): + if cls._schema_copy_progress_read is not None: + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + return + + cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() + + copy_progress_read = _schema_copy_progress_read + copy_progress_read.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + copy_progress_read.actions = AAZListType( + flags={"read_only": True}, + ) + copy_progress_read.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + copy_progress_read.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.error = AAZObjectType() + cls._build_schema_cloud_error_read(copy_progress_read.error) + copy_progress_read.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + copy_progress_read.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + copy_progress_read.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + copy_progress_read.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + copy_progress_read.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = _schema_copy_progress_read.actions + actions.Element = AAZStrType() + + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + + _schema_data_account_details_read = None + + @classmethod + def _build_schema_data_account_details_read(cls, _schema): + if cls._schema_data_account_details_read is not None: + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + return + + cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() + + data_account_details_read = _schema_data_account_details_read + data_account_details_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + + disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") + disc_managed_disk.resource_group_id = AAZStrType( + serialized_name="resourceGroupId", + flags={"required": True}, + ) + disc_managed_disk.staging_storage_account_id = AAZStrType( + serialized_name="stagingStorageAccountId", + flags={"required": True}, + ) + + disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") + disc_storage_account.storage_account_id = AAZStrType( + serialized_name="storageAccountId", + flags={"required": True}, + ) + + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + + _schema_package_shipping_details_read = None + + @classmethod + def _build_schema_package_shipping_details_read(cls, _schema): + if cls._schema_package_shipping_details_read is not None: + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + return + + cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() + + package_shipping_details_read = _schema_package_shipping_details_read + package_shipping_details_read.carrier_name = AAZStrType( + serialized_name="carrierName", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_id = AAZStrType( + serialized_name="trackingId", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_url = AAZStrType( + serialized_name="trackingUrl", + flags={"read_only": True}, + ) + + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + + _schema_shipping_address_read = None + + @classmethod + def _build_schema_shipping_address_read(cls, _schema): + if cls._schema_shipping_address_read is not None: + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + return + + cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() + + shipping_address_read = _schema_shipping_address_read + shipping_address_read.address_type = AAZStrType( + serialized_name="addressType", + ) + shipping_address_read.city = AAZStrType() + shipping_address_read.company_name = AAZStrType( + serialized_name="companyName", + ) + shipping_address_read.country = AAZStrType( + flags={"required": True}, + ) + shipping_address_read.postal_code = AAZStrType( + serialized_name="postalCode", + ) + shipping_address_read.skip_address_validation = AAZBoolType( + serialized_name="skipAddressValidation", + ) + shipping_address_read.state_or_province = AAZStrType( + serialized_name="stateOrProvince", + ) + shipping_address_read.street_address1 = AAZStrType( + serialized_name="streetAddress1", + flags={"required": True}, + ) + shipping_address_read.street_address2 = AAZStrType( + serialized_name="streetAddress2", + ) + shipping_address_read.street_address3 = AAZStrType( + serialized_name="streetAddress3", + ) + shipping_address_read.tax_identification_number = AAZStrType( + serialized_name="taxIdentificationNumber", + ) + shipping_address_read.zip_extended_code = AAZStrType( + serialized_name="zipExtendedCode", + ) + + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + + _schema_transport_preferences_read = None + + @classmethod + def _build_schema_transport_preferences_read(cls, _schema): + if cls._schema_transport_preferences_read is not None: + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + return + + cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() + + transport_preferences_read = _schema_transport_preferences_read + transport_preferences_read.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + transport_preferences_read.preferred_shipment_type = AAZStrType( + serialized_name="preferredShipmentType", + flags={"required": True}, + ) + + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + + +__all__ = ["Show"] diff --git a/src/databox/azext_databox/aaz/latest/databox/job/_update.py b/src/databox/azext_databox/aaz/latest/databox/job/_update.py new file mode 100644 index 00000000000..6b032705101 --- /dev/null +++ b/src/databox/azext_databox/aaz/latest/databox/job/_update.py @@ -0,0 +1,1842 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "databox job update", +) +class Update(AAZCommand): + """Update the properties of an existing job. + + :example: Update job + az databox job update -g rg -n job-name --contact-name 'name --email-list email --phone phone-number + """ + + _aaz_info = { + "version": "2022-12-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.databox/jobs/{}", "2022-12-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.job_name = AAZStrArg( + options=["-n", "--name", "--job-name"], + help="The name of the job Resource within the specified resource group. job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only", + required=True, + id_part="name", + fmt=AAZStrArgFormat( + pattern="^[-\w\.]+$", + max_length=24, + min_length=3, + ), + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "ContactDetails" + + _args_schema = cls._args_schema + _args_schema.contact_name = AAZStrArg( + options=["--contact-name"], + arg_group="ContactDetails", + help="Contact name of the person.", + ) + _args_schema.email_list = AAZListArg( + options=["--email-list"], + arg_group="ContactDetails", + help="List of Email-ids to be notified about job progress.", + ) + _args_schema.mobile = AAZStrArg( + options=["--mobile"], + arg_group="ContactDetails", + help="Mobile number of the contact person.", + ) + _args_schema.phone = AAZStrArg( + options=["--phone"], + arg_group="ContactDetails", + help="Phone number of the contact person.", + ) + + email_list = cls._args_schema.email_list + email_list.Element = AAZStrArg() + + # define Arg Group "Details" + + # define Arg Group "JobResourceUpdateParameter" + + # define Arg Group "KeyEncryptionKey" + + _args_schema = cls._args_schema + _args_schema.kek_identity = AAZObjectArg( + options=["--kek-identity"], + arg_group="KeyEncryptionKey", + help="Managed identity properties used for key encryption.", + ) + _args_schema.kek_type = AAZStrArg( + options=["--kek-type"], + arg_group="KeyEncryptionKey", + help="Type of encryption key used for key encryption.", + enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, + ) + _args_schema.kek_url = AAZStrArg( + options=["--kek-url"], + arg_group="KeyEncryptionKey", + help="Key encryption key. It is required in case of Customer managed KekType.", + ) + _args_schema.kek_vault_resource_id = AAZStrArg( + options=["--kek-vault-resource-id"], + arg_group="KeyEncryptionKey", + help="Kek vault resource id. It is required in case of Customer managed KekType.", + ) + + kek_identity = cls._args_schema.kek_identity + kek_identity.type = AAZStrArg( + options=["type"], + help="Managed service identity type.", + ) + kek_identity.user_assigned = AAZObjectArg( + options=["user-assigned"], + help="User assigned identity properties.", + ) + + user_assigned = cls._args_schema.kek_identity.user_assigned + user_assigned.resource_id = AAZStrArg( + options=["resource-id"], + help="Arm resource id for user assigned identity to be used to fetch MSI token.", + ) + + # define Arg Group "ShippingAddress" + + _args_schema = cls._args_schema + _args_schema.city = AAZStrArg( + options=["--city"], + arg_group="ShippingAddress", + help="Name of the city.", + ) + _args_schema.company_name = AAZStrArg( + options=["--company-name"], + arg_group="ShippingAddress", + help="Name of the company.", + ) + _args_schema.country = AAZStrArg( + options=["--country"], + arg_group="ShippingAddress", + help="Name of the Country.", + ) + _args_schema.postal_code = AAZStrArg( + options=["--postal-code"], + arg_group="ShippingAddress", + help="Postal code.", + ) + _args_schema.state_or_province = AAZStrArg( + options=["--state-or-province"], + arg_group="ShippingAddress", + help="Name of the State or Province.", + ) + _args_schema.street_address1 = AAZStrArg( + options=["--street-address1"], + arg_group="ShippingAddress", + help="Street Address line 1.", + ) + _args_schema.street_address2 = AAZStrArg( + options=["--street-address2"], + arg_group="ShippingAddress", + help="Street Address line 2.", + ) + _args_schema.street_address3 = AAZStrArg( + options=["--street-address3"], + arg_group="ShippingAddress", + help="Street Address line 3.", + ) + return cls._args_schema + + _args_shipping_address_update = None + + @classmethod + def _build_args_shipping_address_update(cls, _schema): + if cls._args_shipping_address_update is not None: + _schema.address_type = cls._args_shipping_address_update.address_type + _schema.city = cls._args_shipping_address_update.city + _schema.company_name = cls._args_shipping_address_update.company_name + _schema.country = cls._args_shipping_address_update.country + _schema.postal_code = cls._args_shipping_address_update.postal_code + _schema.skip_address_validation = cls._args_shipping_address_update.skip_address_validation + _schema.state_or_province = cls._args_shipping_address_update.state_or_province + _schema.street_address1 = cls._args_shipping_address_update.street_address1 + _schema.street_address2 = cls._args_shipping_address_update.street_address2 + _schema.street_address3 = cls._args_shipping_address_update.street_address3 + _schema.tax_identification_number = cls._args_shipping_address_update.tax_identification_number + _schema.zip_extended_code = cls._args_shipping_address_update.zip_extended_code + return + + cls._args_shipping_address_update = AAZObjectArg() + + shipping_address_update = cls._args_shipping_address_update + shipping_address_update.address_type = AAZStrArg( + options=["address-type"], + help="Type of address.", + default="None", + enum={"Commercial": "Commercial", "None": "None", "Residential": "Residential"}, + ) + shipping_address_update.city = AAZStrArg( + options=["city"], + help="Name of the City.", + ) + shipping_address_update.company_name = AAZStrArg( + options=["company-name"], + help="Name of the company.", + ) + shipping_address_update.country = AAZStrArg( + options=["country"], + help="Name of the Country.", + required=True, + ) + shipping_address_update.postal_code = AAZStrArg( + options=["postal-code"], + help="Postal code.", + ) + shipping_address_update.skip_address_validation = AAZBoolArg( + options=["skip-address-validation"], + help="Flag to indicate if customer has chosen to skip default address validation", + ) + shipping_address_update.state_or_province = AAZStrArg( + options=["state-or-province"], + help="Name of the State or Province.", + ) + shipping_address_update.street_address1 = AAZStrArg( + options=["street-address1"], + help="Street Address line 1.", + required=True, + ) + shipping_address_update.street_address2 = AAZStrArg( + options=["street-address2"], + help="Street Address line 2.", + ) + shipping_address_update.street_address3 = AAZStrArg( + options=["street-address3"], + help="Street Address line 3.", + ) + shipping_address_update.tax_identification_number = AAZStrArg( + options=["tax-identification-number"], + help="Tax Identification Number", + ) + shipping_address_update.zip_extended_code = AAZStrArg( + options=["zip-extended-code"], + help="Extended Zip Code.", + ) + + _schema.address_type = cls._args_shipping_address_update.address_type + _schema.city = cls._args_shipping_address_update.city + _schema.company_name = cls._args_shipping_address_update.company_name + _schema.country = cls._args_shipping_address_update.country + _schema.postal_code = cls._args_shipping_address_update.postal_code + _schema.skip_address_validation = cls._args_shipping_address_update.skip_address_validation + _schema.state_or_province = cls._args_shipping_address_update.state_or_province + _schema.street_address1 = cls._args_shipping_address_update.street_address1 + _schema.street_address2 = cls._args_shipping_address_update.street_address2 + _schema.street_address3 = cls._args_shipping_address_update.street_address3 + _schema.tax_identification_number = cls._args_shipping_address_update.tax_identification_number + _schema.zip_extended_code = cls._args_shipping_address_update.zip_extended_code + + _args_transport_preferences_update = None + + @classmethod + def _build_args_transport_preferences_update(cls, _schema): + if cls._args_transport_preferences_update is not None: + _schema.preferred_shipment_type = cls._args_transport_preferences_update.preferred_shipment_type + return + + cls._args_transport_preferences_update = AAZObjectArg() + + transport_preferences_update = cls._args_transport_preferences_update + transport_preferences_update.preferred_shipment_type = AAZStrArg( + options=["preferred-shipment-type"], + help="Indicates Shipment Logistics type that the customer preferred.", + required=True, + enum={"CustomerManaged": "CustomerManaged", "MicrosoftManaged": "MicrosoftManaged"}, + ) + + _schema.preferred_shipment_type = cls._args_transport_preferences_update.preferred_shipment_type + + def _execute_operations(self): + self.pre_operations() + yield self.JobsUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class JobsUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", + **self.url_parameters + ) + + @property + def method(self): + return "PATCH" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "jobName", self.ctx.args.job_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-12-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("details", AAZObjectType) + + details = _builder.get(".properties.details") + if details is not None: + details.set_prop("contactDetails", AAZObjectType) + details.set_prop("keyEncryptionKey", AAZObjectType) + details.set_prop("shippingAddress", AAZObjectType) + + contact_details = _builder.get(".properties.details.contactDetails") + if contact_details is not None: + contact_details.set_prop("contactName", AAZStrType, ".contact_name", typ_kwargs={"flags": {"required": True}}) + contact_details.set_prop("emailList", AAZListType, ".email_list", typ_kwargs={"flags": {"required": True}}) + contact_details.set_prop("mobile", AAZStrType, ".mobile") + contact_details.set_prop("phone", AAZStrType, ".phone", typ_kwargs={"flags": {"required": True}}) + + email_list = _builder.get(".properties.details.contactDetails.emailList") + if email_list is not None: + email_list.set_elements(AAZStrType, ".") + + key_encryption_key = _builder.get(".properties.details.keyEncryptionKey") + if key_encryption_key is not None: + key_encryption_key.set_prop("identityProperties", AAZObjectType, ".kek_identity") + key_encryption_key.set_prop("kekType", AAZStrType, ".kek_type", typ_kwargs={"flags": {"required": True}}) + key_encryption_key.set_prop("kekUrl", AAZStrType, ".kek_url") + key_encryption_key.set_prop("kekVaultResourceID", AAZStrType, ".kek_vault_resource_id") + + identity_properties = _builder.get(".properties.details.keyEncryptionKey.identityProperties") + if identity_properties is not None: + identity_properties.set_prop("type", AAZStrType, ".type") + identity_properties.set_prop("userAssigned", AAZObjectType, ".user_assigned") + + user_assigned = _builder.get(".properties.details.keyEncryptionKey.identityProperties.userAssigned") + if user_assigned is not None: + user_assigned.set_prop("resourceId", AAZStrType, ".resource_id") + + shipping_address = _builder.get(".properties.details.shippingAddress") + if shipping_address is not None: + shipping_address.set_prop("city", AAZStrType, ".city") + shipping_address.set_prop("companyName", AAZStrType, ".company_name") + shipping_address.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) + shipping_address.set_prop("postalCode", AAZStrType, ".postal_code") + shipping_address.set_prop("stateOrProvince", AAZStrType, ".state_or_province") + shipping_address.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) + shipping_address.set_prop("streetAddress2", AAZStrType, ".street_address2") + shipping_address.set_prop("streetAddress3", AAZStrType, ".street_address3") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"required": True, "client_flatten": True}, + ) + _schema_on_200.sku = AAZObjectType( + flags={"required": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.cancellation_reason = AAZStrType( + serialized_name="cancellationReason", + flags={"read_only": True}, + ) + properties.delivery_info = AAZObjectType( + serialized_name="deliveryInfo", + ) + properties.delivery_type = AAZStrType( + serialized_name="deliveryType", + ) + properties.details = AAZObjectType() + properties.error = AAZObjectType() + _UpdateHelper._build_schema_cloud_error_read(properties.error) + properties.is_cancellable = AAZBoolType( + serialized_name="isCancellable", + flags={"read_only": True}, + ) + properties.is_cancellable_without_fee = AAZBoolType( + serialized_name="isCancellableWithoutFee", + flags={"read_only": True}, + ) + properties.is_deletable = AAZBoolType( + serialized_name="isDeletable", + flags={"read_only": True}, + ) + properties.is_prepare_to_ship_enabled = AAZBoolType( + serialized_name="isPrepareToShipEnabled", + flags={"read_only": True}, + ) + properties.is_shipping_address_editable = AAZBoolType( + serialized_name="isShippingAddressEditable", + flags={"read_only": True}, + ) + properties.reverse_shipping_details_update = AAZStrType( + serialized_name="reverseShippingDetailsUpdate", + flags={"read_only": True}, + ) + properties.reverse_transport_preference_update = AAZStrType( + serialized_name="reverseTransportPreferenceUpdate", + flags={"read_only": True}, + ) + properties.start_time = AAZStrType( + serialized_name="startTime", + flags={"read_only": True}, + ) + properties.status = AAZStrType( + flags={"read_only": True}, + ) + properties.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"required": True}, + ) + + delivery_info = cls._schema_on_200.properties.delivery_info + delivery_info.scheduled_date_time = AAZStrType( + serialized_name="scheduledDateTime", + ) + + details = cls._schema_on_200.properties.details + details.actions = AAZListType( + flags={"read_only": True}, + ) + details.chain_of_custody_sas_key = AAZStrType( + serialized_name="chainOfCustodySasKey", + flags={"read_only": True}, + ) + details.contact_details = AAZObjectType( + serialized_name="contactDetails", + flags={"required": True}, + ) + details.copy_log_details = AAZListType( + serialized_name="copyLogDetails", + flags={"read_only": True}, + ) + details.data_center_code = AAZStrType( + serialized_name="dataCenterCode", + flags={"read_only": True}, + ) + details.data_export_details = AAZListType( + serialized_name="dataExportDetails", + ) + details.data_import_details = AAZListType( + serialized_name="dataImportDetails", + ) + details.datacenter_address = AAZObjectType( + serialized_name="datacenterAddress", + ) + details.delivery_package = AAZObjectType( + serialized_name="deliveryPackage", + ) + _UpdateHelper._build_schema_package_shipping_details_read(details.delivery_package) + details.device_erasure_details = AAZObjectType( + serialized_name="deviceErasureDetails", + ) + details.expected_data_size_in_tera_bytes = AAZIntType( + serialized_name="expectedDataSizeInTeraBytes", + ) + details.job_details_type = AAZStrType( + serialized_name="jobDetailsType", + flags={"required": True}, + ) + details.job_stages = AAZListType( + serialized_name="jobStages", + flags={"read_only": True}, + ) + details.key_encryption_key = AAZObjectType( + serialized_name="keyEncryptionKey", + ) + details.last_mitigation_action_on_job = AAZObjectType( + serialized_name="lastMitigationActionOnJob", + ) + details.preferences = AAZObjectType() + details.return_package = AAZObjectType( + serialized_name="returnPackage", + ) + _UpdateHelper._build_schema_package_shipping_details_read(details.return_package) + details.reverse_shipment_label_sas_key = AAZStrType( + serialized_name="reverseShipmentLabelSasKey", + flags={"read_only": True}, + ) + details.reverse_shipping_details = AAZObjectType( + serialized_name="reverseShippingDetails", + ) + details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _UpdateHelper._build_schema_shipping_address_read(details.shipping_address) + + actions = cls._schema_on_200.properties.details.actions + actions.Element = AAZStrType() + + contact_details = cls._schema_on_200.properties.details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.email_list = AAZListType( + serialized_name="emailList", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.notification_preference = AAZListType( + serialized_name="notificationPreference", + ) + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + email_list = cls._schema_on_200.properties.details.contact_details.email_list + email_list.Element = AAZStrType() + + notification_preference = cls._schema_on_200.properties.details.contact_details.notification_preference + notification_preference.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.contact_details.notification_preference.Element + _element.send_notification = AAZBoolType( + serialized_name="sendNotification", + flags={"required": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"required": True}, + ) + + copy_log_details = cls._schema_on_200.properties.details.copy_log_details + copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.copy_log_details.Element + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + + disc_data_box = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBox") + disc_data_box.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box.copy_log_link = AAZStrType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box.copy_verbose_log_link = AAZStrType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxDisk") + disc_data_box_disk.disk_serial_number = AAZStrType( + serialized_name="diskSerialNumber", + flags={"read_only": True}, + ) + disc_data_box_disk.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + disc_data_box_disk.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + disc_data_box_heavy = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy") + disc_data_box_heavy.account_name = AAZStrType( + serialized_name="accountName", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_log_link = AAZListType( + serialized_name="copyLogLink", + flags={"read_only": True}, + ) + disc_data_box_heavy.copy_verbose_log_link = AAZListType( + serialized_name="copyVerboseLogLink", + flags={"read_only": True}, + ) + + copy_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_log_link + copy_log_link.Element = AAZStrType() + + copy_verbose_log_link = cls._schema_on_200.properties.details.copy_log_details.Element.discriminate_by("copy_log_details_type", "DataBoxHeavy").copy_verbose_log_link + copy_verbose_log_link.Element = AAZStrType() + + data_export_details = cls._schema_on_200.properties.details.data_export_details + data_export_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _UpdateHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + _element.transfer_configuration = AAZObjectType( + serialized_name="transferConfiguration", + flags={"required": True}, + ) + + transfer_configuration = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration + transfer_configuration.transfer_all_details = AAZObjectType( + serialized_name="transferAllDetails", + ) + transfer_configuration.transfer_configuration_type = AAZStrType( + serialized_name="transferConfigurationType", + flags={"required": True}, + ) + transfer_configuration.transfer_filter_details = AAZObjectType( + serialized_name="transferFilterDetails", + ) + + transfer_all_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details + transfer_all_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_all_details.include + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.transfer_all_blobs = AAZBoolType( + serialized_name="transferAllBlobs", + ) + include.transfer_all_files = AAZBoolType( + serialized_name="transferAllFiles", + ) + + transfer_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details + transfer_filter_details.include = AAZObjectType() + + include = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include + include.azure_file_filter_details = AAZObjectType( + serialized_name="azureFileFilterDetails", + ) + include.blob_filter_details = AAZObjectType( + serialized_name="blobFilterDetails", + ) + include.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + include.filter_file_details = AAZListType( + serialized_name="filterFileDetails", + ) + + azure_file_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details + azure_file_filter_details.file_path_list = AAZListType( + serialized_name="filePathList", + ) + azure_file_filter_details.file_prefix_list = AAZListType( + serialized_name="filePrefixList", + ) + azure_file_filter_details.file_share_list = AAZListType( + serialized_name="fileShareList", + ) + + file_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_path_list + file_path_list.Element = AAZStrType() + + file_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_prefix_list + file_prefix_list.Element = AAZStrType() + + file_share_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.azure_file_filter_details.file_share_list + file_share_list.Element = AAZStrType() + + blob_filter_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details + blob_filter_details.blob_path_list = AAZListType( + serialized_name="blobPathList", + ) + blob_filter_details.blob_prefix_list = AAZListType( + serialized_name="blobPrefixList", + ) + blob_filter_details.container_list = AAZListType( + serialized_name="containerList", + ) + + blob_path_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_path_list + blob_path_list.Element = AAZStrType() + + blob_prefix_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.blob_prefix_list + blob_prefix_list.Element = AAZStrType() + + container_list = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.blob_filter_details.container_list + container_list.Element = AAZStrType() + + filter_file_details = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details + filter_file_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_export_details.Element.transfer_configuration.transfer_filter_details.include.filter_file_details.Element + _element.filter_file_path = AAZStrType( + serialized_name="filterFilePath", + flags={"required": True}, + ) + _element.filter_file_type = AAZStrType( + serialized_name="filterFileType", + flags={"required": True}, + ) + + data_import_details = cls._schema_on_200.properties.details.data_import_details + data_import_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.data_import_details.Element + _element.account_details = AAZObjectType( + serialized_name="accountDetails", + flags={"required": True}, + ) + _UpdateHelper._build_schema_data_account_details_read(_element.account_details) + _element.log_collection_level = AAZStrType( + serialized_name="logCollectionLevel", + ) + + datacenter_address = cls._schema_on_200.properties.details.datacenter_address + datacenter_address.data_center_azure_location = AAZStrType( + serialized_name="dataCenterAzureLocation", + flags={"read_only": True}, + ) + datacenter_address.datacenter_address_type = AAZStrType( + serialized_name="datacenterAddressType", + flags={"required": True}, + ) + datacenter_address.supported_carriers_for_return_shipment = AAZListType( + serialized_name="supportedCarriersForReturnShipment", + flags={"read_only": True}, + ) + + supported_carriers_for_return_shipment = cls._schema_on_200.properties.details.datacenter_address.supported_carriers_for_return_shipment + supported_carriers_for_return_shipment.Element = AAZStrType() + + disc_datacenter_address_instruction = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressInstruction") + disc_datacenter_address_instruction.communication_instruction = AAZStrType( + serialized_name="communicationInstruction", + flags={"read_only": True}, + ) + + disc_datacenter_address_location = cls._schema_on_200.properties.details.datacenter_address.discriminate_by("datacenter_address_type", "DatacenterAddressLocation") + disc_datacenter_address_location.additional_shipping_information = AAZStrType( + serialized_name="additionalShippingInformation", + flags={"read_only": True}, + ) + disc_datacenter_address_location.address_type = AAZStrType( + serialized_name="addressType", + flags={"read_only": True}, + ) + disc_datacenter_address_location.city = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.company = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.contact_person_name = AAZStrType( + serialized_name="contactPersonName", + flags={"read_only": True}, + ) + disc_datacenter_address_location.country = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.phone_extension = AAZStrType( + serialized_name="phoneExtension", + flags={"read_only": True}, + ) + disc_datacenter_address_location.state = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street1 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street2 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.street3 = AAZStrType( + flags={"read_only": True}, + ) + disc_datacenter_address_location.zip = AAZStrType( + flags={"read_only": True}, + ) + + device_erasure_details = cls._schema_on_200.properties.details.device_erasure_details + device_erasure_details.device_erasure_status = AAZStrType( + serialized_name="deviceErasureStatus", + flags={"read_only": True}, + ) + device_erasure_details.erasure_or_destruction_certificate_sas_key = AAZStrType( + serialized_name="erasureOrDestructionCertificateSasKey", + flags={"read_only": True}, + ) + + job_stages = cls._schema_on_200.properties.details.job_stages + job_stages.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.job_stages.Element + _element.display_name = AAZStrType( + serialized_name="displayName", + flags={"read_only": True}, + ) + _element.stage_name = AAZStrType( + serialized_name="stageName", + flags={"read_only": True}, + ) + _element.stage_status = AAZStrType( + serialized_name="stageStatus", + flags={"read_only": True}, + ) + _element.stage_time = AAZStrType( + serialized_name="stageTime", + flags={"read_only": True}, + ) + + key_encryption_key = cls._schema_on_200.properties.details.key_encryption_key + key_encryption_key.identity_properties = AAZObjectType( + serialized_name="identityProperties", + ) + key_encryption_key.kek_type = AAZStrType( + serialized_name="kekType", + flags={"required": True}, + ) + key_encryption_key.kek_url = AAZStrType( + serialized_name="kekUrl", + ) + key_encryption_key.kek_vault_resource_id = AAZStrType( + serialized_name="kekVaultResourceID", + ) + + identity_properties = cls._schema_on_200.properties.details.key_encryption_key.identity_properties + identity_properties.type = AAZStrType() + identity_properties.user_assigned = AAZObjectType( + serialized_name="userAssigned", + ) + + user_assigned = cls._schema_on_200.properties.details.key_encryption_key.identity_properties.user_assigned + user_assigned.resource_id = AAZStrType( + serialized_name="resourceId", + ) + + last_mitigation_action_on_job = cls._schema_on_200.properties.details.last_mitigation_action_on_job + last_mitigation_action_on_job.action_date_time_in_utc = AAZStrType( + serialized_name="actionDateTimeInUtc", + ) + last_mitigation_action_on_job.customer_resolution = AAZStrType( + serialized_name="customerResolution", + ) + last_mitigation_action_on_job.is_performed_by_customer = AAZBoolType( + serialized_name="isPerformedByCustomer", + ) + + preferences = cls._schema_on_200.properties.details.preferences + preferences.encryption_preferences = AAZObjectType( + serialized_name="encryptionPreferences", + ) + preferences.preferred_data_center_region = AAZListType( + serialized_name="preferredDataCenterRegion", + ) + preferences.reverse_transport_preferences = AAZObjectType( + serialized_name="reverseTransportPreferences", + ) + _UpdateHelper._build_schema_transport_preferences_read(preferences.reverse_transport_preferences) + preferences.storage_account_access_tier_preferences = AAZListType( + serialized_name="storageAccountAccessTierPreferences", + ) + preferences.transport_preferences = AAZObjectType( + serialized_name="transportPreferences", + ) + _UpdateHelper._build_schema_transport_preferences_read(preferences.transport_preferences) + + encryption_preferences = cls._schema_on_200.properties.details.preferences.encryption_preferences + encryption_preferences.double_encryption = AAZStrType( + serialized_name="doubleEncryption", + ) + encryption_preferences.hardware_encryption = AAZStrType( + serialized_name="hardwareEncryption", + ) + + preferred_data_center_region = cls._schema_on_200.properties.details.preferences.preferred_data_center_region + preferred_data_center_region.Element = AAZStrType() + + storage_account_access_tier_preferences = cls._schema_on_200.properties.details.preferences.storage_account_access_tier_preferences + storage_account_access_tier_preferences.Element = AAZStrType() + + reverse_shipping_details = cls._schema_on_200.properties.details.reverse_shipping_details + reverse_shipping_details.contact_details = AAZObjectType( + serialized_name="contactDetails", + ) + reverse_shipping_details.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + reverse_shipping_details.shipping_address = AAZObjectType( + serialized_name="shippingAddress", + ) + _UpdateHelper._build_schema_shipping_address_read(reverse_shipping_details.shipping_address) + + contact_details = cls._schema_on_200.properties.details.reverse_shipping_details.contact_details + contact_details.contact_name = AAZStrType( + serialized_name="contactName", + flags={"required": True}, + ) + contact_details.mobile = AAZStrType() + contact_details.phone = AAZStrType( + flags={"required": True}, + ) + contact_details.phone_extension = AAZStrType( + serialized_name="phoneExtension", + ) + + disc_data_box = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox") + disc_data_box.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBox").copy_progress + copy_progress.Element = AAZObjectType() + _UpdateHelper._build_schema_copy_progress_read(copy_progress.Element) + + disc_data_box_customer_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk") + disc_data_box_customer_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.deliver_to_dc_package_details = AAZObjectType( + serialized_name="deliverToDcPackageDetails", + ) + disc_data_box_customer_disk.enable_manifest_backup = AAZBoolType( + serialized_name="enableManifestBackup", + ) + disc_data_box_customer_disk.export_disk_details_collection = AAZDictType( + serialized_name="exportDiskDetailsCollection", + flags={"read_only": True}, + ) + disc_data_box_customer_disk.import_disk_details_collection = AAZDictType( + serialized_name="importDiskDetailsCollection", + ) + disc_data_box_customer_disk.return_to_customer_package_details = AAZObjectType( + serialized_name="returnToCustomerPackageDetails", + flags={"required": True}, + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _UpdateHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + deliver_to_dc_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").deliver_to_dc_package_details + deliver_to_dc_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + deliver_to_dc_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + export_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection + export_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").export_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"read_only": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"read_only": True}, + ) + + import_disk_details_collection = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection + import_disk_details_collection.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").import_disk_details_collection.Element + _element.backup_manifest_cloud_path = AAZStrType( + serialized_name="backupManifestCloudPath", + flags={"read_only": True}, + ) + _element.bit_locker_key = AAZStrType( + serialized_name="bitLockerKey", + flags={"required": True, "secret": True}, + ) + _element.manifest_file = AAZStrType( + serialized_name="manifestFile", + flags={"required": True}, + ) + _element.manifest_hash = AAZStrType( + serialized_name="manifestHash", + flags={"required": True}, + ) + + return_to_customer_package_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxCustomerDisk").return_to_customer_package_details + return_to_customer_package_details.carrier_account_number = AAZStrType( + serialized_name="carrierAccountNumber", + flags={"secret": True}, + ) + return_to_customer_package_details.carrier_name = AAZStrType( + serialized_name="carrierName", + ) + return_to_customer_package_details.tracking_id = AAZStrType( + serialized_name="trackingId", + ) + + disc_data_box_disk = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk") + disc_data_box_disk.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.disks_and_size_details = AAZDictType( + serialized_name="disksAndSizeDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_log_details = AAZListType( + serialized_name="granularCopyLogDetails", + flags={"read_only": True}, + ) + disc_data_box_disk.granular_copy_progress = AAZListType( + serialized_name="granularCopyProgress", + flags={"read_only": True}, + ) + disc_data_box_disk.passkey = AAZStrType() + disc_data_box_disk.preferred_disks = AAZDictType( + serialized_name="preferredDisks", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress + copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_copied = AAZIntType( + serialized_name="bytesCopied", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _UpdateHelper._build_schema_cloud_error_read(_element.error) + _element.percent_complete = AAZIntType( + serialized_name="percentComplete", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").copy_progress.Element.actions + actions.Element = AAZStrType() + + disks_and_size_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").disks_and_size_details + disks_and_size_details.Element = AAZIntType() + + granular_copy_log_details = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details + granular_copy_log_details.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_log_details.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.copy_log_details_type = AAZStrType( + serialized_name="copyLogDetailsType", + flags={"required": True}, + ) + _element.error_log_link = AAZStrType( + serialized_name="errorLogLink", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.verbose_log_link = AAZStrType( + serialized_name="verboseLogLink", + flags={"read_only": True}, + ) + + granular_copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress + granular_copy_progress.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element + _element.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + _element.actions = AAZListType( + flags={"read_only": True}, + ) + _element.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + _element.copy_status = AAZStrType( + serialized_name="copyStatus", + flags={"read_only": True}, + ) + _element.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + _element.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + _element.error = AAZObjectType() + _UpdateHelper._build_schema_cloud_error_read(_element.error) + _element.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + _element.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + _element.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + _element.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + _element.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + _element.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + _element.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + _element.serial_number = AAZStrType( + serialized_name="serialNumber", + flags={"read_only": True}, + ) + _element.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + _element.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + _element.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + _element.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").granular_copy_progress.Element.actions + actions.Element = AAZStrType() + + preferred_disks = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxDisk").preferred_disks + preferred_disks.Element = AAZIntType() + + disc_data_box_heavy = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy") + disc_data_box_heavy.copy_progress = AAZListType( + serialized_name="copyProgress", + flags={"read_only": True}, + ) + disc_data_box_heavy.device_password = AAZStrType( + serialized_name="devicePassword", + ) + + copy_progress = cls._schema_on_200.properties.details.discriminate_by("job_details_type", "DataBoxHeavy").copy_progress + copy_progress.Element = AAZObjectType() + _UpdateHelper._build_schema_copy_progress_read(copy_progress.Element) + + sku = cls._schema_on_200.sku + sku.display_name = AAZStrType( + serialized_name="displayName", + ) + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _UpdateHelper: + """Helper class for Update""" + + @classmethod + def _build_schema_shipping_address_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("addressType", AAZStrType, ".address_type") + _builder.set_prop("city", AAZStrType, ".city") + _builder.set_prop("companyName", AAZStrType, ".company_name") + _builder.set_prop("country", AAZStrType, ".country", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("postalCode", AAZStrType, ".postal_code") + _builder.set_prop("skipAddressValidation", AAZBoolType, ".skip_address_validation") + _builder.set_prop("stateOrProvince", AAZStrType, ".state_or_province") + _builder.set_prop("streetAddress1", AAZStrType, ".street_address1", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("streetAddress2", AAZStrType, ".street_address2") + _builder.set_prop("streetAddress3", AAZStrType, ".street_address3") + _builder.set_prop("taxIdentificationNumber", AAZStrType, ".tax_identification_number") + _builder.set_prop("zipExtendedCode", AAZStrType, ".zip_extended_code") + + @classmethod + def _build_schema_transport_preferences_update(cls, _builder): + if _builder is None: + return + _builder.set_prop("preferredShipmentType", AAZStrType, ".preferred_shipment_type", typ_kwargs={"flags": {"required": True}}) + + _schema_cloud_error_read = None + + @classmethod + def _build_schema_cloud_error_read(cls, _schema): + if cls._schema_cloud_error_read is not None: + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + return + + cls._schema_cloud_error_read = _schema_cloud_error_read = AAZObjectType() + + cloud_error_read = _schema_cloud_error_read + cloud_error_read.additional_info = AAZListType( + serialized_name="additionalInfo", + flags={"read_only": True}, + ) + cloud_error_read.code = AAZStrType() + cloud_error_read.details = AAZListType( + flags={"read_only": True}, + ) + cloud_error_read.message = AAZStrType() + cloud_error_read.target = AAZStrType() + + additional_info = _schema_cloud_error_read.additional_info + additional_info.Element = AAZObjectType() + + _element = _schema_cloud_error_read.additional_info.Element + _element.type = AAZStrType() + + details = _schema_cloud_error_read.details + details.Element = AAZObjectType() + cls._build_schema_cloud_error_read(details.Element) + + _schema.additional_info = cls._schema_cloud_error_read.additional_info + _schema.code = cls._schema_cloud_error_read.code + _schema.details = cls._schema_cloud_error_read.details + _schema.message = cls._schema_cloud_error_read.message + _schema.target = cls._schema_cloud_error_read.target + + _schema_copy_progress_read = None + + @classmethod + def _build_schema_copy_progress_read(cls, _schema): + if cls._schema_copy_progress_read is not None: + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + return + + cls._schema_copy_progress_read = _schema_copy_progress_read = AAZObjectType() + + copy_progress_read = _schema_copy_progress_read + copy_progress_read.account_id = AAZStrType( + serialized_name="accountId", + flags={"read_only": True}, + ) + copy_progress_read.actions = AAZListType( + flags={"read_only": True}, + ) + copy_progress_read.bytes_processed = AAZIntType( + serialized_name="bytesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"read_only": True}, + ) + copy_progress_read.directories_errored_out = AAZIntType( + serialized_name="directoriesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.error = AAZObjectType() + cls._build_schema_cloud_error_read(copy_progress_read.error) + copy_progress_read.files_errored_out = AAZIntType( + serialized_name="filesErroredOut", + flags={"read_only": True}, + ) + copy_progress_read.files_processed = AAZIntType( + serialized_name="filesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_directories_processed = AAZIntType( + serialized_name="invalidDirectoriesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.invalid_file_bytes_uploaded = AAZIntType( + serialized_name="invalidFileBytesUploaded", + flags={"read_only": True}, + ) + copy_progress_read.invalid_files_processed = AAZIntType( + serialized_name="invalidFilesProcessed", + flags={"read_only": True}, + ) + copy_progress_read.is_enumeration_in_progress = AAZBoolType( + serialized_name="isEnumerationInProgress", + flags={"read_only": True}, + ) + copy_progress_read.renamed_container_count = AAZIntType( + serialized_name="renamedContainerCount", + flags={"read_only": True}, + ) + copy_progress_read.storage_account_name = AAZStrType( + serialized_name="storageAccountName", + flags={"read_only": True}, + ) + copy_progress_read.total_bytes_to_process = AAZIntType( + serialized_name="totalBytesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.total_files_to_process = AAZIntType( + serialized_name="totalFilesToProcess", + flags={"read_only": True}, + ) + copy_progress_read.transfer_type = AAZStrType( + serialized_name="transferType", + flags={"read_only": True}, + ) + + actions = _schema_copy_progress_read.actions + actions.Element = AAZStrType() + + _schema.account_id = cls._schema_copy_progress_read.account_id + _schema.actions = cls._schema_copy_progress_read.actions + _schema.bytes_processed = cls._schema_copy_progress_read.bytes_processed + _schema.data_account_type = cls._schema_copy_progress_read.data_account_type + _schema.directories_errored_out = cls._schema_copy_progress_read.directories_errored_out + _schema.error = cls._schema_copy_progress_read.error + _schema.files_errored_out = cls._schema_copy_progress_read.files_errored_out + _schema.files_processed = cls._schema_copy_progress_read.files_processed + _schema.invalid_directories_processed = cls._schema_copy_progress_read.invalid_directories_processed + _schema.invalid_file_bytes_uploaded = cls._schema_copy_progress_read.invalid_file_bytes_uploaded + _schema.invalid_files_processed = cls._schema_copy_progress_read.invalid_files_processed + _schema.is_enumeration_in_progress = cls._schema_copy_progress_read.is_enumeration_in_progress + _schema.renamed_container_count = cls._schema_copy_progress_read.renamed_container_count + _schema.storage_account_name = cls._schema_copy_progress_read.storage_account_name + _schema.total_bytes_to_process = cls._schema_copy_progress_read.total_bytes_to_process + _schema.total_files_to_process = cls._schema_copy_progress_read.total_files_to_process + _schema.transfer_type = cls._schema_copy_progress_read.transfer_type + + _schema_data_account_details_read = None + + @classmethod + def _build_schema_data_account_details_read(cls, _schema): + if cls._schema_data_account_details_read is not None: + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + return + + cls._schema_data_account_details_read = _schema_data_account_details_read = AAZObjectType() + + data_account_details_read = _schema_data_account_details_read + data_account_details_read.data_account_type = AAZStrType( + serialized_name="dataAccountType", + flags={"required": True}, + ) + + disc_managed_disk = _schema_data_account_details_read.discriminate_by("data_account_type", "ManagedDisk") + disc_managed_disk.resource_group_id = AAZStrType( + serialized_name="resourceGroupId", + flags={"required": True}, + ) + disc_managed_disk.staging_storage_account_id = AAZStrType( + serialized_name="stagingStorageAccountId", + flags={"required": True}, + ) + + disc_storage_account = _schema_data_account_details_read.discriminate_by("data_account_type", "StorageAccount") + disc_storage_account.storage_account_id = AAZStrType( + serialized_name="storageAccountId", + flags={"required": True}, + ) + + _schema.data_account_type = cls._schema_data_account_details_read.data_account_type + _schema.discriminate_by( + "data_account_type", + "ManagedDisk", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "ManagedDisk", + ) + ) + _schema.discriminate_by( + "data_account_type", + "StorageAccount", + cls._schema_data_account_details_read.discriminate_by( + "data_account_type", + "StorageAccount", + ) + ) + + _schema_package_shipping_details_read = None + + @classmethod + def _build_schema_package_shipping_details_read(cls, _schema): + if cls._schema_package_shipping_details_read is not None: + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + return + + cls._schema_package_shipping_details_read = _schema_package_shipping_details_read = AAZObjectType() + + package_shipping_details_read = _schema_package_shipping_details_read + package_shipping_details_read.carrier_name = AAZStrType( + serialized_name="carrierName", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_id = AAZStrType( + serialized_name="trackingId", + flags={"read_only": True}, + ) + package_shipping_details_read.tracking_url = AAZStrType( + serialized_name="trackingUrl", + flags={"read_only": True}, + ) + + _schema.carrier_name = cls._schema_package_shipping_details_read.carrier_name + _schema.tracking_id = cls._schema_package_shipping_details_read.tracking_id + _schema.tracking_url = cls._schema_package_shipping_details_read.tracking_url + + _schema_shipping_address_read = None + + @classmethod + def _build_schema_shipping_address_read(cls, _schema): + if cls._schema_shipping_address_read is not None: + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + return + + cls._schema_shipping_address_read = _schema_shipping_address_read = AAZObjectType() + + shipping_address_read = _schema_shipping_address_read + shipping_address_read.address_type = AAZStrType( + serialized_name="addressType", + ) + shipping_address_read.city = AAZStrType() + shipping_address_read.company_name = AAZStrType( + serialized_name="companyName", + ) + shipping_address_read.country = AAZStrType( + flags={"required": True}, + ) + shipping_address_read.postal_code = AAZStrType( + serialized_name="postalCode", + ) + shipping_address_read.skip_address_validation = AAZBoolType( + serialized_name="skipAddressValidation", + ) + shipping_address_read.state_or_province = AAZStrType( + serialized_name="stateOrProvince", + ) + shipping_address_read.street_address1 = AAZStrType( + serialized_name="streetAddress1", + flags={"required": True}, + ) + shipping_address_read.street_address2 = AAZStrType( + serialized_name="streetAddress2", + ) + shipping_address_read.street_address3 = AAZStrType( + serialized_name="streetAddress3", + ) + shipping_address_read.tax_identification_number = AAZStrType( + serialized_name="taxIdentificationNumber", + ) + shipping_address_read.zip_extended_code = AAZStrType( + serialized_name="zipExtendedCode", + ) + + _schema.address_type = cls._schema_shipping_address_read.address_type + _schema.city = cls._schema_shipping_address_read.city + _schema.company_name = cls._schema_shipping_address_read.company_name + _schema.country = cls._schema_shipping_address_read.country + _schema.postal_code = cls._schema_shipping_address_read.postal_code + _schema.skip_address_validation = cls._schema_shipping_address_read.skip_address_validation + _schema.state_or_province = cls._schema_shipping_address_read.state_or_province + _schema.street_address1 = cls._schema_shipping_address_read.street_address1 + _schema.street_address2 = cls._schema_shipping_address_read.street_address2 + _schema.street_address3 = cls._schema_shipping_address_read.street_address3 + _schema.tax_identification_number = cls._schema_shipping_address_read.tax_identification_number + _schema.zip_extended_code = cls._schema_shipping_address_read.zip_extended_code + + _schema_transport_preferences_read = None + + @classmethod + def _build_schema_transport_preferences_read(cls, _schema): + if cls._schema_transport_preferences_read is not None: + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + return + + cls._schema_transport_preferences_read = _schema_transport_preferences_read = AAZObjectType() + + transport_preferences_read = _schema_transport_preferences_read + transport_preferences_read.is_updated = AAZBoolType( + serialized_name="isUpdated", + flags={"read_only": True}, + ) + transport_preferences_read.preferred_shipment_type = AAZStrType( + serialized_name="preferredShipmentType", + flags={"required": True}, + ) + + _schema.is_updated = cls._schema_transport_preferences_read.is_updated + _schema.preferred_shipment_type = cls._schema_transport_preferences_read.preferred_shipment_type + + +__all__ = ["Update"] diff --git a/src/databox/azext_databox/azext_metadata.json b/src/databox/azext_databox/azext_metadata.json index 587a1ed232f..73490c539dc 100644 --- a/src/databox/azext_databox/azext_metadata.json +++ b/src/databox/azext_databox/azext_metadata.json @@ -1,3 +1,3 @@ { - "azext.minCliCoreVersion": "2.3.1" + "azext.minCliCoreVersion": "2.48.0" } \ No newline at end of file diff --git a/src/databox/azext_databox/commands.py b/src/databox/azext_databox/commands.py index a175550e86d..fd4b80797ad 100644 --- a/src/databox/azext_databox/commands.py +++ b/src/databox/azext_databox/commands.py @@ -1,27 +1,17 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long # pylint: disable=too-many-lines # pylint: disable=too-many-statements -# pylint: disable=too-many-locals -from azext_databox._validators import validate_create_input_parameters -from azure.cli.core.commands import CliCommandType +# from azure.cli.core.commands import CliCommandType -def load_command_table(self, _): - from azext_databox._client_factory import cf_jobs - databox_jobs = CliCommandType( - operations_tmpl='azext_databox.vendored_sdks.databox.operations._jobs_operations#JobsOperations.{}', - client_factory=cf_jobs) - with self.command_group('databox job', databox_jobs, client_factory=cf_jobs) as g: - g.custom_command('create', 'create_databox_job', validator=validate_create_input_parameters) - g.custom_command('update', 'update_databox_job') - g.custom_command('delete', 'delete_databox_job', confirmation=True) - g.custom_show_command('show', 'get_databox_job') - g.custom_command('list', 'list_databox_job') - g.custom_command('cancel', 'cancel_databox_job', confirmation=True) - g.custom_command('list-credentials', 'list_credentials_databox_job') +def load_command_table(self, _): # pylint: disable=unused-argument + with self.command_group('workloads sap-virtual-instance'): + from azext_databox.custom import JobCreate + self.command_table['databox job create'] = JobCreate(loader=self) diff --git a/src/databox/azext_databox/custom.py b/src/databox/azext_databox/custom.py index 6c84c133626..ddb488dc4be 100644 --- a/src/databox/azext_databox/custom.py +++ b/src/databox/azext_databox/custom.py @@ -1,135 +1,125 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long -# pylint: disable=too-many-statements -# pylint: disable=too-many-lines -# pylint: disable=too-many-locals -# pylint: disable=unused-argument -# pylint: disable=too-many-branches - -def create_databox_job(client, - resource_group_name, - job_name, - location, - sku, - contact_name, - phone, - city, - email_list, - street_address1, - postal_code, - country, - state_or_province, - destination_account_details, - expected_data_size=None, - tags=None, - mobile=None, - street_address2=None, - street_address3=None, - company_name=None,): - body = {} - body['location'] = location # str - body['tags'] = tags # dictionary - body.setdefault('sku', {})['name'] = sku # str - body.setdefault('details', {})['job_details_type'] = sku - body.setdefault('details', {})['expected_data_size_in_terabytes'] = expected_data_size - body.setdefault('details', {}).setdefault('contact_details', {})['contact_name'] = contact_name # str - body.setdefault('details', {}).setdefault('contact_details', {})['phone'] = phone # str - body.setdefault('details', {}).setdefault('contact_details', {})['mobile'] = mobile # str - body.setdefault('details', {}).setdefault('contact_details', {})['email_list'] = email_list - body.setdefault('details', {}).setdefault('shipping_address', {})['street_address1'] = street_address1 # str - body.setdefault('details', {}).setdefault('shipping_address', {})['street_address2'] = street_address2 # str - body.setdefault('details', {}).setdefault('shipping_address', {})['street_address3'] = street_address3 # str - body.setdefault('details', {}).setdefault('shipping_address', {})['city'] = city # str - body.setdefault('details', {}).setdefault('shipping_address', {})['state_or_province'] = state_or_province # str - body.setdefault('details', {}).setdefault('shipping_address', {})['country'] = country # str - body.setdefault('details', {}).setdefault('shipping_address', {})['postal_code'] = postal_code # str - body.setdefault('details', {}).setdefault('shipping_address', {})['company_name'] = company_name # str - - body.setdefault('details', {})['destination_account_details'] = destination_account_details - - return client.begin_create(resource_group_name=resource_group_name, job_name=job_name, job_resource=body) - - -def update_databox_job(client, - resource_group_name, - job_name, - contact_name=None, - phone=None, - email_list=None, - street_address1=None, - postal_code=None, - country=None, - mobile=None, - city=None, - street_address2=None, - street_address3=None, - state_or_province=None, - company_name=None): - job_resource = get_databox_job(client, resource_group_name, job_name) - job_details = job_resource.details - contact_details = job_details.contact_details - shipping_address = job_details.shipping_address - - body = {} - body.setdefault('details', {}).setdefault('contact_details', {})[ - 'contact_name'] = contact_details.contact_name if contact_name is None else contact_name # str - body.setdefault('details', {}).setdefault('contact_details', {})[ - 'phone'] = contact_details.phone if phone is None else phone # str - body.setdefault('details', {}).setdefault('contact_details', {})[ - 'mobile'] = contact_details.mobile if mobile is None else mobile # str - body.setdefault('details', {}).setdefault('contact_details', {})[ - 'email_list'] = contact_details.email_list if email_list is None else email_list - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'street_address1'] = shipping_address.street_address1 if street_address1 is None else street_address1 # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'street_address2'] = shipping_address.street_address2 if street_address2 is None else street_address2 # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'street_address3'] = shipping_address.street_address3 if street_address3 is None else street_address3 # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'city'] = shipping_address.city if city is None else city # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'state_or_province'] = shipping_address.state_or_province if state_or_province is None else state_or_province # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'country'] = shipping_address.country if country is None else country # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'postal_code'] = shipping_address.postal_code if postal_code is None else postal_code # str - body.setdefault('details', {}).setdefault('shipping_address', {})[ - 'company_name'] = shipping_address.company_name if company_name is None else company_name # str - - return client.begin_update(resource_group_name=resource_group_name, job_name=job_name, job_resource_update_parameter=body) - - -def delete_databox_job(client, - resource_group_name, - job_name): - return client.begin_delete(resource_group_name=resource_group_name, job_name=job_name) - - -def get_databox_job(client, - resource_group_name, - job_name): - return client.get(resource_group_name=resource_group_name, job_name=job_name, expand='details') - - -def list_databox_job(client, - resource_group_name=None): - if resource_group_name is not None: - return client.list_by_resource_group(resource_group_name=resource_group_name) - return client.list() - - -def cancel_databox_job(client, - resource_group_name, - job_name, - reason): - return client.cancel(resource_group_name=resource_group_name, job_name=job_name, cancellation_reason={'reason': reason}) - - -def list_credentials_databox_job(client, - resource_group_name, - job_name): - return client.list_credentials(resource_group_name=resource_group_name, job_name=job_name) +# pylint: disable=too-many-lines, too-many-branches, too-many-locals +# pylint: disable=too-many-statements, line-too-long, protected-access + +from knack.log import get_logger + +from azure.cli.core.aaz import has_value +from azure.cli.core.azclierror import ArgumentUsageError +from azext_databox.aaz.latest.databox.job import Create as _JobCreate + +logger = get_logger(__name__) + + +class JobCreate(_JobCreate): + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + from azure.cli.core.aaz import AAZResourceIdArg, AAZResourceIdArgFormat, AAZListArg, AAZStrArg, AAZArgEnum, AAZFreeFormDictArg, AAZFreeFormDictArgFormat + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.storage_accounts = AAZListArg( + options=["--storage-account"], + help="Space-separated list of the destination storage account. It can be the name or resource ID of storage account." + ) + args_schema.storage_accounts.Element = AAZResourceIdArg( + fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" + "/providers/Microsoft.Storage/storageAccounts/{}") + ) + args_schema.staging_storage_account = AAZResourceIdArg( + options=["--staging-storage-account"], + help="Resource Id of the storage account that can be used to copy the vhd for staging.", + fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" + "/providers/Microsoft.Storage/storageAccounts/{}") + ) + args_schema.resource_group_for_managed_disk = AAZResourceIdArg( + options=['--resource-group-for-managed-disk'], + help="Resource Group Id of the compute disks.", + fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{}") + ) + args_schema.transfer_configuration_type = AAZStrArg( + options=['--transfer-configuration-type'], + help="Type of the configuration for transfer." + ) + args_schema.transfer_configuration_type.enum = AAZArgEnum({"TransferAll", "TransferUsingFilter"}) + args_schema.transfer_filter_details = AAZFreeFormDictArg( + options=["--transfer-filter-details"], + help="Path to the map of filter type and the details to filter.", + fmt=AAZFreeFormDictArgFormat() + ) + args_schema.data_box._registered = False + args_schema.data_box_disk._registered = False + args_schema.data_box_heavy._registered = False + args_schema.data_import_details._registered = False + args_schema.data_export_details._registered = False + return args_schema + + def pre_operations(self): + args = self.ctx.args + if args.sku == 'DataBox': + args.data_box = {} + if args.sku == 'DataBoxDisk': + args.data_box_disk = {} + if args.sku == 'DataBoxHeavy': + args.data_box_heavy = {} + + if args.sku == 'DataBoxDisk' and not has_value(args.expected_data_size): + raise ArgumentUsageError("You must provide '--expected-data-size' when the 'sku' is 'DataBoxDisk'.") + if not has_value(args.storage_accounts) and not has_value(args.staging_storage_account): + raise ArgumentUsageError("You must provide at least one '--storage-account' or the combination of '--staging-storage-account' and '--resource-group-for-managed-disk'") + + data_import_or_export_details = [] + if has_value(args.storage_accounts): + for storage_account in args.storage_accounts: + account_details = { + 'account_details': { + 'storage_account': { + 'storage_account_id': storage_account + } + } + } + data_import_or_export_details.append(account_details) + if has_value(args.staging_storage_account): + account_details = { + 'account_details': { + 'managed_disk': { + 'staging_storage_account_id': args.staging_storage_account, + 'resource_group_id': args.resource_group_for_managed_disk + } + } + } + data_import_or_export_details.append(account_details) + + if args.transfer_type == 'ImportToAzure': + args.data_import_details = data_import_or_export_details + + if args.transfer_type == 'ExportFromAzure': + if not has_value(args.transfer_configuration_type): + raise ArgumentUsageError('You must provide --transfer-configuration-type when --transfer-type is ExportFromAzure.') + for detail in data_import_or_export_details: + if args.transfer_configuration_type == 'TransferAll': + data_account_type = 'StorageAccount' if 'storage_account' in detail['account_details'] else 'ManagedDisk' + transfer_configuration = { + 'transfer_configuration_type': args.transfer_configuration_type, + 'transfer_all_details': { + 'include': { + 'data_account_type': data_account_type, + 'transfer_all_blobs': True, + 'transfer_all_files': True + } + } + } + detail['transfer_configuration'] = transfer_configuration + if args.transfer_configuration_type == 'TransferUsingFilter': + if not has_value(args.transfer_filter_details): + raise ArgumentUsageError('You must provide --transfer-filter-details when --transfer-configuration-type is TransferUsingFilter.') + transfer_configuration = { + "transfer_configuration_type": args.transfer_configuration_type, + "transfer_filter_details": args.transfer_filter_details + } + detail['transfer_configuration'] = transfer_configuration + args.data_export_details = data_import_or_export_details diff --git a/src/databox/azext_databox/vendored_sdks/databox/_version.py b/src/databox/azext_databox/tests/__init__.py similarity index 58% rename from src/databox/azext_databox/vendored_sdks/databox/_version.py rename to src/databox/azext_databox/tests/__init__.py index c47f66669f1..5757aea3175 100644 --- a/src/databox/azext_databox/vendored_sdks/databox/_version.py +++ b/src/databox/azext_databox/tests/__init__.py @@ -1,9 +1,6 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- +# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/databox/azext_databox/tests/latest/__init__.py b/src/databox/azext_databox/tests/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/databox/azext_databox/tests/latest/__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. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/databox/azext_databox/tests/latest/recordings/test_databox.yaml b/src/databox/azext_databox/tests/latest/recordings/test_databox.yaml index 3c4012f1999..e7295b5a496 100644 --- a/src/databox/azext_databox/tests/latest/recordings/test_databox.yaml +++ b/src/databox/azext_databox/tests/latest/recordings/test_databox.yaml @@ -1,15 +1,17 @@ interactions: - request: - body: '{"location": "westus", "sku": {"name": "DataBox"}, "properties": {"details": - {"contactDetails": {"contactName": "Public SDK Test", "phone": "14258828080", - "emailList": ["testing@microsoft.com"]}, "shippingAddress": {"streetAddress1": - "1 MICROSOFT WAY", "city": "Redmond", "stateOrProvince": "WA", "country": "US", - "postalCode": "98052", "companyName": "Microsoft"}, "destinationAccountDetails": - [{"dataDestinationType": "StorageAccount", "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}, - {"dataDestinationType": "StorageAccount", "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003"}, - {"dataDestinationType": "ManagedDisk", "resourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk", - "stagingStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}], - "jobDetailsType": "DataBox"}}}' + body: '{"location": "westus", "properties": {"details": {"contactDetails": {"contactName": + "Public SDK Test", "emailList": ["testing@microsoft.com"], "phone": "14258828080"}, + "dataImportDetails": [{"accountDetails": {"dataAccountType": "StorageAccount", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}}, + {"accountDetails": {"dataAccountType": "StorageAccount", "storageAccountId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003"}}, + {"accountDetails": {"dataAccountType": "ManagedDisk", "resourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007", + "stagingStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}}], + "jobDetailsType": "DataBox", "keyEncryptionKey": {"kekType": "MicrosoftManaged"}, + "shippingAddress": {"city": "Redmond", "companyName": "Microsoft", "country": + "US", "postalCode": "98052", "stateOrProvince": "WA", "streetAddress1": "1 MICROSOFT + WAY"}}, "transferType": "ImportToAzure"}, "sku": {"name": "DataBox"}}' headers: Accept: - application/json @@ -20,17 +22,18 @@ interactions: Connection: - keep-alive Content-Length: - - '1374' + - '1298' Content-Type: - application/json ParameterSetName: - --resource-group --name --location --sku --contact-name --phone --email-list --street-address1 --city --state-or-province --country --postal-code --company-name --storage-account --staging-storage-account --resource-group-for-managed-disk + --transfer-type --kek-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 response: body: string: '' @@ -40,11 +43,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:49:46 GMT + - Fri, 19 May 2023 09:44:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb?api-version=2022-12-01 pragma: - no-cache server: @@ -73,10 +76,11 @@ interactions: - --resource-group --name --location --sku --contact-name --phone --email-list --street-address1 --city --state-or-province --country --postal-code --company-name --storage-account --staging-storage-account --resource-group-for-managed-disk + --transfer-type --kek-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb?api-version=2022-12-01 response: body: string: '' @@ -86,11 +90,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:49:56 GMT + - Fri, 19 May 2023 09:44:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb?api-version=2022-12-01 pragma: - no-cache server: @@ -117,158 +121,116 @@ interactions: - --resource-group --name --location --sku --contact-name --phone --email-list --street-address1 --city --state-or-province --country --postal-code --company-name --storage-account --staging-storage-account --resource-group-for-managed-disk + --transfer-type --kek-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": - false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n - \ \"startTime\": \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": - {\r\n \"contactDetails\": {\r\n \"contactName\": \"Public SDK - Test\",\r\n \"phone\": \"14258828080\",\r\n \"emailList\": [\r\n - \ \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\": - [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"Delivered\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n - \ \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n - \ \"shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT - WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n - \ \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"destinationAccountDetails\": - [\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\": - {}\r\n },\r\n \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '3595' - content-type: - - application/json; charset=utf-8 + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' date: - - Fri, 07 May 2021 06:50:07 GMT + - Fri, 19 May 2023 09:44:17 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - databox job update + - databox job create Connection: - keep-alive ParameterSetName: - - --resource-group --name --contact-name --email-list - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01&$expand=details - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": - false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n - \ \"startTime\": \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": - {\r\n \"copyProgress\": [],\r\n \"jobStages\": [\r\n {\r\n - \ \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": - \"Ordered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": - \"2021-05-07T06:49:51.7645955+00:00\"\r\n },\r\n {\r\n \"stageName\": - \"DevicePrepared\",\r\n \"displayName\": \"Processed\",\r\n \"stageStatus\": - \"None\"\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"displayName\": \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n - \ },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"displayName\": - \"Delivered\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n - \ \"stageName\": \"PickedUp\",\r\n \"displayName\": \"Picked - up\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"displayName\": \"Received\",\r\n - \ \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": - \"DataCopy\",\r\n \"displayName\": \"Data copy in progress\",\r\n - \ \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": - \"Completed\",\r\n \"displayName\": \"Completed\",\r\n \"stageStatus\": - \"None\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": - \"Public SDK Test\",\r\n \"phone\": \"14258828080\",\r\n \"emailList\": - [\r\n \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\": - [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"Delivered\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n - \ \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n - \ \"shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT - WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n - \ \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"deliveryPackage\": - {\r\n \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n - \ \"trackingId\": \"\"\r\n },\r\n \"returnPackage\": {\r\n - \ \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n \"trackingId\": - \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n - \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\": - {},\r\n \"copyLogDetails\": [],\r\n \"reverseShipmentLabelSasKey\": - \"FakeKey\"\r\n - \ },\r\n \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '5374' + - --resource-group --name --location --sku --contact-name --phone --email-list + --street-address1 --city --state-or-province --country --postal-code --company-name + --storage-account --staging-storage-account --resource-group-for-managed-disk + --transfer-type --kek-type + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": true,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T09:44:07.4496805+00:00\",\r\n \"details\"\ + : {\r\n \"contactDetails\": {\r\n \"emailList\": [\r\n \ + \ \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\"\ + : [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n\ + \ \"stageName\": \"Dispatched\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Delivered\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"PickedUp\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"DataCopy\",\r\n \"sendNotification\"\ + : true\r\n }\r\n ],\r\n \"contactName\": \"Public SDK\ + \ Test\",\r\n \"phone\": \"14258828080\"\r\n },\r\n \"shippingAddress\"\ + : {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\n \"city\"\ + : \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n \"country\"\ + : \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\"\ + : \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \ + \ \"dataImportDetails\": [\r\n {\r\n \"accountDetails\":\ + \ {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007\"\ + ,\r\n \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"ManagedDisk\"\r\n }\r\n \ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBox\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \ + \ \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \ + \ \"isCancellableWithoutFee\": true\r\n },\r\n \"systemData\": {\r\n \ + \ \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T09:44:06.7916748+00:00\",\r\ + \n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:44:06.7916748+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBox\"\r\n },\r\n \"identity\": {\r\n \"type\":\ + \ \"None\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3708' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:50:09 GMT + - Fri, 19 May 2023 09:44:28 GMT expires: - '-1' pragma: @@ -288,9 +250,8 @@ interactions: message: OK - request: body: '{"properties": {"details": {"contactDetails": {"contactName": "Public SDK - Test 1", "phone": "14258828080", "emailList": ["testing1@microsoft.com"]}, "shippingAddress": - {"streetAddress1": "1 MICROSOFT WAY", "city": "Redmond", "stateOrProvince": - "WA", "country": "US", "postalCode": "98052", "companyName": "Microsoft"}}}}' + Test 1", "emailList": ["testing1@microsoft.com"], "phone": "14258828081"}, "keyEncryptionKey": + {"kekType": "MicrosoftManaged"}}}}' headers: Accept: - application/json @@ -301,15 +262,15 @@ interactions: Connection: - keep-alive Content-Length: - - '320' + - '203' Content-Type: - application/json ParameterSetName: - - --resource-group --name --contact-name --email-list + - --resource-group --name --contact-name --email-list --phone User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 response: body: string: '' @@ -319,11 +280,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:50:10 GMT + - Fri, 19 May 2023 09:44:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b260bec2-d619-4d10-aac2-a48fbcf318c4?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/1147ba83-7e5e-4b8a-bae4-7a4ce25b9e44?api-version=2022-12-01 pragma: - no-cache server: @@ -333,7 +294,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -349,11 +310,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --contact-name --email-list + - --resource-group --name --contact-name --email-list --phone User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b260bec2-d619-4d10-aac2-a48fbcf318c4?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/1147ba83-7e5e-4b8a-bae4-7a4ce25b9e44?api-version=2022-12-01 response: body: string: '' @@ -363,11 +324,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:50:21 GMT + - Fri, 19 May 2023 09:44:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 pragma: - no-cache server: @@ -391,57 +352,71 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --name --contact-name --email-list - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": - false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n - \ \"startTime\": \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": - {\r\n \"contactDetails\": {\r\n \"contactName\": \"Public SDK - Test 1\",\r\n \"phone\": \"14258828080\",\r\n \"emailList\": - [\r\n \"testing1@microsoft.com\"\r\n ],\r\n \"notificationPreference\": - [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"Delivered\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n - \ \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n - \ \"shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT - WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n - \ \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"destinationAccountDetails\": - [\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\": - {}\r\n },\r\n \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '3598' + - --resource-group --name --contact-name --email-list --phone + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": true,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T09:44:07.4496805+00:00\",\r\n \"details\"\ + : {\r\n \"contactDetails\": {\r\n \"emailList\": [\r\n \ + \ \"testing1@microsoft.com\"\r\n ],\r\n \"notificationPreference\"\ + : [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n\ + \ \"stageName\": \"Dispatched\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Delivered\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"PickedUp\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"DataCopy\",\r\n \"sendNotification\"\ + : true\r\n }\r\n ],\r\n \"contactName\": \"Public SDK\ + \ Test 1\",\r\n \"phone\": \"14258828081\"\r\n },\r\n \"\ + shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\ + \n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\ + \n \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \ + \ \"companyName\": \"Microsoft\",\r\n \"addressType\": \"None\"\ + \r\n },\r\n \"dataImportDetails\": [\r\n {\r\n \"\ + accountDetails\": {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007\"\ + ,\r\n \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"ManagedDisk\"\r\n }\r\n \ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBox\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \ + \ \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \ + \ \"isCancellableWithoutFee\": true\r\n },\r\n \"systemData\": {\r\n \ + \ \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T09:44:06.7916748+00:00\",\r\ + \n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:44:30.6949877+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBox\"\r\n },\r\n \"identity\": {\r\n \"type\":\ + \ \"None\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3711' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:50:31 GMT + - Fri, 19 May 2023 09:44:42 GMT expires: - '-1' pragma: @@ -473,77 +448,69 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01&$expand=details - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": - false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n - \ \"startTime\": \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": - {\r\n \"copyProgress\": [],\r\n \"jobStages\": [\r\n {\r\n - \ \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": - \"Ordered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": - \"2021-05-07T06:49:51.7645955+00:00\"\r\n },\r\n {\r\n \"stageName\": - \"DevicePrepared\",\r\n \"displayName\": \"Processed\",\r\n \"stageStatus\": - \"None\"\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"displayName\": \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n - \ },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"displayName\": - \"Delivered\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n - \ \"stageName\": \"PickedUp\",\r\n \"displayName\": \"Picked - up\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"displayName\": \"Received\",\r\n - \ \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": - \"DataCopy\",\r\n \"displayName\": \"Data copy in progress\",\r\n - \ \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": - \"Completed\",\r\n \"displayName\": \"Completed\",\r\n \"stageStatus\": - \"None\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": - \"Public SDK Test 1\",\r\n \"phone\": \"14258828080\",\r\n \"emailList\": - [\r\n \"testing1@microsoft.com\"\r\n ],\r\n \"notificationPreference\": - [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"Delivered\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n - \ \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n - \ \"shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT - WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n - \ \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"deliveryPackage\": - {\r\n \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n - \ \"trackingId\": \"\"\r\n },\r\n \"returnPackage\": {\r\n - \ \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n \"trackingId\": - \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n - \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\": - {},\r\n \"copyLogDetails\": [],\r\n \"reverseShipmentLabelSasKey\": - \"FakeKey\"\r\n - \ },\r\n \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '5375' + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": true,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T09:44:07.4496805+00:00\",\r\n \"details\"\ + : {\r\n \"contactDetails\": {\r\n \"emailList\": [\r\n \ + \ \"testing1@microsoft.com\"\r\n ],\r\n \"notificationPreference\"\ + : [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n\ + \ \"stageName\": \"Dispatched\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Delivered\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"PickedUp\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"DataCopy\",\r\n \"sendNotification\"\ + : true\r\n }\r\n ],\r\n \"contactName\": \"Public SDK\ + \ Test 1\",\r\n \"phone\": \"14258828081\"\r\n },\r\n \"\ + shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\ + \n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\ + \n \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \ + \ \"companyName\": \"Microsoft\",\r\n \"addressType\": \"None\"\ + \r\n },\r\n \"dataImportDetails\": [\r\n {\r\n \"\ + accountDetails\": {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007\"\ + ,\r\n \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"ManagedDisk\"\r\n }\r\n \ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBox\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \ + \ \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \ + \ \"isCancellableWithoutFee\": true\r\n },\r\n \"systemData\": {\r\n \ + \ \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T09:44:06.7916748+00:00\",\r\ + \n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:44:30.6949877+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBox\"\r\n },\r\n \"identity\": {\r\n \"type\":\ + \ \"None\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3711' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:50:34 GMT + - Fri, 19 May 2023 09:44:43 GMT expires: - '-1' pragma: @@ -575,76 +542,97 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs?api-version=2019-09-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"isCancellable\": - true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": - true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": - \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": {\r\n \"copyProgress\": - [],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": - \"DeviceOrdered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": - \"2021-05-07T06:49:51.7645955+00:00\"\r\n },\r\n {\r\n - \ \"stageName\": \"DevicePrepared\",\r\n \"stageStatus\": - \"None\"\r\n },\r\n {\r\n \"stageName\": - \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n },\r\n - \ {\r\n \"stageName\": \"Delivered\",\r\n \"stageStatus\": - \"None\"\r\n },\r\n {\r\n \"stageName\": - \"PickedUp\",\r\n \"stageStatus\": \"None\"\r\n },\r\n - \ {\r\n \"stageName\": \"AtAzureDC\",\r\n \"stageStatus\": - \"None\"\r\n },\r\n {\r\n \"stageName\": - \"DataCopy\",\r\n \"stageStatus\": \"None\"\r\n },\r\n - \ {\r\n \"stageName\": \"Completed\",\r\n \"stageStatus\": - \"None\"\r\n }\r\n ],\r\n \"contactDetails\": - {\r\n \"contactName\": \"Public SDK Test 1\",\r\n \"phone\": - \"14258828080\",\r\n \"emailList\": [\r\n \"testing1@microsoft.com\"\r\n - \ ],\r\n \"notificationPreference\": [\r\n {\r\n - \ \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": - \"Dispatched\",\r\n \"sendNotification\": true\r\n },\r\n - \ {\r\n \"stageName\": \"Delivered\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": - \"PickedUp\",\r\n \"sendNotification\": true\r\n },\r\n - \ {\r\n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": - \"DataCopy\",\r\n \"sendNotification\": true\r\n }\r\n - \ ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": - \"1 MICROSOFT WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\": - \"WA\",\r\n \"country\": \"US\",\r\n \"postalCode\": - \"98052\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": - \"None\"\r\n },\r\n \"deliveryPackage\": {\r\n \"trackingUrl\": - \"\",\r\n \"carrierName\": \"\",\r\n \"trackingId\": - \"\"\r\n },\r\n \"returnPackage\": {\r\n \"trackingUrl\": - \"\",\r\n \"carrierName\": \"\",\r\n \"trackingId\": - \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n - \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n - \ \"preferences\": {},\r\n \"copyLogDetails\": []\r\n },\r\n - \ \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n - \ \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": - \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '5286' + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs?api-version=2022-12-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \ + \ \"transferType\": \"ImportToAzure\",\r\n \"isCancellable\": true,\r\ + \n \"isDeletable\": false,\r\n \"isShippingAddressEditable\"\ + : true,\r\n \"reverseShippingDetailsUpdate\": \"NotSupported\",\r\n\ + \ \"reverseTransportPreferenceUpdate\": \"NotSupported\",\r\n \ + \ \"isPrepareToShipEnabled\": true,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T09:44:07.4496805+00:00\",\r\n \ + \ \"details\": {\r\n \"copyProgress\": [],\r\n \"jobStages\"\ + : [\r\n {\r\n \"stageName\": \"DeviceOrdered\",\r\n\ + \ \"stageStatus\": \"Succeeded\",\r\n \"stageTime\"\ + : \"2023-05-19T09:44:13.2891022+00:00\"\r\n },\r\n {\r\ + \n \"stageName\": \"DevicePrepared\",\r\n \"stageStatus\"\ + : \"None\"\r\n },\r\n {\r\n \"stageName\"\ + : \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n \ + \ },\r\n {\r\n \"stageName\": \"Delivered\",\r\n\ + \ \"stageStatus\": \"None\"\r\n },\r\n \ + \ {\r\n \"stageName\": \"PickedUp\",\r\n \"stageStatus\"\ + : \"None\"\r\n },\r\n {\r\n \"stageName\"\ + : \"AtAzureDC\",\r\n \"stageStatus\": \"None\"\r\n \ + \ },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \ + \ \"stageStatus\": \"None\"\r\n },\r\n {\r\ + \n \"stageName\": \"Completed\",\r\n \"stageStatus\"\ + : \"None\"\r\n }\r\n ],\r\n \"contactDetails\"\ + : {\r\n \"emailList\": [\r\n \"testing1@microsoft.com\"\ + \r\n ],\r\n \"notificationPreference\": [\r\n \ + \ {\r\n \"stageName\": \"DevicePrepared\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n \ + \ {\r\n \"stageName\": \"Dispatched\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n \ + \ \"stageName\": \"Delivered\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\"\ + : \"PickedUp\",\r\n \"sendNotification\": true\r\n \ + \ },\r\n {\r\n \"stageName\": \"AtAzureDC\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n \ + \ {\r\n \"stageName\": \"DataCopy\",\r\n \ + \ \"sendNotification\": true\r\n }\r\n ],\r\ + \n \"contactName\": \"Public SDK Test 1\",\r\n \"phone\"\ + : \"14258828081\"\r\n },\r\n \"shippingAddress\": {\r\n\ + \ \"streetAddress1\": \"1 MICROSOFT WAY\",\r\n \"city\"\ + : \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n \ + \ \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \ + \ \"companyName\": \"Microsoft\",\r\n \"addressType\": \"\ + None\"\r\n },\r\n \"deliveryPackage\": {\r\n \ + \ \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n \ + \ \"trackingId\": \"\"\r\n },\r\n \"returnPackage\"\ + : {\r\n \"trackingUrl\": \"\",\r\n \"carrierName\":\ + \ \"\",\r\n \"trackingId\": \"\"\r\n },\r\n \"\ + dataImportDetails\": [\r\n {\r\n \"accountDetails\"\ + : {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n \ + \ }\r\n },\r\n {\r\n \"accountDetails\"\ + : {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n \ + \ }\r\n },\r\n {\r\n \"accountDetails\"\ + : {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007\"\ + ,\r\n \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"ManagedDisk\"\r\n \ + \ }\r\n }\r\n ],\r\n \"dataExportDetails\":\ + \ [],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\"\ + : {\r\n \"encryptionPreferences\": {\r\n \"doubleEncryption\"\ + : \"Disabled\"\r\n }\r\n },\r\n \"reverseShippingDetails\"\ + : {\r\n \"isUpdated\": false\r\n },\r\n \"copyLogDetails\"\ + : [],\r\n \"deviceErasureDetails\": {\r\n \"deviceErasureStatus\"\ + : \"None\"\r\n },\r\n \"keyEncryptionKey\": {\r\n \ + \ \"kekType\": \"MicrosoftManaged\"\r\n },\r\n \"actions\"\ + : []\r\n },\r\n \"deliveryType\": \"NonScheduled\",\r\n \ + \ \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\ + \r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n\ + \ \"systemData\": {\r\n \"createdBy\": \"v-jingszhang@microsoft.com\"\ + ,\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-05-19T09:44:06.7916748+00:00\"\ + ,\r\n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \ + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:44:30.6949877+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n\ + \ \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"\ + identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"name\"\ + : \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '5683' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:50:36 GMT + - Fri, 19 May 2023 09:44:44 GMT expires: - '-1' pragma: @@ -666,7 +654,7 @@ interactions: body: '{"reason": "CancelTest"}' headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -680,9 +668,9 @@ interactions: ParameterSetName: - --resource-group --name --reason -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004/cancel?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004/cancel?api-version=2022-12-01 response: body: string: '' @@ -690,7 +678,7 @@ interactions: cache-control: - no-cache date: - - Fri, 07 May 2021 06:50:39 GMT + - Fri, 19 May 2023 09:44:46 GMT expires: - '-1' pragma: @@ -720,78 +708,69 @@ interactions: ParameterSetName: - --resource-group --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01&$expand=details - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": - true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n - \ \"startTime\": \"2021-05-07T06:49:46.4515191+00:00\",\r\n \"details\": - {\r\n \"copyProgress\": [\r\n {\r\n \"storageAccountName\": - \"clitest000002\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n - \ \"accountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"bytesSentToCloud\": 0,\r\n \"totalBytesToProcess\": 0\r\n - \ },\r\n {\r\n \"storageAccountName\": \"clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"bytesSentToCloud\": 0,\r\n \"totalBytesToProcess\": 0\r\n - \ },\r\n {\r\n \"dataDestinationType\": \"ManagedDisk\",\r\n - \ \"accountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"bytesSentToCloud\": 0,\r\n \"totalBytesToProcess\": 0\r\n - \ }\r\n ],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": - \"DeviceOrdered\",\r\n \"displayName\": \"Ordered\",\r\n \"stageStatus\": - \"Succeeded\",\r\n \"stageTime\": \"2021-05-07T06:49:51.7645955+00:00\"\r\n - \ },\r\n {\r\n \"stageName\": \"Cancelled\",\r\n \"displayName\": - \"Canceled\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": - \"2021-05-07T06:50:39.2020916+00:00\"\r\n }\r\n ],\r\n \"contactDetails\": - {\r\n \"contactName\": \"Public SDK Test 1\",\r\n \"phone\": - \"14258828080\",\r\n \"emailList\": [\r\n \"testing1@microsoft.com\"\r\n - \ ],\r\n \"notificationPreference\": [\r\n {\r\n \"stageName\": - \"DevicePrepared\",\r\n \"sendNotification\": true\r\n },\r\n - \ {\r\n \"stageName\": \"Dispatched\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"PickedUp\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"DataCopy\",\r\n \"sendNotification\": - true\r\n }\r\n ]\r\n },\r\n \"shippingAddress\": - {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\n \"city\": - \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n \"country\": - \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"deliveryPackage\": - {\r\n \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n - \ \"trackingId\": \"\"\r\n },\r\n \"returnPackage\": {\r\n - \ \"trackingUrl\": \"\",\r\n \"carrierName\": \"\",\r\n \"trackingId\": - \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n - \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ },\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n - \ },\r\n {\r\n \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\",\r\n - \ \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"ManagedDisk\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-for-managed-disk\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"preferences\": - {},\r\n \"copyLogDetails\": [],\r\n \"reverseShipmentLabelSasKey\": - \"FakeKey\"\r\n - \ },\r\n \"cancellationReason\": \"CancelTest\",\r\n \"deliveryType\": - \"NonScheduled\",\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": - \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n - \ },\r\n \"name\": \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '5826' + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"\ + isShippingAddressEditable\": false,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": true,\r\n \"status\": \"Cancelled\"\ + ,\r\n \"startTime\": \"2023-05-19T09:44:07.4496805+00:00\",\r\n \"details\"\ + : {\r\n \"contactDetails\": {\r\n \"emailList\": [\r\n \ + \ \"testing1@microsoft.com\"\r\n ],\r\n \"notificationPreference\"\ + : [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n\ + \ \"stageName\": \"Dispatched\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Delivered\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"PickedUp\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"DataCopy\",\r\n \"sendNotification\"\ + : true\r\n }\r\n ],\r\n \"contactName\": \"Public SDK\ + \ Test 1\",\r\n \"phone\": \"14258828081\"\r\n },\r\n \"\ + shippingAddress\": {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\ + \n \"city\": \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\ + \n \"country\": \"US\",\r\n \"postalCode\": \"98052\",\r\n \ + \ \"companyName\": \"Microsoft\",\r\n \"addressType\": \"None\"\ + \r\n },\r\n \"dataImportDetails\": [\r\n {\r\n \"\ + accountDetails\": {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ },\r\n {\r\n \"accountDetails\": {\r\n \ + \ \"resourceGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-000007\"\ + ,\r\n \"stagingStorageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"ManagedDisk\"\r\n }\r\n \ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBox\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"cancellationReason\": \"CancelTest\",\r\n \"deliveryType\": \"NonScheduled\"\ + ,\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\ + \r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"systemData\"\ + : {\r\n \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T09:44:06.7916748+00:00\",\r\ + \n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:44:30.6949877+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBox\"\r\n },\r\n \"identity\": {\r\n \"type\":\ + \ \"None\"\r\n },\r\n \"name\": \"job000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3750' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:50:41 GMT + - Fri, 19 May 2023 09:44:49 GMT expires: - '-1' pragma: @@ -813,7 +792,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -825,9 +804,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 response: body: string: '' @@ -837,11 +816,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:50:45 GMT + - Fri, 19 May 2023 09:44:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -869,9 +848,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -881,11 +860,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:50:55 GMT + - Fri, 19 May 2023 09:44:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -911,9 +890,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -923,11 +902,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:05 GMT + - Fri, 19 May 2023 09:45:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -953,9 +932,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -965,11 +944,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:16 GMT + - Fri, 19 May 2023 09:45:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -995,9 +974,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1007,11 +986,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:26 GMT + - Fri, 19 May 2023 09:45:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1037,9 +1016,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1049,11 +1028,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:36 GMT + - Fri, 19 May 2023 09:45:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1079,9 +1058,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1091,11 +1070,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:47 GMT + - Fri, 19 May 2023 09:45:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1121,9 +1100,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1133,11 +1112,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:51:57 GMT + - Fri, 19 May 2023 09:45:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1163,9 +1142,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1175,11 +1154,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:07 GMT + - Fri, 19 May 2023 09:46:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1205,9 +1184,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1217,11 +1196,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:18 GMT + - Fri, 19 May 2023 09:46:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1247,9 +1226,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1259,11 +1238,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:28 GMT + - Fri, 19 May 2023 09:46:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1289,9 +1268,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1301,11 +1280,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:39 GMT + - Fri, 19 May 2023 09:46:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1331,9 +1310,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1343,11 +1322,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:49 GMT + - Fri, 19 May 2023 09:46:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1373,9 +1352,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1385,11 +1364,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:52:59 GMT + - Fri, 19 May 2023 09:46:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1415,9 +1394,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1427,11 +1406,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:53:11 GMT + - Fri, 19 May 2023 09:47:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1457,9 +1436,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1469,11 +1448,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:53:21 GMT + - Fri, 19 May 2023 09:47:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1499,19 +1478,23 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/b5ccfe1c-c8fc-45fd-8304-da898e07d61f-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' headers: cache-control: - no-cache + content-length: + - '0' date: - - Fri, 07 May 2021 06:53:31 GMT + - Fri, 19 May 2023 09:47:29 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1521,41 +1504,39 @@ interactions: x-content-type-options: - nosniff status: - code: 204 - message: No Content + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - databox job show + - databox job delete Connection: - keep-alive ParameterSetName: - - --resource-group --name + - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2019-09-01&$expand=details + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: - string: "{\r\n \"code\": \"SsemUserErrorEntityNotFound\",\r\n \"message\": - \"Could not find the entity job000004.\\r\\nProvide a valid entity name and - retry the operation.\",\r\n \"details\": [],\r\n \"additionalInfo\": []\r\n}" + string: '' headers: cache-control: - no-cache content-length: - - '213' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 07 May 2021 06:53:33 GMT + - Fri, 19 May 2023 09:47:39 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1565,38 +1546,25 @@ interactions: x-content-type-options: - nosniff status: - code: 404 - message: Not Found + code: 202 + message: Accepted - request: - body: '{"location": "westus", "sku": {"name": "DataBoxDisk"}, "properties": {"details": - {"expectedDataSizeInTerabytes": 1, "contactDetails": {"contactName": "Public - SDK Test", "phone": "14258828080", "emailList": ["testing@microsoft.com"]}, - "shippingAddress": {"streetAddress1": "1 MICROSOFT WAY", "city": "Redmond", - "stateOrProvince": "WA", "country": "US", "postalCode": "98052", "companyName": - "Microsoft"}, "destinationAccountDetails": [{"dataDestinationType": "StorageAccount", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}], - "jobDetailsType": "DataBoxDisk"}}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - databox job create + - databox job delete Connection: - keep-alive - Content-Length: - - '747' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --location --sku --expected-data-size --contact-name - --phone --email-list --street-address1 --city --state-or-province --country - --postal-code --company-name --storage-account + - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2019-09-01 + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1606,11 +1574,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:53:42 GMT + - Fri, 19 May 2023 09:47:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1619,8 +1587,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: code: 202 message: Accepted @@ -1632,17 +1598,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - databox job create + - databox job delete Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --sku --expected-data-size --contact-name - --phone --email-list --street-address1 --city --state-or-province --country - --postal-code --company-name --storage-account + - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1652,11 +1616,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:53:52 GMT + - Fri, 19 May 2023 09:48:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1676,105 +1640,71 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - databox job create + - databox job delete Connection: - keep-alive ParameterSetName: - - --resource-group --name --location --sku --expected-data-size --contact-name - --phone --email-list --street-address1 --city --state-or-province --country - --postal-code --company-name --storage-account - User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2019-09-01 - response: - body: - string: "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": - false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n - \ \"startTime\": \"2021-05-07T06:53:42.3958227+00:00\",\r\n \"details\": - {\r\n \"expectedDataSizeInTeraBytes\": 1,\r\n \"contactDetails\": - {\r\n \"contactName\": \"Public SDK Test\",\r\n \"phone\": \"14258828080\",\r\n - \ \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ],\r\n - \ \"notificationPreference\": [\r\n {\r\n \"stageName\": - \"DevicePrepared\",\r\n \"sendNotification\": true\r\n },\r\n - \ {\r\n \"stageName\": \"Dispatched\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"PickedUp\",\r\n \"sendNotification\": - true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n - \ \"sendNotification\": true\r\n },\r\n {\r\n - \ \"stageName\": \"DataCopy\",\r\n \"sendNotification\": - true\r\n }\r\n ]\r\n },\r\n \"shippingAddress\": - {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\n \"city\": - \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n \"country\": - \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\": - \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \"destinationAccountDetails\": - [\r\n {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\",\r\n - \ \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n - \ }\r\n ],\r\n \"jobDetailsType\": \"DataBoxDisk\",\r\n \"preferences\": - {}\r\n },\r\n \"deliveryType\": \"NonScheduled\",\r\n \"isCancellableWithoutFee\": - true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"job000005\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005\",\r\n - \ \"type\": \"Microsoft.DataBox/jobs\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2527' - content-type: - - application/json; charset=utf-8 + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' date: - - Fri, 07 May 2021 06:54:03 GMT + - Fri, 19 May 2023 09:48:12 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: - code: 200 - message: OK + code: 202 + message: Accepted - request: - body: '{"reason": "CancelTest"}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - databox job cancel + - databox job delete Connection: - keep-alive - Content-Length: - - '24' - Content-Type: - - application/json ParameterSetName: - - --resource-group --name --reason -y + - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005/cancel?api-version=2019-09-01 + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' headers: cache-control: - no-cache + content-length: + - '0' date: - - Fri, 07 May 2021 06:54:06 GMT + - Fri, 19 May 2023 09:48:22 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1783,30 +1713,26 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' status: - code: 204 - message: No Content + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - databox job delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2019-09-01 + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1816,11 +1742,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:54:11 GMT + - Fri, 19 May 2023 09:48:32 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1829,8 +1755,6 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: code: 202 message: Accepted @@ -1848,9 +1772,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1860,11 +1784,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:54:21 GMT + - Fri, 19 May 2023 09:48:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1890,9 +1814,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1902,11 +1826,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:54:31 GMT + - Fri, 19 May 2023 09:48:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1932,9 +1856,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1944,11 +1868,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:54:42 GMT + - Fri, 19 May 2023 09:49:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -1974,9 +1898,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -1986,11 +1910,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:54:52 GMT + - Fri, 19 May 2023 09:49:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2016,9 +1940,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2028,11 +1952,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:03 GMT + - Fri, 19 May 2023 09:49:24 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2058,9 +1982,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2070,11 +1994,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:13 GMT + - Fri, 19 May 2023 09:49:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2100,9 +2024,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2112,11 +2036,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:24 GMT + - Fri, 19 May 2023 09:49:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2142,9 +2066,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2154,11 +2078,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:34 GMT + - Fri, 19 May 2023 09:49:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2184,9 +2108,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2196,11 +2120,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:45 GMT + - Fri, 19 May 2023 09:50:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2226,9 +2150,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2238,11 +2162,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:55:55 GMT + - Fri, 19 May 2023 09:50:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2268,9 +2192,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2280,11 +2204,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:06 GMT + - Fri, 19 May 2023 09:50:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2310,9 +2234,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2322,11 +2246,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:16 GMT + - Fri, 19 May 2023 09:50:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2352,9 +2276,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2364,11 +2288,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:26 GMT + - Fri, 19 May 2023 09:50:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2394,9 +2318,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2406,11 +2330,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:37 GMT + - Fri, 19 May 2023 09:50:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2436,9 +2360,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2448,11 +2372,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:47 GMT + - Fri, 19 May 2023 09:51:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2478,9 +2402,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2490,11 +2414,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:56:57 GMT + - Fri, 19 May 2023 09:51:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2520,9 +2444,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2532,11 +2456,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:57:08 GMT + - Fri, 19 May 2023 09:51:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2562,9 +2486,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2574,11 +2498,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:57:18 GMT + - Fri, 19 May 2023 09:51:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2604,9 +2528,9 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' @@ -2616,11 +2540,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:57:28 GMT + - Fri, 19 May 2023 09:51:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 pragma: - no-cache server: @@ -2646,23 +2570,19 @@ interactions: ParameterSetName: - --resource-group --name -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/f2db299b-2e82-4273-ad3d-68cbf3c2a6eb-deleteorder?api-version=2022-12-01 response: body: string: '' headers: cache-control: - no-cache - content-length: - - '0' date: - - Fri, 07 May 2021 06:57:39 GMT + - Fri, 19 May 2023 09:52:00 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 pragma: - no-cache server: @@ -2672,67 +2592,83 @@ interactions: x-content-type-options: - nosniff status: - code: 202 - message: Accepted + code: 204 + message: No Content - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - databox job delete + - databox job show Connection: - keep-alive ParameterSetName: - - --resource-group --name -y + - --resource-group --name User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000004?api-version=2022-12-01 response: body: - string: '' + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.DataBox/jobs/job000004'' + under resource group ''cli_test_databox000001'' was not found. For more details + please go to https://aka.ms/ARMResourceNotFoundFix"}}' headers: cache-control: - no-cache content-length: - - '0' + - '226' + content-type: + - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:57:49 GMT + - Fri, 19 May 2023 09:52:03 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-failure-cause: + - gateway status: - code: 202 - message: Accepted + code: 404 + message: Not Found - request: - body: null + body: '{"location": "westus", "properties": {"details": {"contactDetails": {"contactName": + "Public SDK Test", "emailList": ["testing@microsoft.com"], "phone": "14258828080"}, + "dataImportDetails": [{"accountDetails": {"dataAccountType": "StorageAccount", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}}], + "expectedDataSizeInTeraBytes": 1, "jobDetailsType": "DataBoxDisk", "keyEncryptionKey": + {"kekType": "MicrosoftManaged"}, "shippingAddress": {"city": "Redmond", "companyName": + "Microsoft", "country": "US", "postalCode": "98052", "stateOrProvince": "WA", + "streetAddress1": "1 MICROSOFT WAY"}}, "transferType": "ImportToAzure"}, "sku": + {"name": "DataBoxDisk"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - databox job delete + - databox job create Connection: - keep-alive + Content-Length: + - '777' + Content-Type: + - application/json ParameterSetName: - - --resource-group --name -y + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2022-12-01 response: body: string: '' @@ -2742,11 +2678,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:57:59 GMT + - Fri, 19 May 2023 09:52:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e?api-version=2022-12-01 pragma: - no-cache server: @@ -2755,6 +2691,8 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' status: code: 202 message: Accepted @@ -2766,15 +2704,17 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - databox job delete + - databox job create Connection: - keep-alive ParameterSetName: - - --resource-group --name -y + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e?api-version=2022-12-01 response: body: string: '' @@ -2784,11 +2724,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:58:10 GMT + - Fri, 19 May 2023 09:52:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e?api-version=2022-12-01 pragma: - no-cache server: @@ -2808,15 +2748,17 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - databox job delete + - databox job create Connection: - keep-alive ParameterSetName: - - --resource-group --name -y + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e?api-version=2022-12-01 response: body: string: '' @@ -2826,11 +2768,11 @@ interactions: content-length: - '0' date: - - Fri, 07 May 2021 06:58:21 GMT + - Fri, 19 May 2023 09:52:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2022-12-01 pragma: - no-cache server: @@ -2850,23 +2792,70 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - databox job delete + - databox job create Connection: - keep-alive ParameterSetName: - - --resource-group --name -y + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/25073361-d073-4efa-a48c-3357ab047de8-deleteorder?api-version=2019-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2022-12-01 response: body: - string: '' + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"Enabled\",\r\n \"reverseTransportPreferenceUpdate\": \"Enabled\",\r\ + \n \"isPrepareToShipEnabled\": false,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T09:52:09.0477749+00:00\",\r\n \"details\"\ + : {\r\n \"expectedDataSizeInTeraBytes\": 1,\r\n \"contactDetails\"\ + : {\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n\ + \ ],\r\n \"notificationPreference\": [\r\n {\r\n \ + \ \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"Delivered\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\"\ + ,\r\n \"sendNotification\": true\r\n }\r\n ],\r\ + \n \"contactName\": \"Public SDK Test\",\r\n \"phone\": \"14258828080\"\ + \r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\"\ + : \"1 MICROSOFT WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\"\ + : \"WA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"98052\"\ + ,\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"\ + None\"\r\n },\r\n \"dataImportDetails\": [\r\n {\r\n \ + \ \"accountDetails\": {\r\n \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBoxDisk\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \ + \ \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \ + \ \"isCancellableWithoutFee\": true\r\n },\r\n \"systemData\": {\r\n \ + \ \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T09:52:08.420365+00:00\",\r\n\ + \ \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T09:52:08.420365+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBoxDisk\"\r\n },\r\n \"identity\": {\r\n \"type\"\ + : \"None\"\r\n },\r\n \"name\": \"job000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" headers: cache-control: - no-cache + content-length: + - '3030' + content-type: + - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:58:31 GMT + - Fri, 19 May 2023 09:52:30 GMT expires: - '-1' pragma: @@ -2875,42 +2864,44 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: - code: 204 - message: No Content + code: 200 + message: OK - request: - body: null + body: '{"reason": "CancelTest"}' headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - databox job show + - databox job cancel Connection: - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json ParameterSetName: - - --resource-group --name + - --resource-group --name --reason -y User-Agent: - - AZURECLI/2.23.0 azsdk-python-azure-mgmt-databox/1.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2019-09-01&$expand=details + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005/cancel?api-version=2022-12-01 response: body: - string: "{\r\n \"code\": \"SsemUserErrorEntityNotFound\",\r\n \"message\": - \"Could not find the entity job000005.\\r\\nProvide a valid entity name and - retry the operation.\",\r\n \"details\": [],\r\n \"additionalInfo\": []\r\n}" + string: '' headers: cache-control: - no-cache - content-length: - - '213' - content-type: - - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:58:34 GMT + - Fri, 19 May 2023 09:52:33 GMT expires: - '-1' pragma: @@ -2921,9 +2912,4710 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: - code: 404 + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:52:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:52:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:52:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:52:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:53:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:54:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:54:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:54:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:54:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:54:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:00 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:55:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:56:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:57:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:58:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:59:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:59:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:59:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:59:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:59:51 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:00:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:01:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/d3e21915-42a2-45b7-acd9-8126c855a52e-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 19 May 2023 10:02:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000005?api-version=2022-12-01 + response: + body: + string: "{\r\n \"error\": {\r\n \"code\": \"SsemUserErrorEntityNotFound\"\ + ,\r\n \"message\": \"Could not find the entity job000005.\\r\\nProvide\ + \ a valid entity name and retry the operation.\",\r\n \"details\": [\r\n\ + \ null\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '216' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 May 2023 10:02:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 404 message: Not Found +- request: + body: '{"location": "westus", "properties": {"details": {"contactDetails": {"contactName": + "Public SDK Test", "emailList": ["testing@microsoft.com"], "phone": "14258828080"}, + "dataExportDetails": [{"accountDetails": {"dataAccountType": "StorageAccount", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}, + "transferConfiguration": {"transferAllDetails": {"include": {"dataAccountType": + "StorageAccount", "transferAllBlobs": true, "transferAllFiles": true}}, "transferConfigurationType": + "TransferAll"}}], "expectedDataSizeInTeraBytes": 1, "jobDetailsType": "DataBox", + "keyEncryptionKey": {"kekType": "MicrosoftManaged"}, "shippingAddress": {"city": + "Redmond", "companyName": "Microsoft", "country": "US", "postalCode": "98052", + "stateOrProvince": "WA", "streetAddress1": "1 MICROSOFT WAY"}}, "transferType": + "ExportFromAzure"}, "sku": {"name": "DataBox"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + Content-Length: + - '968' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type --transfer-configuration-type + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type --transfer-configuration-type + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type --transfer-configuration-type + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:02:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --location --sku --expected-data-size --contact-name + --phone --email-list --street-address1 --city --state-or-province --country + --postal-code --company-name --storage-account --transfer-type --transfer-configuration-type + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ExportFromAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": true,\r\n \"status\": \"DeviceOrdered\"\ + ,\r\n \"startTime\": \"2023-05-19T10:02:47.0566639+00:00\",\r\n \"details\"\ + : {\r\n \"expectedDataSizeInTeraBytes\": 1,\r\n \"contactDetails\"\ + : {\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n\ + \ ],\r\n \"notificationPreference\": [\r\n {\r\n \ + \ \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"Delivered\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\"\ + : true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\"\ + ,\r\n \"sendNotification\": true\r\n }\r\n ],\r\ + \n \"contactName\": \"Public SDK Test\",\r\n \"phone\": \"14258828080\"\ + \r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\"\ + : \"1 MICROSOFT WAY\",\r\n \"city\": \"Redmond\",\r\n \"stateOrProvince\"\ + : \"WA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"98052\"\ + ,\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"\ + None\"\r\n },\r\n \"dataExportDetails\": [\r\n {\r\n \ + \ \"transferConfiguration\": {\r\n \"transferConfigurationType\"\ + : \"TransferAll\",\r\n \"transferAllDetails\": {\r\n \ + \ \"include\": {\r\n \"dataAccountType\": \"StorageAccount\"\ + ,\r\n \"transferAllBlobs\": true,\r\n \"transferAllFiles\"\ + : true\r\n }\r\n }\r\n },\r\n \"\ + logCollectionLevel\": \"Error\",\r\n \"accountDetails\": {\r\n \ + \ \"storageAccountId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ }\r\n ],\r\n \"jobDetailsType\": \"DataBox\",\r\n \ + \ \"preferences\": {\r\n \"encryptionPreferences\": {\r\n \ + \ \"doubleEncryption\": \"Disabled\"\r\n }\r\n },\r\n \"\ + reverseShippingDetails\": {},\r\n \"keyEncryptionKey\": {\r\n \ + \ \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n \"deliveryType\"\ + : \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\"\ + : \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \"isCancellableWithoutFee\"\ + : true\r\n },\r\n \"systemData\": {\r\n \"createdBy\": \"v-jingszhang@microsoft.com\"\ + ,\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-05-19T10:02:46.4119698+00:00\"\ + ,\r\n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T10:02:46.4119698+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBox\"\r\n },\r\n \"identity\": {\r\n \"type\":\ + \ \"None\"\r\n },\r\n \"name\": \"job000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3390' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 May 2023 10:03:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"reason": "CancelTest"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job cancel + Connection: + - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --reason -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006/cancel?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 19 May 2023 10:03:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000006?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:03:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:04:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:05:09 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:05:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:05:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:05:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:05:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:13 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:06:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:07:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:08:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:08:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:08:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:08:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:08:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:09:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:10:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:10:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 10:10:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/bd947866-8d13-422b-b872-701a95129e0c-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 19 May 2023 10:10:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content - request: body: null headers: @@ -2938,30 +7630,28 @@ interactions: ParameterSetName: - --name -g --resource-name --resource-type User-Agent: - - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.23.0 - accept-language: - - en-US + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/locks?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"level":"CanNotDelete","notes":"Data Box Service - to copy data from device to storage account."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002/providers/Microsoft.Authorization/locks/DATABOX_SERVICE","type":"Microsoft.Authorization/locks","name":"DATABOX_SERVICE"},{"properties":{"level":"CanNotDelete","notes":"Data - Box Service to copy data from device to storage account."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003/providers/Microsoft.Authorization/locks/DATABOX_SERVICE","type":"Microsoft.Authorization/locks","name":"DATABOX_SERVICE"},{"properties":{"level":"CanNotDelete","notes":"Please - do not delete this User Assigned Identity in the AzSecPackAutoConfigRG resource - group as AzSecPack AutoConfig depends on this."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus2/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus2","type":"Microsoft.Authorization/locks","name":"CanNotDeleteLock-AzSecPackAutoConfigUA-eastus2"},{"properties":{"level":"CanNotDelete","notes":"Please - do not delete this User Assigned Identity in the AzSecPackAutoConfigRG resource - group as AzSecPack AutoConfig depends on this."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus","type":"Microsoft.Authorization/locks","name":"CanNotDeleteLock-AzSecPackAutoConfigUA-eastus"}]}' + string: '{"value":[{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southeastasia/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":"contact + zhwen"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctestRG-sentinel-221011134813007315/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fypurview/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yantest/providers/Microsoft.Authorization/locks/templock","type":"Microsoft.Authorization/locks","name":"templock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lightning/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fybot/providers/Microsoft.Authorization/locks/delete-lock","type":"Microsoft.Authorization/locks","name":"delete-lock"},{"properties":{"level":"CanNotDelete","notes":"for + Asir"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/emerald-city-bookstore/providers/Microsoft.Authorization/locks/No-DELETE","type":"Microsoft.Authorization/locks","name":"No-DELETE"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/galleryappaccount/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/queuetest/providers/Microsoft.Storage/storageAccounts/qteststac/providers/Microsoft.Authorization/locks/l","type":"Microsoft.Authorization/locks","name":"l"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-rg/providers/Microsoft.Authorization/locks/test-databricks","type":"Microsoft.Authorization/locks","name":"test-databricks"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Authorization/locks/1","type":"Microsoft.Authorization/locks","name":"1"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Storage/storageAccounts/hangstorage/providers/Microsoft.Authorization/locks/2","type":"Microsoft.Authorization/locks","name":"2"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_acctestRG-ibt-24_acctest-IBT-0710-2_4ebedb5a-e3b1-4675-aa4c-3c160fe70907/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/shiying-rg/providers/Microsoft.Storage/storageAccounts/shiyingsa/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/shiying-rg/providers/Microsoft.Compute/virtualMachines/shiying-action-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrgtest1/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testkvv2rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-live-test/providers/Microsoft.Authorization/locks/can + not delete","type":"Microsoft.Authorization/locks","name":"can not delete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Authorization/locks/rg2","type":"Microsoft.Authorization/locks","name":"rg2"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/jiasli-azsecpack-testrg/providers/Microsoft.Compute/virtualMachines/jiasli-azsecpack-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_shiying-rg_GitHubActionsRunnersK8sCluster_westus/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-file-handle-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg-euap-east/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnect2rg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnect2/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhwen-domain/providers/Microsoft.Authorization/locks/zhwen","type":"Microsoft.Authorization/locks","name":"zhwen"},{"properties":{"level":"CanNotDelete","notes":"Prevent + the resources for live test from being deleted."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzurePowerShellLiveTest/providers/Microsoft.Authorization/locks/CannotDelete","type":"Microsoft.Authorization/locks","name":"CannotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_loadbalance/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Web/sites/webp2c/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Storage/storageAccounts/portal2clistorage/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengtestsa/providers/Microsoft.Authorization/locks/salock","type":"Microsoft.Authorization/locks","name":"salock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/new-experiences/providers/Microsoft.Authorization/locks/NO-DELETE","type":"Microsoft.Authorization/locks","name":"NO-DELETE"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectRHELrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectRHEL/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Storage/storageAccounts/azurecliedge/providers/Microsoft.Authorization/locks/azurecliedge-dl","type":"Microsoft.Authorization/locks","name":"azurecliedge-dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ethan-rg/providers/Microsoft.Authorization/locks/daily-work","type":"Microsoft.Authorization/locks","name":"daily-work"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Storage/storageAccounts/privatepackage/providers/Microsoft.Authorization/locks/private + package","type":"Microsoft.Authorization/locks","name":"private package"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nori-rg/providers/Microsoft.Authorization/locks/nori-lock","type":"Microsoft.Authorization/locks","name":"nori-lock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xz3-test/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectCentOSrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectCentOS/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kairu-persist/providers/Microsoft.Authorization/locks/antidelete","type":"Microsoft.Authorization/locks","name":"antidelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectSUSErg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectSUSE/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiaslivmmirg/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":"for + customer issue repro (snowflake)"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/storage-v2rt-repro/providers/Microsoft.Authorization/locks/DontDelete","type":"Microsoft.Authorization/locks","name":"DontDelete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qinkai-test/providers/Microsoft.Storage/storageAccounts/qinkaiwu/providers/Microsoft.Authorization/locks/privatepackage","type":"Microsoft.Authorization/locks","name":"privatepackage"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Authorization/locks/Do + Not Delete","type":"Microsoft.Authorization/locks","name":"Do Not Delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/t-yakou2/providers/Microsoft.Web/sites/WebAppPortal2CLI20200827092707/providers/Microsoft.Authorization/locks/dont_delete_me","type":"Microsoft.Authorization/locks","name":"dont_delete_me"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-elasticsan-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"}]}' headers: cache-control: - no-cache content-length: - - '2012' + - '13248' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:58:34 GMT + - Fri, 19 May 2023 10:10:38 GMT expires: - '-1' pragma: @@ -2981,7 +7671,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2993,10 +7683,7 @@ interactions: ParameterSetName: - --name -g --resource-name --resource-type User-Agent: - - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.23.0 - accept-language: - - en-US + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002/providers/Microsoft.Authorization/locks/DATABOX_SERVICE?api-version=2016-09-01 response: @@ -3005,10 +7692,8 @@ interactions: headers: cache-control: - no-cache - content-length: - - '0' date: - - Fri, 07 May 2021 06:58:35 GMT + - Fri, 19 May 2023 10:10:38 GMT expires: - '-1' pragma: @@ -3020,8 +7705,8 @@ interactions: x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: - code: 200 - message: OK + code: 204 + message: No Content - request: body: null headers: @@ -3036,29 +7721,28 @@ interactions: ParameterSetName: - --name -g --resource-name --resource-type User-Agent: - - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.23.0 - accept-language: - - en-US + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/locks?api-version=2016-09-01 response: body: - string: '{"value":[{"properties":{"level":"CanNotDelete","notes":"Data Box Service - to copy data from device to storage account."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003/providers/Microsoft.Authorization/locks/DATABOX_SERVICE","type":"Microsoft.Authorization/locks","name":"DATABOX_SERVICE"},{"properties":{"level":"CanNotDelete","notes":"Please - do not delete this User Assigned Identity in the AzSecPackAutoConfigRG resource - group as AzSecPack AutoConfig depends on this."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus2/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus2","type":"Microsoft.Authorization/locks","name":"CanNotDeleteLock-AzSecPackAutoConfigUA-eastus2"},{"properties":{"level":"CanNotDelete","notes":"Please - do not delete this User Assigned Identity in the AzSecPackAutoConfigRG resource - group as AzSecPack AutoConfig depends on this."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/AzSecPackAutoConfigRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/AzSecPackAutoConfigUA-eastus/providers/Microsoft.Authorization/locks/CanNotDeleteLock-AzSecPackAutoConfigUA-eastus","type":"Microsoft.Authorization/locks","name":"CanNotDeleteLock-AzSecPackAutoConfigUA-eastus"}]}' + string: '{"value":[{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southeastasia/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":"contact + zhwen"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctestRG-sentinel-221011134813007315/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fypurview/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yantest/providers/Microsoft.Authorization/locks/templock","type":"Microsoft.Authorization/locks","name":"templock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lightning/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fybot/providers/Microsoft.Authorization/locks/delete-lock","type":"Microsoft.Authorization/locks","name":"delete-lock"},{"properties":{"level":"CanNotDelete","notes":"for + Asir"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/emerald-city-bookstore/providers/Microsoft.Authorization/locks/No-DELETE","type":"Microsoft.Authorization/locks","name":"No-DELETE"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/galleryappaccount/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/queuetest/providers/Microsoft.Storage/storageAccounts/qteststac/providers/Microsoft.Authorization/locks/l","type":"Microsoft.Authorization/locks","name":"l"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-rg/providers/Microsoft.Authorization/locks/test-databricks","type":"Microsoft.Authorization/locks","name":"test-databricks"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Authorization/locks/1","type":"Microsoft.Authorization/locks","name":"1"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Storage/storageAccounts/hangstorage/providers/Microsoft.Authorization/locks/2","type":"Microsoft.Authorization/locks","name":"2"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_acctestRG-ibt-24_acctest-IBT-0710-2_4ebedb5a-e3b1-4675-aa4c-3c160fe70907/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/shiying-rg/providers/Microsoft.Storage/storageAccounts/shiyingsa/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/shiying-rg/providers/Microsoft.Compute/virtualMachines/shiying-action-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrgtest1/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testkvv2rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-live-test/providers/Microsoft.Authorization/locks/can + not delete","type":"Microsoft.Authorization/locks","name":"can not delete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Authorization/locks/rg2","type":"Microsoft.Authorization/locks","name":"rg2"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/jiasli-azsecpack-testrg/providers/Microsoft.Compute/virtualMachines/jiasli-azsecpack-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_shiying-rg_GitHubActionsRunnersK8sCluster_westus/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-file-handle-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg-euap-east/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnect2rg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnect2/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhwen-domain/providers/Microsoft.Authorization/locks/zhwen","type":"Microsoft.Authorization/locks","name":"zhwen"},{"properties":{"level":"CanNotDelete","notes":"Prevent + the resources for live test from being deleted."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzurePowerShellLiveTest/providers/Microsoft.Authorization/locks/CannotDelete","type":"Microsoft.Authorization/locks","name":"CannotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_loadbalance/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Web/sites/webp2c/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Storage/storageAccounts/portal2clistorage/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengtestsa/providers/Microsoft.Authorization/locks/salock","type":"Microsoft.Authorization/locks","name":"salock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/new-experiences/providers/Microsoft.Authorization/locks/NO-DELETE","type":"Microsoft.Authorization/locks","name":"NO-DELETE"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectRHELrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectRHEL/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Storage/storageAccounts/azurecliedge/providers/Microsoft.Authorization/locks/azurecliedge-dl","type":"Microsoft.Authorization/locks","name":"azurecliedge-dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ethan-rg/providers/Microsoft.Authorization/locks/daily-work","type":"Microsoft.Authorization/locks","name":"daily-work"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Storage/storageAccounts/privatepackage/providers/Microsoft.Authorization/locks/private + package","type":"Microsoft.Authorization/locks","name":"private package"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nori-rg/providers/Microsoft.Authorization/locks/nori-lock","type":"Microsoft.Authorization/locks","name":"nori-lock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xz3-test/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectCentOSrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectCentOS/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kairu-persist/providers/Microsoft.Authorization/locks/antidelete","type":"Microsoft.Authorization/locks","name":"antidelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectSUSErg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectSUSE/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiaslivmmirg/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":"for + customer issue repro (snowflake)"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/storage-v2rt-repro/providers/Microsoft.Authorization/locks/DontDelete","type":"Microsoft.Authorization/locks","name":"DontDelete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qinkai-test/providers/Microsoft.Storage/storageAccounts/qinkaiwu/providers/Microsoft.Authorization/locks/privatepackage","type":"Microsoft.Authorization/locks","name":"privatepackage"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Authorization/locks/Do + Not Delete","type":"Microsoft.Authorization/locks","name":"Do Not Delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/t-yakou2/providers/Microsoft.Web/sites/WebAppPortal2CLI20200827092707/providers/Microsoft.Authorization/locks/dont_delete_me","type":"Microsoft.Authorization/locks","name":"dont_delete_me"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-elasticsan-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"}]}' headers: cache-control: - no-cache content-length: - - '1561' + - '13248' content-type: - application/json; charset=utf-8 date: - - Fri, 07 May 2021 06:58:36 GMT + - Fri, 19 May 2023 10:10:39 GMT expires: - '-1' pragma: @@ -3078,7 +7762,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -3090,10 +7774,7 @@ interactions: ParameterSetName: - --name -g --resource-name --resource-type User-Agent: - - python/3.8.3 (Windows-10-10.0.18362-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.23.0 - accept-language: - - en-US + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000003/providers/Microsoft.Authorization/locks/DATABOX_SERVICE?api-version=2016-09-01 response: @@ -3102,10 +7783,8 @@ interactions: headers: cache-control: - no-cache - content-length: - - '0' date: - - Fri, 07 May 2021 06:58:37 GMT + - Fri, 19 May 2023 10:10:40 GMT expires: - '-1' pragma: @@ -3117,6 +7796,6 @@ interactions: x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: - code: 200 - message: OK + code: 204 + message: No Content version: 1 diff --git a/src/databox/azext_databox/tests/latest/recordings/test_databox_custom_disk.yaml b/src/databox/azext_databox/tests/latest/recordings/test_databox_custom_disk.yaml new file mode 100644 index 00000000000..c5ace84562a --- /dev/null +++ b/src/databox/azext_databox/tests/latest/recordings/test_databox_custom_disk.yaml @@ -0,0 +1,2230 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --sku --contact-name --phone --email-list --street-address1 + --city --state-or-province --country --postal-code --company-name --storage-account + --resource-group-for-managed-disk --transfer-type --data-box-customer-disk + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001","name":"cli_test_databox000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_databox_custom_disk","date":"2023-05-19T08:55:11Z","module":"databox"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '375' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 May 2023 08:55:43 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: '{"location": "westus", "properties": {"details": {"contactDetails": {"contactName": + "Public SDK Test", "emailList": ["testing@microsoft.com"], "phone": "14258828080"}, + "dataImportDetails": [{"accountDetails": {"dataAccountType": "StorageAccount", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002"}}], + "jobDetailsType": "DataBoxCustomerDisk", "keyEncryptionKey": {"kekType": "MicrosoftManaged"}, + "shippingAddress": {"city": "Redmond", "companyName": "Microsoft", "country": + "US", "postalCode": "98052", "stateOrProvince": "WA", "streetAddress1": "1 MICROSOFT + WAY"}, "importDiskDetailsCollection": {"CLISERIAL789": {"bitLockerKey": "xxx", + "manifestFile": "SampleManifest.xml", "manifestHash": "xxxx"}}, "returnToCustomerPackageDetails": + {"carrierAccountNumber": "0000", "carrierName": "carrier1"}}, "transferType": + "ImportToAzure"}, "sku": {"name": "DataBoxCustomerDisk"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + Content-Length: + - '990' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --sku --contact-name --phone --email-list --street-address1 + --city --state-or-province --country --postal-code --company-name --storage-account + --resource-group-for-managed-disk --transfer-type --data-box-customer-disk + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:55:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --sku --contact-name --phone --email-list --street-address1 + --city --state-or-province --country --postal-code --company-name --storage-account + --resource-group-for-managed-disk --transfer-type --data-box-customer-disk + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:55:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --sku --contact-name --phone --email-list --street-address1 + --city --state-or-province --country --postal-code --company-name --storage-account + --resource-group-for-managed-disk --transfer-type --data-box-customer-disk + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:55:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --sku --contact-name --phone --email-list --street-address1 + --city --state-or-province --country --postal-code --company-name --storage-account + --resource-group-for-managed-disk --transfer-type --data-box-customer-disk + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003?api-version=2022-12-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"transferType\": \"ImportToAzure\"\ + ,\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"\ + isShippingAddressEditable\": true,\r\n \"reverseShippingDetailsUpdate\"\ + : \"NotSupported\",\r\n \"reverseTransportPreferenceUpdate\": \"NotSupported\"\ + ,\r\n \"isPrepareToShipEnabled\": false,\r\n \"status\": \"Created\"\ + ,\r\n \"startTime\": \"2023-05-19T08:55:46.2221278+00:00\",\r\n \"details\"\ + : {\r\n \"importDiskDetailsCollection\": {\r\n \"CLISERIAL789\"\ + : {\r\n \"manifestFile\": \"SampleManifest.xml\",\r\n \"\ + manifestHash\": \"xxxx\"\r\n }\r\n },\r\n \"returnToCustomerPackageDetails\"\ + : {\r\n \"carrierName\": \"carrier1\"\r\n },\r\n \"enableManifestBackup\"\ + : false,\r\n \"contactDetails\": {\r\n \"emailList\": [\r\n \ + \ \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\"\ + : [\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \ + \ \"sendNotification\": true\r\n },\r\n {\r\n \ + \ \"stageName\": \"DataCopy\",\r\n \"sendNotification\":\ + \ true\r\n },\r\n {\r\n \"stageName\": \"Created\"\ + ,\r\n \"sendNotification\": true\r\n },\r\n {\r\ + \n \"stageName\": \"ShippedToCustomer\",\r\n \"sendNotification\"\ + : true\r\n }\r\n ],\r\n \"contactName\": \"Public SDK\ + \ Test\",\r\n \"phone\": \"14258828080\"\r\n },\r\n \"shippingAddress\"\ + : {\r\n \"streetAddress1\": \"1 MICROSOFT WAY\",\r\n \"city\"\ + : \"Redmond\",\r\n \"stateOrProvince\": \"WA\",\r\n \"country\"\ + : \"US\",\r\n \"postalCode\": \"98052\",\r\n \"companyName\"\ + : \"Microsoft\",\r\n \"addressType\": \"None\"\r\n },\r\n \ + \ \"dataImportDetails\": [\r\n {\r\n \"logCollectionLevel\"\ + : \"Error\",\r\n \"accountDetails\": {\r\n \"storageAccountId\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ + ,\r\n \"dataAccountType\": \"StorageAccount\"\r\n }\r\n\ + \ }\r\n ],\r\n \"dataExportDetails\": [],\r\n \"jobDetailsType\"\ + : \"DataBoxCustomerDisk\",\r\n \"preferences\": {\r\n \"encryptionPreferences\"\ + : {\r\n \"doubleEncryption\": \"Disabled\"\r\n }\r\n \ + \ },\r\n \"reverseShippingDetails\": {},\r\n \"keyEncryptionKey\"\ + : {\r\n \"kekType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n\ + \ \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \ + \ \"scheduledDateTime\": \"0001-01-01T00:00:00+00:00\"\r\n },\r\n \ + \ \"isCancellableWithoutFee\": true\r\n },\r\n \"systemData\": {\r\n \ + \ \"createdBy\": \"v-jingszhang@microsoft.com\",\r\n \"createdByType\"\ + : \"User\",\r\n \"createdAt\": \"2023-05-19T08:55:46.1196951+00:00\",\r\ + \n \"lastModifiedBy\": \"v-jingszhang@microsoft.com\",\r\n \"lastModifiedByType\"\ + : \"User\",\r\n \"lastModifiedAt\": \"2023-05-19T08:55:46.1196951+00:00\"\ + \r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\ + \n \"name\": \"DataBoxCustomerDisk\"\r\n },\r\n \"identity\": {\r\n \ + \ \"type\": \"None\"\r\n },\r\n \"name\": \"job000003\",\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003\"\ + ,\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3143' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 May 2023 08:56:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"reason": "CancelTest"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job cancel + Connection: + - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --reason -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003/cancel?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 19 May 2023 08:56:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox000001/providers/Microsoft.DataBox/jobs/job000003?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:14 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:56:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:06 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:57:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:58:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:59:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:59:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:59:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:59:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 08:59:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:13 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:00:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:01:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:02:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:02:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:02:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:02:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:02:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:03:00 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:03:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - databox job delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name -y + User-Agent: + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox/locations/westus/operationResults/c6522cd7-141b-4b57-90ae-eb8130322926-deleteorder?api-version=2022-12-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 19 May 2023 09:03:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - lock delete + Connection: + - keep-alive + ParameterSetName: + - --name -g --resource-name --resource-type + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/locks?api-version=2016-09-01 + response: + body: + string: '{"value":[{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southeastasia/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":"contact + zhwen"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctestRG-sentinel-221011134813007315/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fypurview/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yantest/providers/Microsoft.Authorization/locks/templock","type":"Microsoft.Authorization/locks","name":"templock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lightning/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fybot/providers/Microsoft.Authorization/locks/delete-lock","type":"Microsoft.Authorization/locks","name":"delete-lock"},{"properties":{"level":"CanNotDelete","notes":"for + Asir"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/emerald-city-bookstore/providers/Microsoft.Authorization/locks/No-DELETE","type":"Microsoft.Authorization/locks","name":"No-DELETE"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/galleryappaccount/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/queuetest/providers/Microsoft.Storage/storageAccounts/qteststac/providers/Microsoft.Authorization/locks/l","type":"Microsoft.Authorization/locks","name":"l"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-rg/providers/Microsoft.Authorization/locks/test-databricks","type":"Microsoft.Authorization/locks","name":"test-databricks"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Authorization/locks/1","type":"Microsoft.Authorization/locks","name":"1"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.Storage/storageAccounts/hangstorage/providers/Microsoft.Authorization/locks/2","type":"Microsoft.Authorization/locks","name":"2"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/IT_acctestRG-ibt-24_acctest-IBT-0710-2_4ebedb5a-e3b1-4675-aa4c-3c160fe70907/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/shiying-rg/providers/Microsoft.Storage/storageAccounts/shiyingsa/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/shiying-rg/providers/Microsoft.Compute/virtualMachines/shiying-action-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrgtest1/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testkvv2rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-live-test/providers/Microsoft.Authorization/locks/can + not delete","type":"Microsoft.Authorization/locks","name":"can not delete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg2/providers/Microsoft.Authorization/locks/rg2","type":"Microsoft.Authorization/locks","name":"rg2"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg/providers/Microsoft.Authorization/locks/delete","type":"Microsoft.Authorization/locks","name":"delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/jiasli-azsecpack-testrg/providers/Microsoft.Compute/virtualMachines/jiasli-azsecpack-test/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_shiying-rg_GitHubActionsRunnersK8sCluster_westus/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-file-handle-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhiyihuang-rg-euap-east/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnect2rg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnect2/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhwen-domain/providers/Microsoft.Authorization/locks/zhwen","type":"Microsoft.Authorization/locks","name":"zhwen"},{"properties":{"level":"CanNotDelete","notes":"Prevent + the resources for live test from being deleted."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzurePowerShellLiveTest/providers/Microsoft.Authorization/locks/CannotDelete","type":"Microsoft.Authorization/locks","name":"CannotDelete"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_cli_loadbalance/providers/Microsoft.Authorization/locks/DoNotDelete","type":"Microsoft.Authorization/locks","name":"DoNotDelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Web/sites/webp2c/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/portal2cli/providers/Microsoft.Storage/storageAccounts/portal2clistorage/providers/Microsoft.Authorization/locks/lock","type":"Microsoft.Authorization/locks","name":"lock"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengtestsa/providers/Microsoft.Authorization/locks/salock","type":"Microsoft.Authorization/locks","name":"salock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/new-experiences/providers/Microsoft.Authorization/locks/NO-DELETE","type":"Microsoft.Authorization/locks","name":"NO-DELETE"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectRHELrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectRHEL/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-edge/providers/Microsoft.Storage/storageAccounts/azurecliedge/providers/Microsoft.Authorization/locks/azurecliedge-dl","type":"Microsoft.Authorization/locks","name":"azurecliedge-dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ethan-rg/providers/Microsoft.Authorization/locks/daily-work","type":"Microsoft.Authorization/locks","name":"daily-work"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureSDKTest_reserved/providers/Microsoft.Storage/storageAccounts/privatepackage/providers/Microsoft.Authorization/locks/private + package","type":"Microsoft.Authorization/locks","name":"private package"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nori-rg/providers/Microsoft.Authorization/locks/nori-lock","type":"Microsoft.Authorization/locks","name":"nori-lock"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xz3-test/providers/Microsoft.Authorization/locks/del","type":"Microsoft.Authorization/locks","name":"del"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectCentOSrg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectCentOS/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kairu-persist/providers/Microsoft.Authorization/locks/antidelete","type":"Microsoft.Authorization/locks","name":"antidelete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testsanmulticonnectSUSErg/providers/Microsoft.Compute/virtualMachines/testsanmulticonnectSUSE/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":"Data + Box Service to copy data from device to storage account."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002/providers/Microsoft.Authorization/locks/DATABOX_SERVICE","type":"Microsoft.Authorization/locks","name":"DATABOX_SERVICE"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiaslivmmirg/providers/Microsoft.Authorization/locks/dl","type":"Microsoft.Authorization/locks","name":"dl"},{"properties":{"level":"CanNotDelete","notes":"for + customer issue repro (snowflake)"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/storage-v2rt-repro/providers/Microsoft.Authorization/locks/DontDelete","type":"Microsoft.Authorization/locks","name":"DontDelete"},{"properties":{"level":"ReadOnly","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qinkai-test/providers/Microsoft.Storage/storageAccounts/qinkaiwu/providers/Microsoft.Authorization/locks/privatepackage","type":"Microsoft.Authorization/locks","name":"privatepackage"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Authorization/locks/Do + Not Delete","type":"Microsoft.Authorization/locks","name":"Do Not Delete"},{"properties":{"level":"CanNotDelete"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/t-yakou2/providers/Microsoft.Web/sites/WebAppPortal2CLI20200827092707/providers/Microsoft.Authorization/locks/dont_delete_me","type":"Microsoft.Authorization/locks","name":"dont_delete_me"},{"properties":{"level":"CanNotDelete","notes":""},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-elasticsan-rg/providers/Microsoft.Authorization/locks/nodelete","type":"Microsoft.Authorization/locks","name":"nodelete"}]}' + headers: + cache-control: + - no-cache + content-length: + - '13635' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 May 2023 09:03:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - lock delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name -g --resource-name --resource-type + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_databox000001/providers/Microsoft.Storage/storageAccounts/clitest000002/providers/Microsoft.Authorization/locks/DATABOX_SERVICE?api-version=2016-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 May 2023 09:03:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/databox/azext_databox/tests/latest/test_databox_scenario.py b/src/databox/azext_databox/tests/latest/test_databox_scenario.py index a19ecfbd149..cd258a0a37d 100644 --- a/src/databox/azext_databox/tests/latest/test_databox_scenario.py +++ b/src/databox/azext_databox/tests/latest/test_databox_scenario.py @@ -1,31 +1,28 @@ # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- -import os +from azure.cli.testsdk import * -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer, JMESPathCheck) - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -class DataBoxScenarioTest(ScenarioTest): +class DataboxScenario(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_databox') @StorageAccountPreparer(parameter_name='storage_account_1') @StorageAccountPreparer(parameter_name='storage_account_2') def test_databox(self, storage_account_1, storage_account_2): - job_name = self.create_random_name('job', 24) - job_name_2 = self.create_random_name('job', 24) self.kwargs.update({ - 'job_name': job_name, - 'job_name_2': job_name_2, + 'job_name': self.create_random_name('job', 24), + 'job_name_2': self.create_random_name('job', 24), + 'job_name_3': self.create_random_name('job', 24), 'storage_account_1': storage_account_1, - 'storage_account_2': storage_account_2 + 'storage_account_2': storage_account_2, + 'managed-rg': self.create_random_name('rg-', 10) }) - # Create a databox job with sku 'DataBox'. + # Create a databox job with sku 'DataBox' and transfer-type 'ImportToAzure'. self.cmd('databox job create ' '--resource-group {rg} ' '--name {job_name} ' @@ -42,25 +39,37 @@ def test_databox(self, storage_account_1, storage_account_2): '--company-name Microsoft ' '--storage-account {storage_account_1} {storage_account_2} ' '--staging-storage-account {storage_account_1} ' - '--resource-group-for-managed-disk rg-for-managed-disk', - checks=[JMESPathCheck('status', 'DeviceOrdered')]) + '--resource-group-for-managed-disk {managed-rg} ' + '--transfer-type ImportToAzure ' + '--kek-type MicrosoftManaged', + checks=[ + self.check('status', 'DeviceOrdered'), + self.check('transferType', 'ImportToAzure'), + self.check('details.keyEncryptionKey.kekType', 'MicrosoftManaged') + ]) self.cmd('databox job update ' '--resource-group {rg} ' '--name {job_name} ' '--contact-name "Public SDK Test 1" ' - '--email-list testing1@microsoft.com', - checks=[]) - - self.cmd('databox job show ' - '--resource-group {rg} ' - '--name {job_name}', + '--email-list testing1@microsoft.com ' + '--phone 14258828081', checks=[ - JMESPathCheck('name', job_name), - JMESPathCheck('isCancellable', True), - JMESPathCheck('isDeletable', False), - JMESPathCheck('details.contactDetails.contactName', 'Public SDK Test 1'), - JMESPathCheck('details.contactDetails.emailList[0]', 'testing1@microsoft.com')]) + self.check('details.contactDetails.contactName', 'Public SDK Test 1'), + self.check('details.contactDetails.emailList[0]', 'testing1@microsoft.com'), + self.check('details.contactDetails.phone', '14258828081') + ]) + + self.cmd('databox job show --resource-group {rg} --name {job_name}', checks=[ + self.check('name', '{job_name}'), + self.check('isCancellable', True), + self.check('isDeletable', False), + self.check('details.contactDetails.contactName', 'Public SDK Test 1'), + self.check('details.contactDetails.emailList[0]', 'testing1@microsoft.com'), + self.check('status', 'DeviceOrdered'), + self.check('transferType', 'ImportToAzure'), + self.check('details.keyEncryptionKey.kekType', 'MicrosoftManaged') + ]) self.cmd('databox job list ' '--resource-group {rg}', @@ -77,9 +86,9 @@ def test_databox(self, storage_account_1, storage_account_2): '--resource-group {rg} ' '--name {job_name}', checks=[ - JMESPathCheck('name', job_name), - JMESPathCheck('isCancellable', False), - JMESPathCheck('isDeletable', True)]) + self.check('name', '{job_name}'), + self.check('isCancellable', False), + self.check('isDeletable', True)]) self.cmd('databox job delete ' '--resource-group {rg} ' @@ -108,8 +117,10 @@ def test_databox(self, storage_account_1, storage_account_2): '--country US ' '--postal-code 98052 ' '--company-name Microsoft ' - '--storage-account {storage_account_1}', - checks=[JMESPathCheck('status', 'DeviceOrdered')]) + '--storage-account {storage_account_1} ' + '--transfer-type ImportToAzure', + checks=[JMESPathCheck('status', 'DeviceOrdered')], + ) self.cmd('databox job cancel ' '--resource-group {rg} ' @@ -129,6 +140,35 @@ def test_databox(self, storage_account_1, storage_account_2): '--name {job_name_2}', expect_failure=True) + # Create databox job with transfer-type 'ExportFromAzure'. + self.cmd('databox job create ' + '--resource-group {rg} ' + '--name {job_name_3} ' + '--location westus ' + '--sku DataBox ' + '--expected-data-size 1 ' + '--contact-name "Public SDK Test" ' + '--phone 14258828080 ' + '--email-list testing@microsoft.com ' + '--street-address1 "1 MICROSOFT WAY" ' + '--city Redmond ' + '--state-or-province WA ' + '--country US ' + '--postal-code 98052 ' + '--company-name Microsoft ' + '--storage-account {storage_account_1} ' + '--transfer-type ExportFromAzure ' + '--transfer-configuration-type TransferAll', + checks=[ + self.check('status', 'DeviceOrdered'), + self.check('transferType', 'ExportFromAzure'), + self.check('details.dataExportDetails[0].transferConfiguration.transferConfigurationType', + 'TransferAll') + ]) + + self.cmd('databox job cancel --resource-group {rg} --name {job_name_3} --reason "CancelTest" -y') + self.cmd('databox job delete --resource-group {rg} --name {job_name_3} -y') + # DataBox service will create a lock 'DATABOX_SERVICE' on the storage account under the resource group when creating a job. In order to clean up the resource group, we need delete the lock first. self.cmd('lock delete ' '--name DATABOX_SERVICE ' @@ -141,3 +181,37 @@ def test_databox(self, storage_account_1, storage_account_2): '-g {rg} ' '--resource-name {storage_account_2} ' '--resource-type Microsoft.Storage/storageAccounts') + + @ResourceGroupPreparer(name_prefix='cli_test_databox') + @StorageAccountPreparer(parameter_name='storage_account_1') + def test_databox_custom_disk(self, storage_account_1): + self.kwargs.update({ + 'job_name': self.create_random_name('job', 24), + 'storage_account_1': storage_account_1, + 'managed-rg': self.create_random_name('rg-', 10), + 'device_serial_number': 'CLISERIAL789' + }) + self.cmd('databox job create ' + '--resource-group {rg} ' + '--name {job_name} ' + '--sku DataBoxCustomerDisk ' + '--contact-name "Public SDK Test" ' + '--phone 14258828080 ' + '--email-list testing@microsoft.com ' + '--street-address1 "1 MICROSOFT WAY" ' + '--city Redmond ' + '--state-or-province WA ' + '--country US ' + '--postal-code 98052 ' + '--company-name Microsoft ' + '--storage-account {storage_account_1} ' + '--resource-group-for-managed-disk {managed-rg} ' + '--transfer-type ImportToAzure ' + '--data-box-customer-disk {{returnToCustomerPackageDetails:{{carrierName:carrier1,carrierAccountNumber:0000}},importDiskDetailsCollection:{{{device_serial_number}:{{ManifestFile:SampleManifest.xml,ManifestHash:xxxx,BitLockerKey:xxx}}}}}}', + checks=[ + self.check('transferType', 'ImportToAzure'), + self.check('details.returnToCustomerPackageDetails.carrierName', 'carrier1') + ]) + self.cmd('databox job cancel --resource-group {rg} --name {job_name} --reason "CancelTest" -y') + self.cmd('databox job delete --resource-group {rg} --name {job_name} -y') + self.cmd('lock delete --name DATABOX_SERVICE -g {rg} --resource-name {storage_account_1} --resource-type Microsoft.Storage/storageAccounts') diff --git a/src/databox/azext_databox/vendored_sdks/databox/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/__init__.py deleted file mode 100644 index f2d0b24d67c..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._data_box_management_client import DataBoxManagementClient -__all__ = ['DataBoxManagementClient'] - -try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass diff --git a/src/databox/azext_databox/vendored_sdks/databox/_configuration.py b/src/databox/azext_databox/vendored_sdks/databox/_configuration.py deleted file mode 100644 index 5b8f07cf262..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -from typing import Any - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -from ._version import VERSION - - -class DataBoxManagementClientConfiguration(Configuration): - """Configuration for DataBoxManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(DataBoxManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'azure-mgmt-databox/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/databox/azext_databox/vendored_sdks/databox/_data_box_management_client.py b/src/databox/azext_databox/vendored_sdks/databox/_data_box_management_client.py deleted file mode 100644 index aa0fa23980a..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/_data_box_management_client.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from azure.mgmt.core import ARMPipelineClient -from msrest import Serializer, Deserializer - -from azure.profiles import KnownProfiles, ProfileDefinition -from azure.profiles.multiapiclient import MultiApiClientMixin -from ._configuration import DataBoxManagementClientConfiguration - -class _SDKClient(object): - def __init__(self, *args, **kwargs): - """This is a fake class to support current implemetation of MultiApiClientMixin." - Will be removed in final version of multiapi azure-core based client - """ - pass - -class DataBoxManagementClient(MultiApiClientMixin, _SDKClient): - """The DataBox Client. - - This ready contains multiple API versions, to help you deal with all of the Azure clouds - (Azure Stack, Azure Government, Azure China, etc.). - By default, it uses the latest API version available on public Azure. - For production, you should stick to a particular api-version and/or profile. - The profile sets a mapping between an operation group and its API version. - The api-version parameter sets the default API version if the operation - group is not described in the profile. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - :param str api_version: API version to use if no profile is provided, or if - missing in profile. - :param str base_url: Service URL - :param profile: A profile definition, from KnownProfiles to dict. - :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - DEFAULT_API_VERSION = '2019-09-01' - _PROFILE_TAG = "azure.mgmt.databox.DataBoxManagementClient" - LATEST_PROFILE = ProfileDefinition({ - _PROFILE_TAG: { - None: DEFAULT_API_VERSION, - }}, - _PROFILE_TAG + " latest" - ) - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - api_version=None, - base_url=None, - profile=KnownProfiles.default, - **kwargs # type: Any - ): - if not base_url: - base_url = 'https://management.azure.com' - self._config = DataBoxManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - super(DataBoxManagementClient, self).__init__( - api_version=api_version, - profile=profile - ) - - @classmethod - def _models_dict(cls, api_version): - return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} - - @classmethod - def models(cls, api_version=DEFAULT_API_VERSION): - """Module depends on the API version: - - * 2018-01-01: :mod:`v2018_01_01.models` - * 2019-09-01: :mod:`v2019_09_01.models` - * 2020-04-01: :mod:`v2020_04_01.models` - * 2020-11-01: :mod:`v2020_11_01.models` - """ - if api_version == '2018-01-01': - from .v2018_01_01 import models - return models - elif api_version == '2019-09-01': - from .v2019_09_01 import models - return models - elif api_version == '2020-04-01': - from .v2020_04_01 import models - return models - elif api_version == '2020-11-01': - from .v2020_11_01 import models - return models - raise ValueError("API version {} is not available".format(api_version)) - - @property - def jobs(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`JobsOperations` - * 2019-09-01: :class:`JobsOperations` - * 2020-04-01: :class:`JobsOperations` - * 2020-11-01: :class:`JobsOperations` - """ - api_version = self._get_api_version('jobs') - if api_version == '2018-01-01': - from .v2018_01_01.operations import JobsOperations as OperationClass - elif api_version == '2019-09-01': - from .v2019_09_01.operations import JobsOperations as OperationClass - elif api_version == '2020-04-01': - from .v2020_04_01.operations import JobsOperations as OperationClass - elif api_version == '2020-11-01': - from .v2020_11_01.operations import JobsOperations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'jobs'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - @property - def operations(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`Operations` - * 2019-09-01: :class:`Operations` - * 2020-04-01: :class:`Operations` - * 2020-11-01: :class:`Operations` - """ - api_version = self._get_api_version('operations') - if api_version == '2018-01-01': - from .v2018_01_01.operations import Operations as OperationClass - elif api_version == '2019-09-01': - from .v2019_09_01.operations import Operations as OperationClass - elif api_version == '2020-04-01': - from .v2020_04_01.operations import Operations as OperationClass - elif api_version == '2020-11-01': - from .v2020_11_01.operations import Operations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - @property - def service(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`ServiceOperations` - * 2019-09-01: :class:`ServiceOperations` - * 2020-04-01: :class:`ServiceOperations` - * 2020-11-01: :class:`ServiceOperations` - """ - api_version = self._get_api_version('service') - if api_version == '2018-01-01': - from .v2018_01_01.operations import ServiceOperations as OperationClass - elif api_version == '2019-09-01': - from .v2019_09_01.operations import ServiceOperations as OperationClass - elif api_version == '2020-04-01': - from .v2020_04_01.operations import ServiceOperations as OperationClass - elif api_version == '2020-11-01': - from .v2020_11_01.operations import ServiceOperations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'service'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - def close(self): - self._client.close() - def __enter__(self): - self._client.__enter__() - return self - def __exit__(self, *exc_details): - self._client.__exit__(*exc_details) diff --git a/src/databox/azext_databox/vendored_sdks/databox/aio/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/aio/__init__.py deleted file mode 100644 index bb6b75a72db..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/aio/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._data_box_management_client import DataBoxManagementClient -__all__ = ['DataBoxManagementClient'] diff --git a/src/databox/azext_databox/vendored_sdks/databox/aio/_configuration.py b/src/databox/azext_databox/vendored_sdks/databox/aio/_configuration.py deleted file mode 100644 index 71fd4699f32..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/aio/_configuration.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -from typing import Any - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -from .._version import VERSION - - -class DataBoxManagementClientConfiguration(Configuration): - """Configuration for DataBoxManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - """ - - def __init__( - self, - credential, # type: "AsyncTokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ) -> None: - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(DataBoxManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'azure-mgmt-databox/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs: Any - ) -> None: - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/databox/azext_databox/vendored_sdks/databox/aio/_data_box_management_client.py b/src/databox/azext_databox/vendored_sdks/databox/aio/_data_box_management_client.py deleted file mode 100644 index 3d3baff1574..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/aio/_data_box_management_client.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Serializer, Deserializer - -from azure.profiles import KnownProfiles, ProfileDefinition -from azure.profiles.multiapiclient import MultiApiClientMixin -from ._configuration import DataBoxManagementClientConfiguration - -class _SDKClient(object): - def __init__(self, *args, **kwargs): - """This is a fake class to support current implemetation of MultiApiClientMixin." - Will be removed in final version of multiapi azure-core based client - """ - pass - -class DataBoxManagementClient(MultiApiClientMixin, _SDKClient): - """The DataBox Client. - - This ready contains multiple API versions, to help you deal with all of the Azure clouds - (Azure Stack, Azure Government, Azure China, etc.). - By default, it uses the latest API version available on public Azure. - For production, you should stick to a particular api-version and/or profile. - The profile sets a mapping between an operation group and its API version. - The api-version parameter sets the default API version if the operation - group is not described in the profile. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - :param str api_version: API version to use if no profile is provided, or if - missing in profile. - :param str base_url: Service URL - :param profile: A profile definition, from KnownProfiles to dict. - :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - DEFAULT_API_VERSION = '2020-11-01' - _PROFILE_TAG = "azure.mgmt.databox.DataBoxManagementClient" - LATEST_PROFILE = ProfileDefinition({ - _PROFILE_TAG: { - None: DEFAULT_API_VERSION, - }}, - _PROFILE_TAG + " latest" - ) - - def __init__( - self, - credential, # type: "AsyncTokenCredential" - subscription_id, # type: str - api_version=None, - base_url=None, - profile=KnownProfiles.default, - **kwargs # type: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = DataBoxManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - super(DataBoxManagementClient, self).__init__( - api_version=api_version, - profile=profile - ) - - @classmethod - def _models_dict(cls, api_version): - return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} - - @classmethod - def models(cls, api_version=DEFAULT_API_VERSION): - """Module depends on the API version: - - * 2018-01-01: :mod:`v2018_01_01.models` - * 2019-09-01: :mod:`v2019_09_01.models` - * 2020-04-01: :mod:`v2020_04_01.models` - * 2020-11-01: :mod:`v2020_11_01.models` - """ - if api_version == '2018-01-01': - from ..v2018_01_01 import models - return models - elif api_version == '2019-09-01': - from ..v2019_09_01 import models - return models - elif api_version == '2020-04-01': - from ..v2020_04_01 import models - return models - elif api_version == '2020-11-01': - from ..v2020_11_01 import models - return models - raise ValueError("API version {} is not available".format(api_version)) - - @property - def jobs(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`JobsOperations` - * 2019-09-01: :class:`JobsOperations` - * 2020-04-01: :class:`JobsOperations` - * 2020-11-01: :class:`JobsOperations` - """ - api_version = self._get_api_version('jobs') - if api_version == '2018-01-01': - from ..v2018_01_01.aio.operations import JobsOperations as OperationClass - elif api_version == '2019-09-01': - from ..v2019_09_01.aio.operations import JobsOperations as OperationClass - elif api_version == '2020-04-01': - from ..v2020_04_01.aio.operations import JobsOperations as OperationClass - elif api_version == '2020-11-01': - from ..v2020_11_01.aio.operations import JobsOperations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'jobs'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - @property - def operations(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`Operations` - * 2019-09-01: :class:`Operations` - * 2020-04-01: :class:`Operations` - * 2020-11-01: :class:`Operations` - """ - api_version = self._get_api_version('operations') - if api_version == '2018-01-01': - from ..v2018_01_01.aio.operations import Operations as OperationClass - elif api_version == '2019-09-01': - from ..v2019_09_01.aio.operations import Operations as OperationClass - elif api_version == '2020-04-01': - from ..v2020_04_01.aio.operations import Operations as OperationClass - elif api_version == '2020-11-01': - from ..v2020_11_01.aio.operations import Operations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - @property - def service(self): - """Instance depends on the API version: - - * 2018-01-01: :class:`ServiceOperations` - * 2019-09-01: :class:`ServiceOperations` - * 2020-04-01: :class:`ServiceOperations` - * 2020-11-01: :class:`ServiceOperations` - """ - api_version = self._get_api_version('service') - if api_version == '2018-01-01': - from ..v2018_01_01.aio.operations import ServiceOperations as OperationClass - elif api_version == '2019-09-01': - from ..v2019_09_01.aio.operations import ServiceOperations as OperationClass - elif api_version == '2020-04-01': - from ..v2020_04_01.aio.operations import ServiceOperations as OperationClass - elif api_version == '2020-11-01': - from ..v2020_11_01.aio.operations import ServiceOperations as OperationClass - else: - raise ValueError("API version {} does not have operation group 'service'".format(api_version)) - return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) - - async def close(self): - await self._client.close() - async def __aenter__(self): - await self._client.__aenter__() - return self - async def __aexit__(self, *exc_details): - await self._client.__aexit__(*exc_details) diff --git a/src/databox/azext_databox/vendored_sdks/databox/py.typed b/src/databox/azext_databox/vendored_sdks/databox/py.typed deleted file mode 100644 index e5aff4f83af..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561. \ No newline at end of file diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/__init__.py deleted file mode 100644 index ae972ed54f8..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._data_box_management_client import DataBoxManagementClient -from ._version import VERSION - -__version__ = VERSION -__all__ = ['DataBoxManagementClient'] - -try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_configuration.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_configuration.py deleted file mode 100644 index ff931804797..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_configuration.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - from azure.core.credentials import TokenCredential - - -class DataBoxManagementClientConfiguration(Configuration): - """Configuration for DataBoxManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(DataBoxManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2019-09-01" - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'mgmt-databox/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_data_box_management_client.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_data_box_management_client.py deleted file mode 100644 index e696cb06a78..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_data_box_management_client.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - - from azure.core.credentials import TokenCredential - -from ._configuration import DataBoxManagementClientConfiguration -from .operations import Operations -from .operations import JobsOperations -from .operations import ServiceOperations -from . import models - - -class DataBoxManagementClient(object): - """The DataBox Client. - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.databox.operations.Operations - :ivar jobs: JobsOperations operations - :vartype jobs: azure.mgmt.databox.operations.JobsOperations - :ivar service: ServiceOperations operations - :vartype service: azure.mgmt.databox.operations.ServiceOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None - if not base_url: - base_url = 'https://management.azure.com' - self._config = DataBoxManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.jobs = JobsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.service = ServiceOperations( - self._client, self._config, self._serialize, self._deserialize) - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> DataBoxManagementClient - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_metadata.json b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_metadata.json deleted file mode 100644 index 10c0c55446a..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/_metadata.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "chosen_version": "2019-09-01", - "total_api_version_list": ["2019-09-01"], - "client": { - "name": "DataBoxManagementClient", - "filename": "_data_box_management_client", - "description": "The DataBox Client.", - "base_url": "\u0027https://management.azure.com\u0027", - "custom_base_url": null, - "azure_arm": true, - "has_lro_operations": true, - "client_side_validation": false - }, - "global_parameters": { - "sync": { - "credential": { - "signature": "credential, # type: \"TokenCredential\"", - "description": "Credential needed for the client to connect to Azure.", - "docstring_type": "~azure.core.credentials.TokenCredential", - "required": true - }, - "subscription_id": { - "signature": "subscription_id, # type: str", - "description": "The Subscription Id.", - "docstring_type": "str", - "required": true - } - }, - "async": { - "credential": { - "signature": "credential, # type: \"AsyncTokenCredential\"", - "description": "Credential needed for the client to connect to Azure.", - "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", - "required": true - }, - "subscription_id": { - "signature": "subscription_id, # type: str", - "description": "The Subscription Id.", - "docstring_type": "str", - "required": true - } - }, - "constant": { - }, - "call": "credential, subscription_id" - }, - "config": { - "credential": true, - "credential_scopes": ["https://management.azure.com/.default"], - "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true, - "credential_key_header_name": null - }, - "operation_groups": { - "operations": "Operations", - "jobs": "JobsOperations", - "service": "ServiceOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" -} \ No newline at end of file diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/__init__.py deleted file mode 100644 index bb6b75a72db..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._data_box_management_client import DataBoxManagementClient -__all__ = ['DataBoxManagementClient'] diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_configuration.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_configuration.py deleted file mode 100644 index bd265586067..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_configuration.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class DataBoxManagementClientConfiguration(Configuration): - """Configuration for DataBoxManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - **kwargs: Any - ) -> None: - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(DataBoxManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2019-09-01" - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'mgmt-databox/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs: Any - ) -> None: - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_data_box_management_client.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_data_box_management_client.py deleted file mode 100644 index b192ff7cd77..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/_data_box_management_client.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional, TYPE_CHECKING - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -from ._configuration import DataBoxManagementClientConfiguration -from .operations import Operations -from .operations import JobsOperations -from .operations import ServiceOperations -from .. import models - - -class DataBoxManagementClient(object): - """The DataBox Client. - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.databox.aio.operations.Operations - :ivar jobs: JobsOperations operations - :vartype jobs: azure.mgmt.databox.aio.operations.JobsOperations - :ivar service: ServiceOperations operations - :vartype service: azure.mgmt.databox.aio.operations.ServiceOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The Subscription Id. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = DataBoxManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.jobs = JobsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.service = ServiceOperations( - self._client, self._config, self._serialize, self._deserialize) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "DataBoxManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/__init__.py deleted file mode 100644 index 9c8fa7a8253..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._operations import Operations -from ._jobs_operations import JobsOperations -from ._service_operations import ServiceOperations - -__all__ = [ - 'Operations', - 'JobsOperations', - 'ServiceOperations', -] diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_jobs_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_jobs_operations.py deleted file mode 100644 index f01a52d0a1a..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_jobs_operations.py +++ /dev/null @@ -1,835 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class JobsOperations: - """JobsOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["_models.JobResourceList"]: - """Lists all the jobs available under the subscription. - - :param skip_token: $skipToken is supported on Get list of jobs, which provides the next page in - the list of jobs. - :type skip_token: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either JobResourceList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.JobResourceList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResourceList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('JobResourceList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs'} # type: ignore - - def list_by_resource_group( - self, - resource_group_name: str, - skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["_models.JobResourceList"]: - """Lists all the jobs available under the given resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param skip_token: $skipToken is supported on Get list of jobs, which provides the next page in - the list of jobs. - :type skip_token: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either JobResourceList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.JobResourceList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResourceList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('JobResourceList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs'} # type: ignore - - async def get( - self, - resource_group_name: str, - job_name: str, - expand: Optional[str] = None, - **kwargs - ) -> "_models.JobResource": - """Gets information about the specified job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param expand: $expand is supported on details parameter for job, which provides details on the - job stages. - :type expand: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: JobResource, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.JobResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def _create_initial( - self, - resource_group_name: str, - job_name: str, - job_resource: "_models.JobResource", - **kwargs - ) -> Optional["_models.JobResource"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.JobResource"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(job_resource, 'JobResource') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def begin_create( - self, - resource_group_name: str, - job_name: str, - job_resource: "_models.JobResource", - **kwargs - ) -> AsyncLROPoller["_models.JobResource"]: - """Creates a new job with the specified parameters. Existing job cannot be updated with this API - and should instead be updated with the Update job API. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param job_resource: Job details from request body. - :type job_resource: ~azure.mgmt.databox.models.JobResource - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either JobResource or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.databox.models.JobResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._create_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_resource=job_resource, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - job_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def begin_delete( - self, - resource_group_name: str, - job_name: str, - **kwargs - ) -> AsyncLROPoller[None]: - """Deletes a job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - job_name=job_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - job_name: str, - job_resource_update_parameter: "_models.JobResourceUpdateParameter", - if_match: Optional[str] = None, - **kwargs - ) -> Optional["_models.JobResource"]: - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.JobResource"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - if if_match is not None: - header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str') - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(job_resource_update_parameter, 'JobResourceUpdateParameter') - body_content_kwargs['content'] = body_content - request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def begin_update( - self, - resource_group_name: str, - job_name: str, - job_resource_update_parameter: "_models.JobResourceUpdateParameter", - if_match: Optional[str] = None, - **kwargs - ) -> AsyncLROPoller["_models.JobResource"]: - """Updates the properties of an existing job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param job_resource_update_parameter: Job update parameters from request body. - :type job_resource_update_parameter: ~azure.mgmt.databox.models.JobResourceUpdateParameter - :param if_match: Defines the If-Match condition. The patch will be performed only if the ETag - of the job on the server matches this value. - :type if_match: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either JobResource or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.databox.models.JobResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_resource_update_parameter=job_resource_update_parameter, - if_match=if_match, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - async def book_shipment_pick_up( - self, - resource_group_name: str, - job_name: str, - shipment_pick_up_request: "_models.ShipmentPickUpRequest", - **kwargs - ) -> "_models.ShipmentPickUpResponse": - """Book shipment pick up. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param shipment_pick_up_request: Details of shipment pick up request. - :type shipment_pick_up_request: ~azure.mgmt.databox.models.ShipmentPickUpRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ShipmentPickUpResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ShipmentPickUpResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ShipmentPickUpResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.book_shipment_pick_up.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(shipment_pick_up_request, 'ShipmentPickUpRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ShipmentPickUpResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - book_shipment_pick_up.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp'} # type: ignore - - async def cancel( - self, - resource_group_name: str, - job_name: str, - cancellation_reason: "_models.CancellationReason", - **kwargs - ) -> None: - """CancelJob. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param cancellation_reason: Reason for cancellation. - :type cancellation_reason: ~azure.mgmt.databox.models.CancellationReason - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.cancel.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cancellation_reason, 'CancellationReason') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel'} # type: ignore - - def list_credentials( - self, - resource_group_name: str, - job_name: str, - **kwargs - ) -> AsyncIterable["_models.UnencryptedCredentialsList"]: - """This method gets the unencrypted secrets related to the job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either UnencryptedCredentialsList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.UnencryptedCredentialsList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.UnencryptedCredentialsList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_credentials.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('UnencryptedCredentialsList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_operations.py deleted file mode 100644 index bd99838be8c..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_operations.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class Operations: - """Operations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - **kwargs - ) -> AsyncIterable["_models.OperationList"]: - """This method gets all the operations. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.OperationList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('OperationList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.DataBox/operations'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_service_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_service_operations.py deleted file mode 100644 index a07ce55b508..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/aio/operations/_service_operations.py +++ /dev/null @@ -1,462 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class ServiceOperations: - """ServiceOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list_available_skus( - self, - location: str, - available_sku_request: "_models.AvailableSkuRequest", - **kwargs - ) -> AsyncIterable["_models.AvailableSkusResult"]: - """This method provides the list of available skus for the given subscription and location. - - :param location: The location of the resource. - :type location: str - :param available_sku_request: Filters for showing the available skus. - :type available_sku_request: ~azure.mgmt.databox.models.AvailableSkuRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either AvailableSkusResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.AvailableSkusResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableSkusResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = "application/json" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_available_skus.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('AvailableSkusResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_available_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/availableSkus'} # type: ignore - - def list_available_skus_by_resource_group( - self, - resource_group_name: str, - location: str, - available_sku_request: "_models.AvailableSkuRequest", - **kwargs - ) -> AsyncIterable["_models.AvailableSkusResult"]: - """This method provides the list of available skus for the given subscription, resource group and - location. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param location: The location of the resource. - :type location: str - :param available_sku_request: Filters for showing the available skus. - :type available_sku_request: ~azure.mgmt.databox.models.AvailableSkuRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either AvailableSkusResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.databox.models.AvailableSkusResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableSkusResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = "application/json" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_available_skus_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('AvailableSkusResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_available_skus_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus'} # type: ignore - - async def validate_address( - self, - location: str, - validate_address: "_models.ValidateAddress", - **kwargs - ) -> "_models.AddressValidationOutput": - """[DEPRECATED NOTICE: This operation will soon be removed] This method validates the customer - shipping address and provide alternate addresses if any. - - :param location: The location of the resource. - :type location: str - :param validate_address: Shipping address of the customer. - :type validate_address: ~azure.mgmt.databox.models.ValidateAddress - :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddressValidationOutput, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.AddressValidationOutput - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddressValidationOutput"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_address.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validate_address, 'ValidateAddress') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('AddressValidationOutput', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_address.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress'} # type: ignore - - async def validate_inputs_by_resource_group( - self, - resource_group_name: str, - location: str, - validation_request: "_models.ValidationRequest", - **kwargs - ) -> "_models.ValidationResponse": - """This method does all necessary pre-job creation validation under resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param location: The location of the resource. - :type location: str - :param validation_request: Inputs of the customer. - :type validation_request: ~azure.mgmt.databox.models.ValidationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ValidationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ValidationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_inputs_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validation_request, 'ValidationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ValidationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_inputs_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs'} # type: ignore - - async def validate_inputs( - self, - location: str, - validation_request: "_models.ValidationRequest", - **kwargs - ) -> "_models.ValidationResponse": - """This method does all necessary pre-job creation validation under subscription. - - :param location: The location of the resource. - :type location: str - :param validation_request: Inputs of the customer. - :type validation_request: ~azure.mgmt.databox.models.ValidationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ValidationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ValidationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_inputs.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validation_request, 'ValidationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ValidationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_inputs.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs'} # type: ignore - - async def region_configuration( - self, - location: str, - region_configuration_request: "_models.RegionConfigurationRequest", - **kwargs - ) -> "_models.RegionConfigurationResponse": - """This API provides configuration details specific to given region/location. - - :param location: The location of the resource. - :type location: str - :param region_configuration_request: Request body to get the configuration for the region. - :type region_configuration_request: ~azure.mgmt.databox.models.RegionConfigurationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: RegionConfigurationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.RegionConfigurationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.RegionConfigurationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.region_configuration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(region_configuration_request, 'RegionConfigurationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('RegionConfigurationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - region_configuration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/__init__.py deleted file mode 100644 index 84b34d519a6..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/__init__.py +++ /dev/null @@ -1,302 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import AccountCredentialDetails - from ._models_py3 import AddressValidationOutput - from ._models_py3 import AddressValidationProperties - from ._models_py3 import ApplianceNetworkConfiguration - from ._models_py3 import ArmBaseObject - from ._models_py3 import AvailableSkuRequest - from ._models_py3 import AvailableSkusResult - from ._models_py3 import CancellationReason - from ._models_py3 import CloudError - from ._models_py3 import ContactDetails - from ._models_py3 import CopyLogDetails - from ._models_py3 import CopyProgress - from ._models_py3 import CreateJobValidations - from ._models_py3 import CreateOrderLimitForSubscriptionValidationRequest - from ._models_py3 import CreateOrderLimitForSubscriptionValidationResponseProperties - from ._models_py3 import DataBoxAccountCopyLogDetails - from ._models_py3 import DataBoxDiskCopyLogDetails - from ._models_py3 import DataBoxDiskCopyProgress - from ._models_py3 import DataBoxDiskJobDetails - from ._models_py3 import DataBoxDiskJobSecrets - from ._models_py3 import DataBoxHeavyAccountCopyLogDetails - from ._models_py3 import DataBoxHeavyJobDetails - from ._models_py3 import DataBoxHeavyJobSecrets - from ._models_py3 import DataBoxHeavySecret - from ._models_py3 import DataBoxJobDetails - from ._models_py3 import DataBoxScheduleAvailabilityRequest - from ._models_py3 import DataBoxSecret - from ._models_py3 import DataDestinationDetailsValidationRequest - from ._models_py3 import DataDestinationDetailsValidationResponseProperties - from ._models_py3 import DataboxJobSecrets - from ._models_py3 import DcAccessSecurityCode - from ._models_py3 import DestinationAccountDetails - from ._models_py3 import DestinationManagedDiskDetails - from ._models_py3 import DestinationStorageAccountDetails - from ._models_py3 import DestinationToServiceLocationMap - from ._models_py3 import DiskScheduleAvailabilityRequest - from ._models_py3 import DiskSecret - from ._models_py3 import Error - from ._models_py3 import HeavyScheduleAvailabilityRequest - from ._models_py3 import JobDeliveryInfo - from ._models_py3 import JobDetails - from ._models_py3 import JobErrorDetails - from ._models_py3 import JobResource - from ._models_py3 import JobResourceList - from ._models_py3 import JobResourceUpdateParameter - from ._models_py3 import JobSecrets - from ._models_py3 import JobStages - from ._models_py3 import NotificationPreference - from ._models_py3 import Operation - from ._models_py3 import OperationDisplay - from ._models_py3 import OperationList - from ._models_py3 import PackageShippingDetails - from ._models_py3 import Preferences - from ._models_py3 import PreferencesValidationRequest - from ._models_py3 import PreferencesValidationResponseProperties - from ._models_py3 import RegionConfigurationRequest - from ._models_py3 import RegionConfigurationResponse - from ._models_py3 import Resource - from ._models_py3 import ScheduleAvailabilityRequest - from ._models_py3 import ScheduleAvailabilityResponse - from ._models_py3 import ShareCredentialDetails - from ._models_py3 import ShipmentPickUpRequest - from ._models_py3 import ShipmentPickUpResponse - from ._models_py3 import ShippingAddress - from ._models_py3 import Sku - from ._models_py3 import SkuAvailabilityValidationRequest - from ._models_py3 import SkuAvailabilityValidationResponseProperties - from ._models_py3 import SkuCapacity - from ._models_py3 import SkuCost - from ._models_py3 import SkuInformation - from ._models_py3 import SubscriptionIsAllowedToCreateJobValidationRequest - from ._models_py3 import SubscriptionIsAllowedToCreateJobValidationResponseProperties - from ._models_py3 import TransportAvailabilityDetails - from ._models_py3 import TransportAvailabilityRequest - from ._models_py3 import TransportAvailabilityResponse - from ._models_py3 import TransportPreferences - from ._models_py3 import UnencryptedCredentials - from ._models_py3 import UnencryptedCredentialsList - from ._models_py3 import UpdateJobDetails - from ._models_py3 import ValidateAddress - from ._models_py3 import ValidationInputRequest - from ._models_py3 import ValidationInputResponse - from ._models_py3 import ValidationRequest - from ._models_py3 import ValidationResponse -except (SyntaxError, ImportError): - from ._models import AccountCredentialDetails # type: ignore - from ._models import AddressValidationOutput # type: ignore - from ._models import AddressValidationProperties # type: ignore - from ._models import ApplianceNetworkConfiguration # type: ignore - from ._models import ArmBaseObject # type: ignore - from ._models import AvailableSkuRequest # type: ignore - from ._models import AvailableSkusResult # type: ignore - from ._models import CancellationReason # type: ignore - from ._models import CloudError # type: ignore - from ._models import ContactDetails # type: ignore - from ._models import CopyLogDetails # type: ignore - from ._models import CopyProgress # type: ignore - from ._models import CreateJobValidations # type: ignore - from ._models import CreateOrderLimitForSubscriptionValidationRequest # type: ignore - from ._models import CreateOrderLimitForSubscriptionValidationResponseProperties # type: ignore - from ._models import DataBoxAccountCopyLogDetails # type: ignore - from ._models import DataBoxDiskCopyLogDetails # type: ignore - from ._models import DataBoxDiskCopyProgress # type: ignore - from ._models import DataBoxDiskJobDetails # type: ignore - from ._models import DataBoxDiskJobSecrets # type: ignore - from ._models import DataBoxHeavyAccountCopyLogDetails # type: ignore - from ._models import DataBoxHeavyJobDetails # type: ignore - from ._models import DataBoxHeavyJobSecrets # type: ignore - from ._models import DataBoxHeavySecret # type: ignore - from ._models import DataBoxJobDetails # type: ignore - from ._models import DataBoxScheduleAvailabilityRequest # type: ignore - from ._models import DataBoxSecret # type: ignore - from ._models import DataDestinationDetailsValidationRequest # type: ignore - from ._models import DataDestinationDetailsValidationResponseProperties # type: ignore - from ._models import DataboxJobSecrets # type: ignore - from ._models import DcAccessSecurityCode # type: ignore - from ._models import DestinationAccountDetails # type: ignore - from ._models import DestinationManagedDiskDetails # type: ignore - from ._models import DestinationStorageAccountDetails # type: ignore - from ._models import DestinationToServiceLocationMap # type: ignore - from ._models import DiskScheduleAvailabilityRequest # type: ignore - from ._models import DiskSecret # type: ignore - from ._models import Error # type: ignore - from ._models import HeavyScheduleAvailabilityRequest # type: ignore - from ._models import JobDeliveryInfo # type: ignore - from ._models import JobDetails # type: ignore - from ._models import JobErrorDetails # type: ignore - from ._models import JobResource # type: ignore - from ._models import JobResourceList # type: ignore - from ._models import JobResourceUpdateParameter # type: ignore - from ._models import JobSecrets # type: ignore - from ._models import JobStages # type: ignore - from ._models import NotificationPreference # type: ignore - from ._models import Operation # type: ignore - from ._models import OperationDisplay # type: ignore - from ._models import OperationList # type: ignore - from ._models import PackageShippingDetails # type: ignore - from ._models import Preferences # type: ignore - from ._models import PreferencesValidationRequest # type: ignore - from ._models import PreferencesValidationResponseProperties # type: ignore - from ._models import RegionConfigurationRequest # type: ignore - from ._models import RegionConfigurationResponse # type: ignore - from ._models import Resource # type: ignore - from ._models import ScheduleAvailabilityRequest # type: ignore - from ._models import ScheduleAvailabilityResponse # type: ignore - from ._models import ShareCredentialDetails # type: ignore - from ._models import ShipmentPickUpRequest # type: ignore - from ._models import ShipmentPickUpResponse # type: ignore - from ._models import ShippingAddress # type: ignore - from ._models import Sku # type: ignore - from ._models import SkuAvailabilityValidationRequest # type: ignore - from ._models import SkuAvailabilityValidationResponseProperties # type: ignore - from ._models import SkuCapacity # type: ignore - from ._models import SkuCost # type: ignore - from ._models import SkuInformation # type: ignore - from ._models import SubscriptionIsAllowedToCreateJobValidationRequest # type: ignore - from ._models import SubscriptionIsAllowedToCreateJobValidationResponseProperties # type: ignore - from ._models import TransportAvailabilityDetails # type: ignore - from ._models import TransportAvailabilityRequest # type: ignore - from ._models import TransportAvailabilityResponse # type: ignore - from ._models import TransportPreferences # type: ignore - from ._models import UnencryptedCredentials # type: ignore - from ._models import UnencryptedCredentialsList # type: ignore - from ._models import UpdateJobDetails # type: ignore - from ._models import ValidateAddress # type: ignore - from ._models import ValidationInputRequest # type: ignore - from ._models import ValidationInputResponse # type: ignore - from ._models import ValidationRequest # type: ignore - from ._models import ValidationResponse # type: ignore - -from ._data_box_management_client_enums import ( - AccessProtocol, - AddressType, - AddressValidationStatus, - ClassDiscriminator, - CopyStatus, - DataDestinationType, - JobDeliveryType, - NotificationStageName, - OverallValidationStatus, - ShareDestinationFormatType, - SkuDisabledReason, - SkuName, - StageName, - StageStatus, - TransportShipmentTypes, - ValidationInputDiscriminator, - ValidationStatus, -) - -__all__ = [ - 'AccountCredentialDetails', - 'AddressValidationOutput', - 'AddressValidationProperties', - 'ApplianceNetworkConfiguration', - 'ArmBaseObject', - 'AvailableSkuRequest', - 'AvailableSkusResult', - 'CancellationReason', - 'CloudError', - 'ContactDetails', - 'CopyLogDetails', - 'CopyProgress', - 'CreateJobValidations', - 'CreateOrderLimitForSubscriptionValidationRequest', - 'CreateOrderLimitForSubscriptionValidationResponseProperties', - 'DataBoxAccountCopyLogDetails', - 'DataBoxDiskCopyLogDetails', - 'DataBoxDiskCopyProgress', - 'DataBoxDiskJobDetails', - 'DataBoxDiskJobSecrets', - 'DataBoxHeavyAccountCopyLogDetails', - 'DataBoxHeavyJobDetails', - 'DataBoxHeavyJobSecrets', - 'DataBoxHeavySecret', - 'DataBoxJobDetails', - 'DataBoxScheduleAvailabilityRequest', - 'DataBoxSecret', - 'DataDestinationDetailsValidationRequest', - 'DataDestinationDetailsValidationResponseProperties', - 'DataboxJobSecrets', - 'DcAccessSecurityCode', - 'DestinationAccountDetails', - 'DestinationManagedDiskDetails', - 'DestinationStorageAccountDetails', - 'DestinationToServiceLocationMap', - 'DiskScheduleAvailabilityRequest', - 'DiskSecret', - 'Error', - 'HeavyScheduleAvailabilityRequest', - 'JobDeliveryInfo', - 'JobDetails', - 'JobErrorDetails', - 'JobResource', - 'JobResourceList', - 'JobResourceUpdateParameter', - 'JobSecrets', - 'JobStages', - 'NotificationPreference', - 'Operation', - 'OperationDisplay', - 'OperationList', - 'PackageShippingDetails', - 'Preferences', - 'PreferencesValidationRequest', - 'PreferencesValidationResponseProperties', - 'RegionConfigurationRequest', - 'RegionConfigurationResponse', - 'Resource', - 'ScheduleAvailabilityRequest', - 'ScheduleAvailabilityResponse', - 'ShareCredentialDetails', - 'ShipmentPickUpRequest', - 'ShipmentPickUpResponse', - 'ShippingAddress', - 'Sku', - 'SkuAvailabilityValidationRequest', - 'SkuAvailabilityValidationResponseProperties', - 'SkuCapacity', - 'SkuCost', - 'SkuInformation', - 'SubscriptionIsAllowedToCreateJobValidationRequest', - 'SubscriptionIsAllowedToCreateJobValidationResponseProperties', - 'TransportAvailabilityDetails', - 'TransportAvailabilityRequest', - 'TransportAvailabilityResponse', - 'TransportPreferences', - 'UnencryptedCredentials', - 'UnencryptedCredentialsList', - 'UpdateJobDetails', - 'ValidateAddress', - 'ValidationInputRequest', - 'ValidationInputResponse', - 'ValidationRequest', - 'ValidationResponse', - 'AccessProtocol', - 'AddressType', - 'AddressValidationStatus', - 'ClassDiscriminator', - 'CopyStatus', - 'DataDestinationType', - 'JobDeliveryType', - 'NotificationStageName', - 'OverallValidationStatus', - 'ShareDestinationFormatType', - 'SkuDisabledReason', - 'SkuName', - 'StageName', - 'StageStatus', - 'TransportShipmentTypes', - 'ValidationInputDiscriminator', - 'ValidationStatus', -] diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_data_box_management_client_enums.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_data_box_management_client_enums.py deleted file mode 100644 index e3da769b08c..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_data_box_management_client_enums.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum, EnumMeta -from six import with_metaclass - -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class AccessProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - SMB = "SMB" #: Server Message Block protocol(SMB). - NFS = "NFS" #: Network File System protocol(NFS). - -class AddressType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Type of address. - """ - - NONE = "None" #: Address type not known. - RESIDENTIAL = "Residential" #: Residential Address. - COMMERCIAL = "Commercial" #: Commercial Address. - -class AddressValidationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The address validation status. - """ - - VALID = "Valid" #: Address provided is valid. - INVALID = "Invalid" #: Address provided is invalid or not supported. - AMBIGUOUS = "Ambiguous" #: Address provided is ambiguous, please choose one of the alternate addresses returned. - -class ClassDiscriminator(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Indicates the type of job details. - """ - - DATA_BOX = "DataBox" #: Databox orders. - DATA_BOX_DISK = "DataBoxDisk" #: DataboxDisk orders. - DATA_BOX_HEAVY = "DataBoxHeavy" #: DataboxHeavy orders. - -class CopyStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The Status of the copy - """ - - NOT_STARTED = "NotStarted" #: Data copy hasn't started yet. - IN_PROGRESS = "InProgress" #: Data copy is in progress. - COMPLETED = "Completed" #: Data copy completed. - COMPLETED_WITH_ERRORS = "CompletedWithErrors" #: Data copy completed with errors. - FAILED = "Failed" #: Data copy failed. No data was copied. - NOT_RETURNED = "NotReturned" #: No copy triggered as device was not returned. - HARDWARE_ERROR = "HardwareError" #: The Device has hit hardware issues. - DEVICE_FORMATTED = "DeviceFormatted" #: Data copy failed. The Device was formatted by user. - DEVICE_METADATA_MODIFIED = "DeviceMetadataModified" #: Data copy failed. Device metadata was modified by user. - STORAGE_ACCOUNT_NOT_ACCESSIBLE = "StorageAccountNotAccessible" #: Data copy failed. Storage Account was not accessible during copy. - UNSUPPORTED_DATA = "UnsupportedData" #: Data copy failed. The Device data content is not supported. - -class DataDestinationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Data Destination Type. - """ - - STORAGE_ACCOUNT = "StorageAccount" #: Storage Accounts . - MANAGED_DISK = "ManagedDisk" #: Azure Managed disk storage. - -class JobDeliveryType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Delivery type of Job. - """ - - NON_SCHEDULED = "NonScheduled" #: Non Scheduled job. - SCHEDULED = "Scheduled" #: Scheduled job. - -class NotificationStageName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Name of the stage. - """ - - DEVICE_PREPARED = "DevicePrepared" #: Notification at device prepared stage. - DISPATCHED = "Dispatched" #: Notification at device dispatched stage. - DELIVERED = "Delivered" #: Notification at device delivered stage. - PICKED_UP = "PickedUp" #: Notification at device picked up from user stage. - AT_AZURE_DC = "AtAzureDC" #: Notification at device received at azure datacenter stage. - DATA_COPY = "DataCopy" #: Notification at data copy started stage. - -class OverallValidationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Overall validation status. - """ - - ALL_VALID_TO_PROCEED = "AllValidToProceed" #: Every input request is valid. - INPUTS_REVISIT_REQUIRED = "InputsRevisitRequired" #: Some input requests are not valid. - CERTAIN_INPUT_VALIDATIONS_SKIPPED = "CertainInputValidationsSkipped" #: Certain input validations skipped. - -class ShareDestinationFormatType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Type of the share. - """ - - UNKNOWN_TYPE = "UnknownType" #: Unknown format. - HCS = "HCS" #: Storsimple data format. - BLOCK_BLOB = "BlockBlob" #: Azure storage block blob format. - PAGE_BLOB = "PageBlob" #: Azure storage page blob format. - AZURE_FILE = "AzureFile" #: Azure storage file format. - MANAGED_DISK = "ManagedDisk" #: Azure Compute Disk. - -class SkuDisabledReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Reason why the Sku is disabled. - """ - - NONE = "None" #: SKU is not disabled. - COUNTRY = "Country" #: SKU is not available in the requested country. - REGION = "Region" #: SKU is not available to push data to the requested Azure region. - FEATURE = "Feature" #: Required features are not enabled for the SKU. - OFFER_TYPE = "OfferType" #: Subscription does not have required offer types for the SKU. - NO_SUBSCRIPTION_INFO = "NoSubscriptionInfo" #: Subscription has not registered to Microsoft.DataBox and Service does not have the subscription notification. - -class SkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - - DATA_BOX = "DataBox" #: Databox. - DATA_BOX_DISK = "DataBoxDisk" #: DataboxDisk. - DATA_BOX_HEAVY = "DataBoxHeavy" #: DataboxHeavy. - -class StageName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Name of the stage which is in progress. - """ - - DEVICE_ORDERED = "DeviceOrdered" #: An order has been created. - DEVICE_PREPARED = "DevicePrepared" #: A device has been prepared for the order. - DISPATCHED = "Dispatched" #: Device has been dispatched to the user of the order. - DELIVERED = "Delivered" #: Device has been delivered to the user of the order. - PICKED_UP = "PickedUp" #: Device has been picked up from user and in transit to azure datacenter. - AT_AZURE_DC = "AtAzureDC" #: Device has been received at azure datacenter from the user. - DATA_COPY = "DataCopy" #: Data copy from the device at azure datacenter. - COMPLETED = "Completed" #: Order has completed. - COMPLETED_WITH_ERRORS = "CompletedWithErrors" #: Order has completed with errors. - CANCELLED = "Cancelled" #: Order has been cancelled. - FAILED_ISSUE_REPORTED_AT_CUSTOMER = "Failed_IssueReportedAtCustomer" #: Order has failed due to issue reported by user. - FAILED_ISSUE_DETECTED_AT_AZURE_DC = "Failed_IssueDetectedAtAzureDC" #: Order has failed due to issue detected at azure datacenter. - ABORTED = "Aborted" #: Order has been aborted. - COMPLETED_WITH_WARNINGS = "CompletedWithWarnings" #: Order has completed with warnings. - READY_TO_DISPATCH_FROM_AZURE_DC = "ReadyToDispatchFromAzureDC" #: Device is ready to be handed to customer from Azure DC. - READY_TO_RECEIVE_AT_AZURE_DC = "ReadyToReceiveAtAzureDC" #: Device can be dropped off at Azure DC. - -class StageStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Status of the job stage. - """ - - NONE = "None" #: No status available yet. - IN_PROGRESS = "InProgress" #: Stage is in progress. - SUCCEEDED = "Succeeded" #: Stage has succeeded. - FAILED = "Failed" #: Stage has failed. - CANCELLED = "Cancelled" #: Stage has been cancelled. - CANCELLING = "Cancelling" #: Stage is cancelling. - SUCCEEDED_WITH_ERRORS = "SucceededWithErrors" #: Stage has succeeded with errors. - -class TransportShipmentTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Transport Shipment Type supported for given region. - """ - - CUSTOMER_MANAGED = "CustomerManaged" #: Shipment Logistics is handled by the customer. - MICROSOFT_MANAGED = "MicrosoftManaged" #: Shipment Logistics is handled by Microsoft. - -class ValidationInputDiscriminator(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Identifies the type of validation request. - """ - - VALIDATE_ADDRESS = "ValidateAddress" #: Identify request and response of address validation. - VALIDATE_DATA_DESTINATION_DETAILS = "ValidateDataDestinationDetails" #: Identify request and response of data destination details validation. - VALIDATE_SUBSCRIPTION_IS_ALLOWED_TO_CREATE_JOB = "ValidateSubscriptionIsAllowedToCreateJob" #: Identify request and response for validation of subscription permission to create job. - VALIDATE_PREFERENCES = "ValidatePreferences" #: Identify request and response of preference validation. - VALIDATE_CREATE_ORDER_LIMIT = "ValidateCreateOrderLimit" #: Identify request and response of create order limit for subscription validation. - VALIDATE_SKU_AVAILABILITY = "ValidateSkuAvailability" #: Identify request and response of active job limit for sku availability. - -class ValidationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Create order limit validation status. - """ - - VALID = "Valid" #: Validation is successful. - INVALID = "Invalid" #: Validation is not successful. - SKIPPED = "Skipped" #: Validation is skipped. diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models.py deleted file mode 100644 index 0d62bb7ec20..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models.py +++ /dev/null @@ -1,3351 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import msrest.serialization - - -class AccountCredentialDetails(msrest.serialization.Model): - """Credential details of the account. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar account_name: Name of the account. - :vartype account_name: str - :ivar data_destination_type: Data Destination Type. Possible values include: "StorageAccount", - "ManagedDisk". - :vartype data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :ivar account_connection_string: Connection string of the account endpoint to use the account - as a storage endpoint on the device. - :vartype account_connection_string: str - :ivar share_credential_details: Per share level unencrypted access credentials. - :vartype share_credential_details: list[~azure.mgmt.databox.models.ShareCredentialDetails] - """ - - _validation = { - 'account_name': {'readonly': True}, - 'data_destination_type': {'readonly': True}, - 'account_connection_string': {'readonly': True}, - 'share_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_connection_string': {'key': 'accountConnectionString', 'type': 'str'}, - 'share_credential_details': {'key': 'shareCredentialDetails', 'type': '[ShareCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(AccountCredentialDetails, self).__init__(**kwargs) - self.account_name = None - self.data_destination_type = None - self.account_connection_string = None - self.share_credential_details = None - - -class AddressValidationOutput(msrest.serialization.Model): - """Output of the address validation api. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param validation_type: Identifies the type of validation response.Constant filled by server. - Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar validation_status: The address validation status. Possible values include: "Valid", - "Invalid", "Ambiguous". - :vartype validation_status: str or ~azure.mgmt.databox.models.AddressValidationStatus - :ivar alternate_addresses: List of alternate addresses. - :vartype alternate_addresses: list[~azure.mgmt.databox.models.ShippingAddress] - """ - - _validation = { - 'error': {'readonly': True}, - 'validation_status': {'readonly': True}, - 'alternate_addresses': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'properties.validationType', 'type': 'str'}, - 'error': {'key': 'properties.error', 'type': 'Error'}, - 'validation_status': {'key': 'properties.validationStatus', 'type': 'str'}, - 'alternate_addresses': {'key': 'properties.alternateAddresses', 'type': '[ShippingAddress]'}, - } - - def __init__( - self, - **kwargs - ): - super(AddressValidationOutput, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - self.error = None - self.validation_status = None - self.alternate_addresses = None - - -class ValidationInputResponse(msrest.serialization.Model): - """Minimum properties that should be present in each individual validation response. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AddressValidationProperties, CreateOrderLimitForSubscriptionValidationResponseProperties, DataDestinationDetailsValidationResponseProperties, PreferencesValidationResponseProperties, SkuAvailabilityValidationResponseProperties, SubscriptionIsAllowedToCreateJobValidationResponseProperties. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - } - - _subtype_map = { - 'validation_type': {'ValidateAddress': 'AddressValidationProperties', 'ValidateCreateOrderLimit': 'CreateOrderLimitForSubscriptionValidationResponseProperties', 'ValidateDataDestinationDetails': 'DataDestinationDetailsValidationResponseProperties', 'ValidatePreferences': 'PreferencesValidationResponseProperties', 'ValidateSkuAvailability': 'SkuAvailabilityValidationResponseProperties', 'ValidateSubscriptionIsAllowedToCreateJob': 'SubscriptionIsAllowedToCreateJobValidationResponseProperties'} - } - - def __init__( - self, - **kwargs - ): - super(ValidationInputResponse, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - self.error = None - - -class AddressValidationProperties(ValidationInputResponse): - """The address validation output. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar validation_status: The address validation status. Possible values include: "Valid", - "Invalid", "Ambiguous". - :vartype validation_status: str or ~azure.mgmt.databox.models.AddressValidationStatus - :ivar alternate_addresses: List of alternate addresses. - :vartype alternate_addresses: list[~azure.mgmt.databox.models.ShippingAddress] - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'validation_status': {'readonly': True}, - 'alternate_addresses': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'validation_status': {'key': 'validationStatus', 'type': 'str'}, - 'alternate_addresses': {'key': 'alternateAddresses', 'type': '[ShippingAddress]'}, - } - - def __init__( - self, - **kwargs - ): - super(AddressValidationProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateAddress' # type: str - self.validation_status = None - self.alternate_addresses = None - - -class ApplianceNetworkConfiguration(msrest.serialization.Model): - """The Network Adapter configuration of a DataBox. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the network. - :vartype name: str - :ivar mac_address: Mac Address. - :vartype mac_address: str - """ - - _validation = { - 'name': {'readonly': True}, - 'mac_address': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ApplianceNetworkConfiguration, self).__init__(**kwargs) - self.name = None - self.mac_address = None - - -class ArmBaseObject(msrest.serialization.Model): - """Base class for all objects under resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the object. - :vartype name: str - :ivar id: Id of the object. - :vartype id: str - :ivar type: Type of the object. - :vartype type: str - """ - - _validation = { - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ArmBaseObject, self).__init__(**kwargs) - self.name = None - self.id = None - self.type = None - - -class AvailableSkuRequest(msrest.serialization.Model): - """The filters for showing the available skus. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar transfer_type: Required. Type of the transfer. Default value: "ImportToAzure". - :vartype transfer_type: str - :param country: Required. ISO country code. Country for hardware shipment. For codes check: - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements. - :type country: str - :param location: Required. Location for data transfer. For locations check: - https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01. - :type location: str - :param sku_names: Sku Names to filter for available skus. - :type sku_names: list[str or ~azure.mgmt.databox.models.SkuName] - """ - - _validation = { - 'transfer_type': {'required': True, 'constant': True}, - 'country': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'transfer_type': {'key': 'transferType', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'sku_names': {'key': 'skuNames', 'type': '[str]'}, - } - - transfer_type = "ImportToAzure" - - def __init__( - self, - **kwargs - ): - super(AvailableSkuRequest, self).__init__(**kwargs) - self.country = kwargs['country'] - self.location = kwargs['location'] - self.sku_names = kwargs.get('sku_names', None) - - -class AvailableSkusResult(msrest.serialization.Model): - """The available skus operation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: List of available skus. - :vartype value: list[~azure.mgmt.databox.models.SkuInformation] - :param next_link: Link for the next set of skus. - :type next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[SkuInformation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AvailableSkusResult, self).__init__(**kwargs) - self.value = None - self.next_link = kwargs.get('next_link', None) - - -class CancellationReason(msrest.serialization.Model): - """Reason for cancellation. - - All required parameters must be populated in order to send to Azure. - - :param reason: Required. Reason for cancellation. - :type reason: str - """ - - _validation = { - 'reason': {'required': True}, - } - - _attribute_map = { - 'reason': {'key': 'reason', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CancellationReason, self).__init__(**kwargs) - self.reason = kwargs['reason'] - - -class CloudError(msrest.serialization.Model): - """The error information object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code string. - :vartype code: str - :ivar message: Descriptive error information. - :vartype message: str - :param target: Error target. - :type target: str - :param details: More detailed error information. - :type details: list[~azure.mgmt.databox.models.CloudError] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudError]'}, - } - - def __init__( - self, - **kwargs - ): - super(CloudError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) - - -class ContactDetails(msrest.serialization.Model): - """Contact Details. - - All required parameters must be populated in order to send to Azure. - - :param contact_name: Required. Contact name of the person. - :type contact_name: str - :param phone: Required. Phone number of the contact person. - :type phone: str - :param phone_extension: Phone extension number of the contact person. - :type phone_extension: str - :param mobile: Mobile number of the contact person. - :type mobile: str - :param email_list: Required. List of Email-ids to be notified about job progress. - :type email_list: list[str] - :param notification_preference: Notification preference for a job stage. - :type notification_preference: list[~azure.mgmt.databox.models.NotificationPreference] - """ - - _validation = { - 'contact_name': {'required': True}, - 'phone': {'required': True}, - 'email_list': {'required': True}, - } - - _attribute_map = { - 'contact_name': {'key': 'contactName', 'type': 'str'}, - 'phone': {'key': 'phone', 'type': 'str'}, - 'phone_extension': {'key': 'phoneExtension', 'type': 'str'}, - 'mobile': {'key': 'mobile', 'type': 'str'}, - 'email_list': {'key': 'emailList', 'type': '[str]'}, - 'notification_preference': {'key': 'notificationPreference', 'type': '[NotificationPreference]'}, - } - - def __init__( - self, - **kwargs - ): - super(ContactDetails, self).__init__(**kwargs) - self.contact_name = kwargs['contact_name'] - self.phone = kwargs['phone'] - self.phone_extension = kwargs.get('phone_extension', None) - self.mobile = kwargs.get('mobile', None) - self.email_list = kwargs['email_list'] - self.notification_preference = kwargs.get('notification_preference', None) - - -class CopyLogDetails(msrest.serialization.Model): - """Details for log generated during copy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxAccountCopyLogDetails, DataBoxDiskCopyLogDetails, DataBoxHeavyAccountCopyLogDetails. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - } - - _subtype_map = { - 'copy_log_details_type': {'DataBox': 'DataBoxAccountCopyLogDetails', 'DataBoxDisk': 'DataBoxDiskCopyLogDetails', 'DataBoxHeavy': 'DataBoxHeavyAccountCopyLogDetails'} - } - - def __init__( - self, - **kwargs - ): - super(CopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = None # type: Optional[str] - - -class CopyProgress(msrest.serialization.Model): - """Copy progress. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar storage_account_name: Name of the storage account where the data needs to be uploaded. - :vartype storage_account_name: str - :ivar data_destination_type: Data Destination Type. Possible values include: "StorageAccount", - "ManagedDisk". - :vartype data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :ivar account_id: Id of the account where the data needs to be uploaded. - :vartype account_id: str - :ivar bytes_sent_to_cloud: Amount of data uploaded by the job as of now. - :vartype bytes_sent_to_cloud: long - :ivar total_bytes_to_process: Total amount of data to be processed by the job. - :vartype total_bytes_to_process: long - :ivar files_processed: Number of files processed by the job as of now. - :vartype files_processed: long - :ivar total_files_to_process: Total number of files to be processed by the job. - :vartype total_files_to_process: long - :ivar invalid_files_processed: Number of files not adhering to azure naming conventions which - were processed by automatic renaming. - :vartype invalid_files_processed: long - :ivar invalid_file_bytes_uploaded: Total amount of data not adhering to azure naming - conventions which were processed by automatic renaming. - :vartype invalid_file_bytes_uploaded: long - :ivar renamed_container_count: Number of folders not adhering to azure naming conventions which - were processed by automatic renaming. - :vartype renamed_container_count: long - :ivar files_errored_out: Number of files which could not be copied. - :vartype files_errored_out: long - """ - - _validation = { - 'storage_account_name': {'readonly': True}, - 'data_destination_type': {'readonly': True}, - 'account_id': {'readonly': True}, - 'bytes_sent_to_cloud': {'readonly': True}, - 'total_bytes_to_process': {'readonly': True}, - 'files_processed': {'readonly': True}, - 'total_files_to_process': {'readonly': True}, - 'invalid_files_processed': {'readonly': True}, - 'invalid_file_bytes_uploaded': {'readonly': True}, - 'renamed_container_count': {'readonly': True}, - 'files_errored_out': {'readonly': True}, - } - - _attribute_map = { - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'bytes_sent_to_cloud': {'key': 'bytesSentToCloud', 'type': 'long'}, - 'total_bytes_to_process': {'key': 'totalBytesToProcess', 'type': 'long'}, - 'files_processed': {'key': 'filesProcessed', 'type': 'long'}, - 'total_files_to_process': {'key': 'totalFilesToProcess', 'type': 'long'}, - 'invalid_files_processed': {'key': 'invalidFilesProcessed', 'type': 'long'}, - 'invalid_file_bytes_uploaded': {'key': 'invalidFileBytesUploaded', 'type': 'long'}, - 'renamed_container_count': {'key': 'renamedContainerCount', 'type': 'long'}, - 'files_errored_out': {'key': 'filesErroredOut', 'type': 'long'}, - } - - def __init__( - self, - **kwargs - ): - super(CopyProgress, self).__init__(**kwargs) - self.storage_account_name = None - self.data_destination_type = None - self.account_id = None - self.bytes_sent_to_cloud = None - self.total_bytes_to_process = None - self.files_processed = None - self.total_files_to_process = None - self.invalid_files_processed = None - self.invalid_file_bytes_uploaded = None - self.renamed_container_count = None - self.files_errored_out = None - - -class ValidationRequest(msrest.serialization.Model): - """Input request for all pre job creation validation. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: CreateJobValidations. - - All required parameters must be populated in order to send to Azure. - - :param individual_request_details: Required. List of request details contain validationType and - its request as key and value respectively. - :type individual_request_details: list[~azure.mgmt.databox.models.ValidationInputRequest] - :param validation_category: Required. Identify the nature of validation.Constant filled by - server. - :type validation_category: str - """ - - _validation = { - 'individual_request_details': {'required': True}, - 'validation_category': {'required': True}, - } - - _attribute_map = { - 'individual_request_details': {'key': 'individualRequestDetails', 'type': '[ValidationInputRequest]'}, - 'validation_category': {'key': 'validationCategory', 'type': 'str'}, - } - - _subtype_map = { - 'validation_category': {'JobCreationValidation': 'CreateJobValidations'} - } - - def __init__( - self, - **kwargs - ): - super(ValidationRequest, self).__init__(**kwargs) - self.individual_request_details = kwargs['individual_request_details'] - self.validation_category = None # type: Optional[str] - - -class CreateJobValidations(ValidationRequest): - """It does all pre-job creation validations. - - All required parameters must be populated in order to send to Azure. - - :param individual_request_details: Required. List of request details contain validationType and - its request as key and value respectively. - :type individual_request_details: list[~azure.mgmt.databox.models.ValidationInputRequest] - :param validation_category: Required. Identify the nature of validation.Constant filled by - server. - :type validation_category: str - """ - - _validation = { - 'individual_request_details': {'required': True}, - 'validation_category': {'required': True}, - } - - _attribute_map = { - 'individual_request_details': {'key': 'individualRequestDetails', 'type': '[ValidationInputRequest]'}, - 'validation_category': {'key': 'validationCategory', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CreateJobValidations, self).__init__(**kwargs) - self.validation_category = 'JobCreationValidation' # type: str - - -class ValidationInputRequest(msrest.serialization.Model): - """Minimum fields that must be present in any type of validation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateAddress, CreateOrderLimitForSubscriptionValidationRequest, DataDestinationDetailsValidationRequest, PreferencesValidationRequest, SkuAvailabilityValidationRequest, SubscriptionIsAllowedToCreateJobValidationRequest. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - """ - - _validation = { - 'validation_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - } - - _subtype_map = { - 'validation_type': {'ValidateAddress': 'ValidateAddress', 'ValidateCreateOrderLimit': 'CreateOrderLimitForSubscriptionValidationRequest', 'ValidateDataDestinationDetails': 'DataDestinationDetailsValidationRequest', 'ValidatePreferences': 'PreferencesValidationRequest', 'ValidateSkuAvailability': 'SkuAvailabilityValidationRequest', 'ValidateSubscriptionIsAllowedToCreateJob': 'SubscriptionIsAllowedToCreateJobValidationRequest'} - } - - def __init__( - self, - **kwargs - ): - super(ValidationInputRequest, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - - -class CreateOrderLimitForSubscriptionValidationRequest(ValidationInputRequest): - """Request to validate create order limit for current subscription. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CreateOrderLimitForSubscriptionValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateCreateOrderLimit' # type: str - self.device_type = kwargs['device_type'] - - -class CreateOrderLimitForSubscriptionValidationResponseProperties(ValidationInputResponse): - """Properties of create order limit for subscription validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Create order limit validation status. Possible values include: "Valid", - "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CreateOrderLimitForSubscriptionValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateCreateOrderLimit' # type: str - self.status = None - - -class DataBoxAccountCopyLogDetails(CopyLogDetails): - """Copy log details for a storage account of a DataBox job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar account_name: Destination account name. - :vartype account_name: str - :ivar copy_log_link: Link for copy logs. - :vartype copy_log_link: str - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'account_name': {'readonly': True}, - 'copy_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'copy_log_link': {'key': 'copyLogLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxAccountCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBox' # type: str - self.account_name = None - self.copy_log_link = None - - -class DataBoxDiskCopyLogDetails(CopyLogDetails): - """Copy Log Details for a disk. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar disk_serial_number: Disk Serial Number. - :vartype disk_serial_number: str - :ivar error_log_link: Link for copy error logs. - :vartype error_log_link: str - :ivar verbose_log_link: Link for copy verbose logs. - :vartype verbose_log_link: str - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'disk_serial_number': {'readonly': True}, - 'error_log_link': {'readonly': True}, - 'verbose_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'disk_serial_number': {'key': 'diskSerialNumber', 'type': 'str'}, - 'error_log_link': {'key': 'errorLogLink', 'type': 'str'}, - 'verbose_log_link': {'key': 'verboseLogLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBoxDisk' # type: str - self.disk_serial_number = None - self.error_log_link = None - self.verbose_log_link = None - - -class DataBoxDiskCopyProgress(msrest.serialization.Model): - """DataBox Disk Copy Progress. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar serial_number: The serial number of the disk. - :vartype serial_number: str - :ivar bytes_copied: Bytes copied during the copy of disk. - :vartype bytes_copied: long - :ivar percent_complete: Indicates the percentage completed for the copy of the disk. - :vartype percent_complete: int - :ivar status: The Status of the copy. Possible values include: "NotStarted", "InProgress", - "Completed", "CompletedWithErrors", "Failed", "NotReturned", "HardwareError", - "DeviceFormatted", "DeviceMetadataModified", "StorageAccountNotAccessible", "UnsupportedData". - :vartype status: str or ~azure.mgmt.databox.models.CopyStatus - """ - - _validation = { - 'serial_number': {'readonly': True}, - 'bytes_copied': {'readonly': True}, - 'percent_complete': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'serial_number': {'key': 'serialNumber', 'type': 'str'}, - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskCopyProgress, self).__init__(**kwargs) - self.serial_number = None - self.bytes_copied = None - self.percent_complete = None - self.status = None - - -class JobDetails(msrest.serialization.Model): - """Job details. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxJobDetails, DataBoxDiskJobDetails, DataBoxHeavyJobDetails. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - } - - _subtype_map = { - 'job_details_type': {'DataBox': 'DataBoxJobDetails', 'DataBoxDisk': 'DataBoxDiskJobDetails', 'DataBoxHeavy': 'DataBoxHeavyJobDetails'} - } - - def __init__( - self, - **kwargs - ): - super(JobDetails, self).__init__(**kwargs) - self.expected_data_size_in_terabytes = kwargs.get('expected_data_size_in_terabytes', None) - self.job_stages = None - self.contact_details = kwargs['contact_details'] - self.shipping_address = kwargs['shipping_address'] - self.delivery_package = None - self.return_package = None - self.destination_account_details = kwargs['destination_account_details'] - self.error_details = None - self.job_details_type = None # type: Optional[str] - self.preferences = kwargs.get('preferences', None) - self.copy_log_details = None - self.reverse_shipment_label_sas_key = None - self.chain_of_custody_sas_key = None - - -class DataBoxDiskJobDetails(JobDetails): - """DataBox Disk Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :param preferred_disks: User preference on what size disks are needed for the job. The map is - from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but - will be checked against an int. - :type preferred_disks: dict[str, int] - :ivar copy_progress: Copy progress per disk. - :vartype copy_progress: list[~azure.mgmt.databox.models.DataBoxDiskCopyProgress] - :ivar disks_and_size_details: Contains the map of disk serial number to the disk size being - used for the job. Is returned only after the disks are shipped to the customer. - :vartype disks_and_size_details: dict[str, int] - :param passkey: User entered passkey for DataBox Disk job. - :type passkey: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - 'disks_and_size_details': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'preferred_disks': {'key': 'preferredDisks', 'type': '{int}'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[DataBoxDiskCopyProgress]'}, - 'disks_and_size_details': {'key': 'disksAndSizeDetails', 'type': '{int}'}, - 'passkey': {'key': 'passkey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskJobDetails, self).__init__(**kwargs) - self.job_details_type = 'DataBoxDisk' # type: str - self.preferred_disks = kwargs.get('preferred_disks', None) - self.copy_progress = None - self.disks_and_size_details = None - self.passkey = kwargs.get('passkey', None) - - -class JobSecrets(msrest.serialization.Model): - """The base class for the secrets. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataboxJobSecrets, DataBoxDiskJobSecrets, DataBoxHeavyJobSecrets. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - """ - - _validation = { - 'job_secrets_type': {'required': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - } - - _subtype_map = { - 'job_secrets_type': {'DataBox': 'DataboxJobSecrets', 'DataBoxDisk': 'DataBoxDiskJobSecrets', 'DataBoxHeavy': 'DataBoxHeavyJobSecrets'} - } - - def __init__( - self, - **kwargs - ): - super(JobSecrets, self).__init__(**kwargs) - self.job_secrets_type = None # type: Optional[str] - self.dc_access_security_code = kwargs.get('dc_access_security_code', None) - - -class DataBoxDiskJobSecrets(JobSecrets): - """The secrets related to disk job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :ivar disk_secrets: Contains the list of secrets object for that device. - :vartype disk_secrets: list[~azure.mgmt.databox.models.DiskSecret] - :ivar pass_key: PassKey for the disk Job. - :vartype pass_key: str - :ivar is_passkey_user_defined: Whether passkey was provided by user. - :vartype is_passkey_user_defined: bool - """ - - _validation = { - 'job_secrets_type': {'required': True}, - 'disk_secrets': {'readonly': True}, - 'pass_key': {'readonly': True}, - 'is_passkey_user_defined': {'readonly': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'disk_secrets': {'key': 'diskSecrets', 'type': '[DiskSecret]'}, - 'pass_key': {'key': 'passKey', 'type': 'str'}, - 'is_passkey_user_defined': {'key': 'isPasskeyUserDefined', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskJobSecrets, self).__init__(**kwargs) - self.job_secrets_type = 'DataBoxDisk' # type: str - self.disk_secrets = None - self.pass_key = None - self.is_passkey_user_defined = None - - -class DataBoxHeavyAccountCopyLogDetails(CopyLogDetails): - """Copy log details for a storage account for Databox heavy. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar account_name: Destination account name. - :vartype account_name: str - :ivar copy_log_link: Link for copy logs. - :vartype copy_log_link: list[str] - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'account_name': {'readonly': True}, - 'copy_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'copy_log_link': {'key': 'copyLogLink', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavyAccountCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBoxHeavy' # type: str - self.account_name = None - self.copy_log_link = None - - -class DataBoxHeavyJobDetails(JobDetails): - """Databox Heavy Device Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :ivar copy_progress: Copy progress per account. - :vartype copy_progress: list[~azure.mgmt.databox.models.CopyProgress] - :param device_password: Set Device password for unlocking Databox Heavy. - :type device_password: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[CopyProgress]'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavyJobDetails, self).__init__(**kwargs) - self.job_details_type = 'DataBoxHeavy' # type: str - self.copy_progress = None - self.device_password = kwargs.get('device_password', None) - - -class DataBoxHeavyJobSecrets(JobSecrets): - """The secrets related to a databox heavy job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :ivar cabinet_pod_secrets: Contains the list of secret objects for a databox heavy job. - :vartype cabinet_pod_secrets: list[~azure.mgmt.databox.models.DataBoxHeavySecret] - """ - - _validation = { - 'job_secrets_type': {'required': True}, - 'cabinet_pod_secrets': {'readonly': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'cabinet_pod_secrets': {'key': 'cabinetPodSecrets', 'type': '[DataBoxHeavySecret]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavyJobSecrets, self).__init__(**kwargs) - self.job_secrets_type = 'DataBoxHeavy' # type: str - self.cabinet_pod_secrets = None - - -class DataBoxHeavySecret(msrest.serialization.Model): - """The secrets related to a databox heavy. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar device_serial_number: Serial number of the assigned device. - :vartype device_serial_number: str - :ivar device_password: Password for out of the box experience on device. - :vartype device_password: str - :ivar network_configurations: Network configuration of the appliance. - :vartype network_configurations: list[~azure.mgmt.databox.models.ApplianceNetworkConfiguration] - :ivar encoded_validation_cert_pub_key: The base 64 encoded public key to authenticate with the - device. - :vartype encoded_validation_cert_pub_key: str - :ivar account_credential_details: Per account level access credentials. - :vartype account_credential_details: list[~azure.mgmt.databox.models.AccountCredentialDetails] - """ - - _validation = { - 'device_serial_number': {'readonly': True}, - 'device_password': {'readonly': True}, - 'network_configurations': {'readonly': True}, - 'encoded_validation_cert_pub_key': {'readonly': True}, - 'account_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'device_serial_number': {'key': 'deviceSerialNumber', 'type': 'str'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - 'network_configurations': {'key': 'networkConfigurations', 'type': '[ApplianceNetworkConfiguration]'}, - 'encoded_validation_cert_pub_key': {'key': 'encodedValidationCertPubKey', 'type': 'str'}, - 'account_credential_details': {'key': 'accountCredentialDetails', 'type': '[AccountCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavySecret, self).__init__(**kwargs) - self.device_serial_number = None - self.device_password = None - self.network_configurations = None - self.encoded_validation_cert_pub_key = None - self.account_credential_details = None - - -class DataBoxJobDetails(JobDetails): - """Databox Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :ivar copy_progress: Copy progress per storage account. - :vartype copy_progress: list[~azure.mgmt.databox.models.CopyProgress] - :param device_password: Set Device password for unlocking Databox. - :type device_password: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[CopyProgress]'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxJobDetails, self).__init__(**kwargs) - self.job_details_type = 'DataBox' # type: str - self.copy_progress = None - self.device_password = kwargs.get('device_password', None) - - -class DataboxJobSecrets(JobSecrets): - """The secrets related to a databox job. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :param pod_secrets: Contains the list of secret objects for a job. - :type pod_secrets: list[~azure.mgmt.databox.models.DataBoxSecret] - """ - - _validation = { - 'job_secrets_type': {'required': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'pod_secrets': {'key': 'podSecrets', 'type': '[DataBoxSecret]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataboxJobSecrets, self).__init__(**kwargs) - self.job_secrets_type = 'DataBox' # type: str - self.pod_secrets = kwargs.get('pod_secrets', None) - - -class ScheduleAvailabilityRequest(msrest.serialization.Model): - """Request body to get the availability for scheduling orders. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxScheduleAvailabilityRequest, DiskScheduleAvailabilityRequest, HeavyScheduleAvailabilityRequest. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - _subtype_map = { - 'sku_name': {'DataBox': 'DataBoxScheduleAvailabilityRequest', 'DataBoxDisk': 'DiskScheduleAvailabilityRequest', 'DataBoxHeavy': 'HeavyScheduleAvailabilityRequest'} - } - - def __init__( - self, - **kwargs - ): - super(ScheduleAvailabilityRequest, self).__init__(**kwargs) - self.storage_location = kwargs['storage_location'] - self.sku_name = None # type: Optional[str] - - -class DataBoxScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling data box orders orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxScheduleAvailabilityRequest, self).__init__(**kwargs) - self.sku_name = 'DataBox' # type: str - - -class DataBoxSecret(msrest.serialization.Model): - """The secrets related to a DataBox. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar device_serial_number: Serial number of the assigned device. - :vartype device_serial_number: str - :ivar device_password: Password for out of the box experience on device. - :vartype device_password: str - :ivar network_configurations: Network configuration of the appliance. - :vartype network_configurations: list[~azure.mgmt.databox.models.ApplianceNetworkConfiguration] - :ivar encoded_validation_cert_pub_key: The base 64 encoded public key to authenticate with the - device. - :vartype encoded_validation_cert_pub_key: str - :ivar account_credential_details: Per account level access credentials. - :vartype account_credential_details: list[~azure.mgmt.databox.models.AccountCredentialDetails] - """ - - _validation = { - 'device_serial_number': {'readonly': True}, - 'device_password': {'readonly': True}, - 'network_configurations': {'readonly': True}, - 'encoded_validation_cert_pub_key': {'readonly': True}, - 'account_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'device_serial_number': {'key': 'deviceSerialNumber', 'type': 'str'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - 'network_configurations': {'key': 'networkConfigurations', 'type': '[ApplianceNetworkConfiguration]'}, - 'encoded_validation_cert_pub_key': {'key': 'encodedValidationCertPubKey', 'type': 'str'}, - 'account_credential_details': {'key': 'accountCredentialDetails', 'type': '[AccountCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxSecret, self).__init__(**kwargs) - self.device_serial_number = None - self.device_password = None - self.network_configurations = None - self.encoded_validation_cert_pub_key = None - self.account_credential_details = None - - -class DataDestinationDetailsValidationRequest(ValidationInputRequest): - """Request to validate data destination details. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param destination_account_details: Required. Destination account details list. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :param location: Required. Location of stamp or geo. - :type location: str - """ - - _validation = { - 'validation_type': {'required': True}, - 'destination_account_details': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataDestinationDetailsValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateDataDestinationDetails' # type: str - self.destination_account_details = kwargs['destination_account_details'] - self.location = kwargs['location'] - - -class DataDestinationDetailsValidationResponseProperties(ValidationInputResponse): - """Properties of data destination details validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Data destination details validation status. Possible values include: "Valid", - "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataDestinationDetailsValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateDataDestinationDetails' # type: str - self.status = None - - -class DcAccessSecurityCode(msrest.serialization.Model): - """Dc Access Security code for device. - - :param forward_dc_access_code: Dc Access Code for dispatching from DC. - :type forward_dc_access_code: str - :param reverse_dc_access_code: Dc Access code for dropping off at DC. - :type reverse_dc_access_code: str - """ - - _attribute_map = { - 'forward_dc_access_code': {'key': 'forwardDcAccessCode', 'type': 'str'}, - 'reverse_dc_access_code': {'key': 'reverseDcAccessCode', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DcAccessSecurityCode, self).__init__(**kwargs) - self.forward_dc_access_code = kwargs.get('forward_dc_access_code', None) - self.reverse_dc_access_code = kwargs.get('reverse_dc_access_code', None) - - -class DestinationAccountDetails(msrest.serialization.Model): - """Details of the destination storage accounts. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DestinationManagedDiskDetails, DestinationStorageAccountDetails. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - } - - _subtype_map = { - 'data_destination_type': {'ManagedDisk': 'DestinationManagedDiskDetails', 'StorageAccount': 'DestinationStorageAccountDetails'} - } - - def __init__( - self, - **kwargs - ): - super(DestinationAccountDetails, self).__init__(**kwargs) - self.data_destination_type = None # type: Optional[str] - self.account_id = kwargs.get('account_id', None) - self.share_password = kwargs.get('share_password', None) - - -class DestinationManagedDiskDetails(DestinationAccountDetails): - """Details for the destination compute disks. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - :param resource_group_id: Required. Destination Resource Group Id where the Compute disks - should be created. - :type resource_group_id: str - :param staging_storage_account_id: Required. Arm Id of the storage account that can be used to - copy the vhd for staging. - :type staging_storage_account_id: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - 'resource_group_id': {'required': True}, - 'staging_storage_account_id': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - 'resource_group_id': {'key': 'resourceGroupId', 'type': 'str'}, - 'staging_storage_account_id': {'key': 'stagingStorageAccountId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DestinationManagedDiskDetails, self).__init__(**kwargs) - self.data_destination_type = 'ManagedDisk' # type: str - self.resource_group_id = kwargs['resource_group_id'] - self.staging_storage_account_id = kwargs['staging_storage_account_id'] - - -class DestinationStorageAccountDetails(DestinationAccountDetails): - """Details for the destination storage account. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - :param storage_account_id: Required. Destination Storage Account Arm Id. - :type storage_account_id: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - 'storage_account_id': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DestinationStorageAccountDetails, self).__init__(**kwargs) - self.data_destination_type = 'StorageAccount' # type: str - self.storage_account_id = kwargs['storage_account_id'] - - -class DestinationToServiceLocationMap(msrest.serialization.Model): - """Map of destination location to service location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar destination_location: Location of the destination. - :vartype destination_location: str - :ivar service_location: Location of the service. - :vartype service_location: str - """ - - _validation = { - 'destination_location': {'readonly': True}, - 'service_location': {'readonly': True}, - } - - _attribute_map = { - 'destination_location': {'key': 'destinationLocation', 'type': 'str'}, - 'service_location': {'key': 'serviceLocation', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DestinationToServiceLocationMap, self).__init__(**kwargs) - self.destination_location = None - self.service_location = None - - -class DiskScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling disk orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - :param expected_data_size_in_terabytes: Required. The expected size of the data, which needs to - be transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - 'expected_data_size_in_terabytes': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(DiskScheduleAvailabilityRequest, self).__init__(**kwargs) - self.sku_name = 'DataBoxDisk' # type: str - self.expected_data_size_in_terabytes = kwargs['expected_data_size_in_terabytes'] - - -class DiskSecret(msrest.serialization.Model): - """Contains all the secrets of a Disk. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar disk_serial_number: Serial number of the assigned disk. - :vartype disk_serial_number: str - :ivar bit_locker_key: Bit Locker key of the disk which can be used to unlock the disk to copy - data. - :vartype bit_locker_key: str - """ - - _validation = { - 'disk_serial_number': {'readonly': True}, - 'bit_locker_key': {'readonly': True}, - } - - _attribute_map = { - 'disk_serial_number': {'key': 'diskSerialNumber', 'type': 'str'}, - 'bit_locker_key': {'key': 'bitLockerKey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DiskSecret, self).__init__(**kwargs) - self.disk_serial_number = None - self.bit_locker_key = None - - -class Error(msrest.serialization.Model): - """Top level error for the job. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code that can be used to programmatically identify the error. - :vartype code: str - :ivar message: Describes the error in detail and provides debugging information. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - - -class HeavyScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling heavy orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HeavyScheduleAvailabilityRequest, self).__init__(**kwargs) - self.sku_name = 'DataBoxHeavy' # type: str - - -class JobDeliveryInfo(msrest.serialization.Model): - """Additional delivery info. - - :param scheduled_date_time: Scheduled date time. - :type scheduled_date_time: ~datetime.datetime - """ - - _attribute_map = { - 'scheduled_date_time': {'key': 'scheduledDateTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(JobDeliveryInfo, self).__init__(**kwargs) - self.scheduled_date_time = kwargs.get('scheduled_date_time', None) - - -class JobErrorDetails(msrest.serialization.Model): - """Job Error Details for providing the information and recommended action. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_message: Message for the error. - :vartype error_message: str - :ivar error_code: Code for the error. - :vartype error_code: int - :ivar recommended_action: Recommended action for the error. - :vartype recommended_action: str - :ivar exception_message: Contains the non localized exception message. - :vartype exception_message: str - """ - - _validation = { - 'error_message': {'readonly': True}, - 'error_code': {'readonly': True}, - 'recommended_action': {'readonly': True}, - 'exception_message': {'readonly': True}, - } - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'recommended_action': {'key': 'recommendedAction', 'type': 'str'}, - 'exception_message': {'key': 'exceptionMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(JobErrorDetails, self).__init__(**kwargs) - self.error_message = None - self.error_code = None - self.recommended_action = None - self.exception_message = None - - -class Resource(msrest.serialization.Model): - """Model of the Resource. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The location of the resource. This will be one of the supported and - registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a - resource cannot be changed once it is created, but if an identical region is specified on - update the request will succeed. - :type location: str - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param sku: Required. The sku type. - :type sku: ~azure.mgmt.databox.models.Sku - """ - - _validation = { - 'location': {'required': True}, - 'sku': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.location = kwargs['location'] - self.tags = kwargs.get('tags', None) - self.sku = kwargs['sku'] - - -class JobResource(Resource): - """Job Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The location of the resource. This will be one of the supported and - registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a - resource cannot be changed once it is created, but if an identical region is specified on - update the request will succeed. - :type location: str - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param sku: Required. The sku type. - :type sku: ~azure.mgmt.databox.models.Sku - :ivar name: Name of the object. - :vartype name: str - :ivar id: Id of the object. - :vartype id: str - :ivar type: Type of the object. - :vartype type: str - :ivar is_cancellable: Describes whether the job is cancellable or not. - :vartype is_cancellable: bool - :ivar is_deletable: Describes whether the job is deletable or not. - :vartype is_deletable: bool - :ivar is_shipping_address_editable: Describes whether the shipping address is editable or not. - :vartype is_shipping_address_editable: bool - :ivar status: Name of the stage which is in progress. Possible values include: "DeviceOrdered", - "DevicePrepared", "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy", "Completed", - "CompletedWithErrors", "Cancelled", "Failed_IssueReportedAtCustomer", - "Failed_IssueDetectedAtAzureDC", "Aborted", "CompletedWithWarnings", - "ReadyToDispatchFromAzureDC", "ReadyToReceiveAtAzureDC". - :vartype status: str or ~azure.mgmt.databox.models.StageName - :ivar start_time: Time at which the job was started in UTC ISO 8601 format. - :vartype start_time: ~datetime.datetime - :ivar error: Top level error for the job. - :vartype error: ~azure.mgmt.databox.models.Error - :param details: Details of a job run. This field will only be sent for expand details filter. - :type details: ~azure.mgmt.databox.models.JobDetails - :ivar cancellation_reason: Reason for cancellation. - :vartype cancellation_reason: str - :param delivery_type: Delivery type of Job. Possible values include: "NonScheduled", - "Scheduled". - :type delivery_type: str or ~azure.mgmt.databox.models.JobDeliveryType - :param delivery_info: Delivery Info of Job. - :type delivery_info: ~azure.mgmt.databox.models.JobDeliveryInfo - :ivar is_cancellable_without_fee: Flag to indicate cancellation of scheduled job. - :vartype is_cancellable_without_fee: bool - """ - - _validation = { - 'location': {'required': True}, - 'sku': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'is_cancellable': {'readonly': True}, - 'is_deletable': {'readonly': True}, - 'is_shipping_address_editable': {'readonly': True}, - 'status': {'readonly': True}, - 'start_time': {'readonly': True}, - 'error': {'readonly': True}, - 'cancellation_reason': {'readonly': True}, - 'is_cancellable_without_fee': {'readonly': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'name': {'key': 'name', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'is_cancellable': {'key': 'properties.isCancellable', 'type': 'bool'}, - 'is_deletable': {'key': 'properties.isDeletable', 'type': 'bool'}, - 'is_shipping_address_editable': {'key': 'properties.isShippingAddressEditable', 'type': 'bool'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, - 'error': {'key': 'properties.error', 'type': 'Error'}, - 'details': {'key': 'properties.details', 'type': 'JobDetails'}, - 'cancellation_reason': {'key': 'properties.cancellationReason', 'type': 'str'}, - 'delivery_type': {'key': 'properties.deliveryType', 'type': 'str'}, - 'delivery_info': {'key': 'properties.deliveryInfo', 'type': 'JobDeliveryInfo'}, - 'is_cancellable_without_fee': {'key': 'properties.isCancellableWithoutFee', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(JobResource, self).__init__(**kwargs) - self.name = None - self.id = None - self.type = None - self.is_cancellable = None - self.is_deletable = None - self.is_shipping_address_editable = None - self.status = None - self.start_time = None - self.error = None - self.details = kwargs.get('details', None) - self.cancellation_reason = None - self.delivery_type = kwargs.get('delivery_type', None) - self.delivery_info = kwargs.get('delivery_info', None) - self.is_cancellable_without_fee = None - - -class JobResourceList(msrest.serialization.Model): - """Job Resource Collection. - - :param value: List of job resources. - :type value: list[~azure.mgmt.databox.models.JobResource] - :param next_link: Link for the next set of job resources. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[JobResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(JobResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class JobResourceUpdateParameter(msrest.serialization.Model): - """The JobResourceUpdateParameter. - - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param details: Details of a job to be updated. - :type details: ~azure.mgmt.databox.models.UpdateJobDetails - :param destination_account_details: Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'details': {'key': 'properties.details', 'type': 'UpdateJobDetails'}, - 'destination_account_details': {'key': 'properties.destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(JobResourceUpdateParameter, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.details = kwargs.get('details', None) - self.destination_account_details = kwargs.get('destination_account_details', None) - - -class JobStages(msrest.serialization.Model): - """Job stages. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar stage_name: Name of the job stage. Possible values include: "DeviceOrdered", - "DevicePrepared", "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy", "Completed", - "CompletedWithErrors", "Cancelled", "Failed_IssueReportedAtCustomer", - "Failed_IssueDetectedAtAzureDC", "Aborted", "CompletedWithWarnings", - "ReadyToDispatchFromAzureDC", "ReadyToReceiveAtAzureDC". - :vartype stage_name: str or ~azure.mgmt.databox.models.StageName - :ivar display_name: Display name of the job stage. - :vartype display_name: str - :ivar stage_status: Status of the job stage. Possible values include: "None", "InProgress", - "Succeeded", "Failed", "Cancelled", "Cancelling", "SucceededWithErrors". - :vartype stage_status: str or ~azure.mgmt.databox.models.StageStatus - :ivar stage_time: Time for the job stage in UTC ISO 8601 format. - :vartype stage_time: ~datetime.datetime - :ivar job_stage_details: Job Stage Details. - :vartype job_stage_details: object - :ivar error_details: Error details for the stage. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - """ - - _validation = { - 'stage_name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'stage_status': {'readonly': True}, - 'stage_time': {'readonly': True}, - 'job_stage_details': {'readonly': True}, - 'error_details': {'readonly': True}, - } - - _attribute_map = { - 'stage_name': {'key': 'stageName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'stage_status': {'key': 'stageStatus', 'type': 'str'}, - 'stage_time': {'key': 'stageTime', 'type': 'iso-8601'}, - 'job_stage_details': {'key': 'jobStageDetails', 'type': 'object'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(JobStages, self).__init__(**kwargs) - self.stage_name = None - self.display_name = None - self.stage_status = None - self.stage_time = None - self.job_stage_details = None - self.error_details = None - - -class NotificationPreference(msrest.serialization.Model): - """Notification preference for a job stage. - - All required parameters must be populated in order to send to Azure. - - :param stage_name: Required. Name of the stage. Possible values include: "DevicePrepared", - "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy". - :type stage_name: str or ~azure.mgmt.databox.models.NotificationStageName - :param send_notification: Required. Notification is required or not. - :type send_notification: bool - """ - - _validation = { - 'stage_name': {'required': True}, - 'send_notification': {'required': True}, - } - - _attribute_map = { - 'stage_name': {'key': 'stageName', 'type': 'str'}, - 'send_notification': {'key': 'sendNotification', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(NotificationPreference, self).__init__(**kwargs) - self.stage_name = kwargs['stage_name'] - self.send_notification = kwargs['send_notification'] - - -class Operation(msrest.serialization.Model): - """Operation entity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. Format: - {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}. - :vartype name: str - :ivar display: Operation display values. - :vartype display: ~azure.mgmt.databox.models.OperationDisplay - :ivar properties: Operation properties. - :vartype properties: object - :ivar origin: Origin of the operation. Can be : user|system|user,system. - :vartype origin: str - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - 'properties': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None - self.properties = None - self.origin = None - - -class OperationDisplay(msrest.serialization.Model): - """Operation display. - - :param provider: Provider name. - :type provider: str - :param resource: Resource name. - :type resource: str - :param operation: Localized name of the operation for display purpose. - :type operation: str - :param description: Localized description of the operation for display purpose. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) - - -class OperationList(msrest.serialization.Model): - """Operation Collection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: List of operations. - :vartype value: list[~azure.mgmt.databox.models.Operation] - :param next_link: Link for the next set of operations. - :type next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationList, self).__init__(**kwargs) - self.value = None - self.next_link = kwargs.get('next_link', None) - - -class PackageShippingDetails(msrest.serialization.Model): - """Shipping details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar carrier_name: Name of the carrier. - :vartype carrier_name: str - :ivar tracking_id: Tracking Id of shipment. - :vartype tracking_id: str - :ivar tracking_url: Url where shipment can be tracked. - :vartype tracking_url: str - """ - - _validation = { - 'carrier_name': {'readonly': True}, - 'tracking_id': {'readonly': True}, - 'tracking_url': {'readonly': True}, - } - - _attribute_map = { - 'carrier_name': {'key': 'carrierName', 'type': 'str'}, - 'tracking_id': {'key': 'trackingId', 'type': 'str'}, - 'tracking_url': {'key': 'trackingUrl', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PackageShippingDetails, self).__init__(**kwargs) - self.carrier_name = None - self.tracking_id = None - self.tracking_url = None - - -class Preferences(msrest.serialization.Model): - """Preferences related to the order. - - :param preferred_data_center_region: Preferred Data Center Region. - :type preferred_data_center_region: list[str] - :param transport_preferences: Preferences related to the shipment logistics of the sku. - :type transport_preferences: ~azure.mgmt.databox.models.TransportPreferences - """ - - _attribute_map = { - 'preferred_data_center_region': {'key': 'preferredDataCenterRegion', 'type': '[str]'}, - 'transport_preferences': {'key': 'transportPreferences', 'type': 'TransportPreferences'}, - } - - def __init__( - self, - **kwargs - ): - super(Preferences, self).__init__(**kwargs) - self.preferred_data_center_region = kwargs.get('preferred_data_center_region', None) - self.transport_preferences = kwargs.get('transport_preferences', None) - - -class PreferencesValidationRequest(ValidationInputRequest): - """Request to validate preference of transport and data center. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param preference: Preference requested with respect to transport type and data center. - :type preference: ~azure.mgmt.databox.models.Preferences - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'preference': {'key': 'preference', 'type': 'Preferences'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PreferencesValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidatePreferences' # type: str - self.preference = kwargs.get('preference', None) - self.device_type = kwargs['device_type'] - - -class PreferencesValidationResponseProperties(ValidationInputResponse): - """Properties of data center and transport preference validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Validation status of requested data center and transport. Possible values - include: "Valid", "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PreferencesValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidatePreferences' # type: str - self.status = None - - -class RegionConfigurationRequest(msrest.serialization.Model): - """Request body to get the configuration for the region. - - :param schedule_availability_request: Request body to get the availability for scheduling - orders. - :type schedule_availability_request: ~azure.mgmt.databox.models.ScheduleAvailabilityRequest - :param transport_availability_request: Request body to get the transport availability for given - sku. - :type transport_availability_request: ~azure.mgmt.databox.models.TransportAvailabilityRequest - """ - - _attribute_map = { - 'schedule_availability_request': {'key': 'scheduleAvailabilityRequest', 'type': 'ScheduleAvailabilityRequest'}, - 'transport_availability_request': {'key': 'transportAvailabilityRequest', 'type': 'TransportAvailabilityRequest'}, - } - - def __init__( - self, - **kwargs - ): - super(RegionConfigurationRequest, self).__init__(**kwargs) - self.schedule_availability_request = kwargs.get('schedule_availability_request', None) - self.transport_availability_request = kwargs.get('transport_availability_request', None) - - -class RegionConfigurationResponse(msrest.serialization.Model): - """Configuration response specific to a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar schedule_availability_response: Schedule availability for given sku in a region. - :vartype schedule_availability_response: - ~azure.mgmt.databox.models.ScheduleAvailabilityResponse - :ivar transport_availability_response: Transport options available for given sku in a region. - :vartype transport_availability_response: - ~azure.mgmt.databox.models.TransportAvailabilityResponse - """ - - _validation = { - 'schedule_availability_response': {'readonly': True}, - 'transport_availability_response': {'readonly': True}, - } - - _attribute_map = { - 'schedule_availability_response': {'key': 'scheduleAvailabilityResponse', 'type': 'ScheduleAvailabilityResponse'}, - 'transport_availability_response': {'key': 'transportAvailabilityResponse', 'type': 'TransportAvailabilityResponse'}, - } - - def __init__( - self, - **kwargs - ): - super(RegionConfigurationResponse, self).__init__(**kwargs) - self.schedule_availability_response = None - self.transport_availability_response = None - - -class ScheduleAvailabilityResponse(msrest.serialization.Model): - """Schedule availability response for given sku in a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar available_dates: List of dates available to schedule. - :vartype available_dates: list[~datetime.datetime] - """ - - _validation = { - 'available_dates': {'readonly': True}, - } - - _attribute_map = { - 'available_dates': {'key': 'availableDates', 'type': '[iso-8601]'}, - } - - def __init__( - self, - **kwargs - ): - super(ScheduleAvailabilityResponse, self).__init__(**kwargs) - self.available_dates = None - - -class ShareCredentialDetails(msrest.serialization.Model): - """Credential details of the shares in account. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar share_name: Name of the share. - :vartype share_name: str - :ivar share_type: Type of the share. Possible values include: "UnknownType", "HCS", - "BlockBlob", "PageBlob", "AzureFile", "ManagedDisk". - :vartype share_type: str or ~azure.mgmt.databox.models.ShareDestinationFormatType - :ivar user_name: User name for the share. - :vartype user_name: str - :ivar password: Password for the share. - :vartype password: str - :ivar supported_access_protocols: Access protocols supported on the device. - :vartype supported_access_protocols: list[str or ~azure.mgmt.databox.models.AccessProtocol] - """ - - _validation = { - 'share_name': {'readonly': True}, - 'share_type': {'readonly': True}, - 'user_name': {'readonly': True}, - 'password': {'readonly': True}, - 'supported_access_protocols': {'readonly': True}, - } - - _attribute_map = { - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'share_type': {'key': 'shareType', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'supported_access_protocols': {'key': 'supportedAccessProtocols', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ShareCredentialDetails, self).__init__(**kwargs) - self.share_name = None - self.share_type = None - self.user_name = None - self.password = None - self.supported_access_protocols = None - - -class ShipmentPickUpRequest(msrest.serialization.Model): - """Shipment pick up request details. - - All required parameters must be populated in order to send to Azure. - - :param start_time: Required. Minimum date after which the pick up should commence, this must be - in local time of pick up area. - :type start_time: ~datetime.datetime - :param end_time: Required. Maximum date before which the pick up should commence, this must be - in local time of pick up area. - :type end_time: ~datetime.datetime - :param shipment_location: Required. Shipment Location in the pickup place. Eg.front desk. - :type shipment_location: str - """ - - _validation = { - 'start_time': {'required': True}, - 'end_time': {'required': True}, - 'shipment_location': {'required': True}, - } - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'shipment_location': {'key': 'shipmentLocation', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ShipmentPickUpRequest, self).__init__(**kwargs) - self.start_time = kwargs['start_time'] - self.end_time = kwargs['end_time'] - self.shipment_location = kwargs['shipment_location'] - - -class ShipmentPickUpResponse(msrest.serialization.Model): - """Shipment pick up response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar confirmation_number: Confirmation number for the pick up request. - :vartype confirmation_number: str - :ivar ready_by_time: Time by which shipment should be ready for pick up, this is in local time - of pick up area. - :vartype ready_by_time: ~datetime.datetime - """ - - _validation = { - 'confirmation_number': {'readonly': True}, - 'ready_by_time': {'readonly': True}, - } - - _attribute_map = { - 'confirmation_number': {'key': 'confirmationNumber', 'type': 'str'}, - 'ready_by_time': {'key': 'readyByTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ShipmentPickUpResponse, self).__init__(**kwargs) - self.confirmation_number = None - self.ready_by_time = None - - -class ShippingAddress(msrest.serialization.Model): - """Shipping address where customer wishes to receive the device. - - All required parameters must be populated in order to send to Azure. - - :param street_address1: Required. Street Address line 1. - :type street_address1: str - :param street_address2: Street Address line 2. - :type street_address2: str - :param street_address3: Street Address line 3. - :type street_address3: str - :param city: Name of the City. - :type city: str - :param state_or_province: Name of the State or Province. - :type state_or_province: str - :param country: Required. Name of the Country. - :type country: str - :param postal_code: Required. Postal code. - :type postal_code: str - :param zip_extended_code: Extended Zip Code. - :type zip_extended_code: str - :param company_name: Name of the company. - :type company_name: str - :param address_type: Type of address. Possible values include: "None", "Residential", - "Commercial". - :type address_type: str or ~azure.mgmt.databox.models.AddressType - """ - - _validation = { - 'street_address1': {'required': True}, - 'country': {'required': True}, - 'postal_code': {'required': True}, - } - - _attribute_map = { - 'street_address1': {'key': 'streetAddress1', 'type': 'str'}, - 'street_address2': {'key': 'streetAddress2', 'type': 'str'}, - 'street_address3': {'key': 'streetAddress3', 'type': 'str'}, - 'city': {'key': 'city', 'type': 'str'}, - 'state_or_province': {'key': 'stateOrProvince', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'postal_code': {'key': 'postalCode', 'type': 'str'}, - 'zip_extended_code': {'key': 'zipExtendedCode', 'type': 'str'}, - 'company_name': {'key': 'companyName', 'type': 'str'}, - 'address_type': {'key': 'addressType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ShippingAddress, self).__init__(**kwargs) - self.street_address1 = kwargs['street_address1'] - self.street_address2 = kwargs.get('street_address2', None) - self.street_address3 = kwargs.get('street_address3', None) - self.city = kwargs.get('city', None) - self.state_or_province = kwargs.get('state_or_province', None) - self.country = kwargs['country'] - self.postal_code = kwargs['postal_code'] - self.zip_extended_code = kwargs.get('zip_extended_code', None) - self.company_name = kwargs.get('company_name', None) - self.address_type = kwargs.get('address_type', None) - - -class Sku(msrest.serialization.Model): - """The Sku. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The sku name. Possible values include: "DataBox", "DataBoxDisk", - "DataBoxHeavy". - :type name: str or ~azure.mgmt.databox.models.SkuName - :param display_name: The display name of the sku. - :type display_name: str - :param family: The sku family. - :type family: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Sku, self).__init__(**kwargs) - self.name = kwargs['name'] - self.display_name = kwargs.get('display_name', None) - self.family = kwargs.get('family', None) - - -class SkuAvailabilityValidationRequest(ValidationInputRequest): - """Request to validate sku availability. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - :ivar transfer_type: Required. Type of the transfer. Default value: "ImportToAzure". - :vartype transfer_type: str - :param country: Required. ISO country code. Country for hardware shipment. For codes check: - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements. - :type country: str - :param location: Required. Location for data transfer. For locations check: - https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01. - :type location: str - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - 'transfer_type': {'required': True, 'constant': True}, - 'country': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - 'transfer_type': {'key': 'transferType', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - transfer_type = "ImportToAzure" - - def __init__( - self, - **kwargs - ): - super(SkuAvailabilityValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateSkuAvailability' # type: str - self.device_type = kwargs['device_type'] - self.country = kwargs['country'] - self.location = kwargs['location'] - - -class SkuAvailabilityValidationResponseProperties(ValidationInputResponse): - """Properties of sku availability validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Sku availability validation status. Possible values include: "Valid", "Invalid", - "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuAvailabilityValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateSkuAvailability' # type: str - self.status = None - - -class SkuCapacity(msrest.serialization.Model): - """Capacity of the sku. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar usable: Usable capacity in TB. - :vartype usable: str - :ivar maximum: Maximum capacity in TB. - :vartype maximum: str - """ - - _validation = { - 'usable': {'readonly': True}, - 'maximum': {'readonly': True}, - } - - _attribute_map = { - 'usable': {'key': 'usable', 'type': 'str'}, - 'maximum': {'key': 'maximum', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCapacity, self).__init__(**kwargs) - self.usable = None - self.maximum = None - - -class SkuCost(msrest.serialization.Model): - """Describes metadata for retrieving price info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar meter_id: Meter id of the Sku. - :vartype meter_id: str - :ivar meter_type: The type of the meter. - :vartype meter_type: str - """ - - _validation = { - 'meter_id': {'readonly': True}, - 'meter_type': {'readonly': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterId', 'type': 'str'}, - 'meter_type': {'key': 'meterType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCost, self).__init__(**kwargs) - self.meter_id = None - self.meter_type = None - - -class SkuInformation(msrest.serialization.Model): - """Information of the sku. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar sku: The Sku. - :vartype sku: ~azure.mgmt.databox.models.Sku - :ivar enabled: The sku is enabled or not. - :vartype enabled: bool - :ivar destination_to_service_location_map: The map of destination location to service location. - :vartype destination_to_service_location_map: - list[~azure.mgmt.databox.models.DestinationToServiceLocationMap] - :ivar capacity: Capacity of the Sku. - :vartype capacity: ~azure.mgmt.databox.models.SkuCapacity - :ivar costs: Cost of the Sku. - :vartype costs: list[~azure.mgmt.databox.models.SkuCost] - :ivar api_versions: Api versions that support this Sku. - :vartype api_versions: list[str] - :ivar disabled_reason: Reason why the Sku is disabled. Possible values include: "None", - "Country", "Region", "Feature", "OfferType", "NoSubscriptionInfo". - :vartype disabled_reason: str or ~azure.mgmt.databox.models.SkuDisabledReason - :ivar disabled_reason_message: Message for why the Sku is disabled. - :vartype disabled_reason_message: str - :ivar required_feature: Required feature to access the sku. - :vartype required_feature: str - """ - - _validation = { - 'sku': {'readonly': True}, - 'enabled': {'readonly': True}, - 'destination_to_service_location_map': {'readonly': True}, - 'capacity': {'readonly': True}, - 'costs': {'readonly': True}, - 'api_versions': {'readonly': True}, - 'disabled_reason': {'readonly': True}, - 'disabled_reason_message': {'readonly': True}, - 'required_feature': {'readonly': True}, - } - - _attribute_map = { - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'destination_to_service_location_map': {'key': 'properties.destinationToServiceLocationMap', 'type': '[DestinationToServiceLocationMap]'}, - 'capacity': {'key': 'properties.capacity', 'type': 'SkuCapacity'}, - 'costs': {'key': 'properties.costs', 'type': '[SkuCost]'}, - 'api_versions': {'key': 'properties.apiVersions', 'type': '[str]'}, - 'disabled_reason': {'key': 'properties.disabledReason', 'type': 'str'}, - 'disabled_reason_message': {'key': 'properties.disabledReasonMessage', 'type': 'str'}, - 'required_feature': {'key': 'properties.requiredFeature', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuInformation, self).__init__(**kwargs) - self.sku = None - self.enabled = None - self.destination_to_service_location_map = None - self.capacity = None - self.costs = None - self.api_versions = None - self.disabled_reason = None - self.disabled_reason_message = None - self.required_feature = None - - -class SubscriptionIsAllowedToCreateJobValidationRequest(ValidationInputRequest): - """Request to validate subscription permission to create jobs. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - """ - - _validation = { - 'validation_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionIsAllowedToCreateJobValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateSubscriptionIsAllowedToCreateJob' # type: str - - -class SubscriptionIsAllowedToCreateJobValidationResponseProperties(ValidationInputResponse): - """Properties of subscription permission to create job validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Validation status of subscription permission to create job. Possible values - include: "Valid", "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionIsAllowedToCreateJobValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateSubscriptionIsAllowedToCreateJob' # type: str - self.status = None - - -class TransportAvailabilityDetails(msrest.serialization.Model): - """Transport options availability details for given region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar shipment_type: Transport Shipment Type supported for given region. Possible values - include: "CustomerManaged", "MicrosoftManaged". - :vartype shipment_type: str or ~azure.mgmt.databox.models.TransportShipmentTypes - """ - - _validation = { - 'shipment_type': {'readonly': True}, - } - - _attribute_map = { - 'shipment_type': {'key': 'shipmentType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportAvailabilityDetails, self).__init__(**kwargs) - self.shipment_type = None - - -class TransportAvailabilityRequest(msrest.serialization.Model): - """Request body to get the transport availability for given sku. - - :param sku_name: Type of the device. Possible values include: "DataBox", "DataBoxDisk", - "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _attribute_map = { - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportAvailabilityRequest, self).__init__(**kwargs) - self.sku_name = kwargs.get('sku_name', None) - - -class TransportAvailabilityResponse(msrest.serialization.Model): - """Transport options available for given sku in a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar transport_availability_details: List of transport availability details for given region. - :vartype transport_availability_details: - list[~azure.mgmt.databox.models.TransportAvailabilityDetails] - """ - - _validation = { - 'transport_availability_details': {'readonly': True}, - } - - _attribute_map = { - 'transport_availability_details': {'key': 'transportAvailabilityDetails', 'type': '[TransportAvailabilityDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportAvailabilityResponse, self).__init__(**kwargs) - self.transport_availability_details = None - - -class TransportPreferences(msrest.serialization.Model): - """Preferences related to the shipment logistics of the sku. - - All required parameters must be populated in order to send to Azure. - - :param preferred_shipment_type: Required. Indicates Shipment Logistics type that the customer - preferred. Possible values include: "CustomerManaged", "MicrosoftManaged". - :type preferred_shipment_type: str or ~azure.mgmt.databox.models.TransportShipmentTypes - """ - - _validation = { - 'preferred_shipment_type': {'required': True}, - } - - _attribute_map = { - 'preferred_shipment_type': {'key': 'preferredShipmentType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportPreferences, self).__init__(**kwargs) - self.preferred_shipment_type = kwargs['preferred_shipment_type'] - - -class UnencryptedCredentials(msrest.serialization.Model): - """Unencrypted credentials for accessing device. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar job_name: Name of the job. - :vartype job_name: str - :ivar job_secrets: Secrets related to this job. - :vartype job_secrets: ~azure.mgmt.databox.models.JobSecrets - """ - - _validation = { - 'job_name': {'readonly': True}, - 'job_secrets': {'readonly': True}, - } - - _attribute_map = { - 'job_name': {'key': 'jobName', 'type': 'str'}, - 'job_secrets': {'key': 'jobSecrets', 'type': 'JobSecrets'}, - } - - def __init__( - self, - **kwargs - ): - super(UnencryptedCredentials, self).__init__(**kwargs) - self.job_name = None - self.job_secrets = None - - -class UnencryptedCredentialsList(msrest.serialization.Model): - """List of unencrypted credentials for accessing device. - - :param value: List of unencrypted credentials. - :type value: list[~azure.mgmt.databox.models.UnencryptedCredentials] - :param next_link: Link for the next set of unencrypted credentials. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[UnencryptedCredentials]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(UnencryptedCredentialsList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class UpdateJobDetails(msrest.serialization.Model): - """Job details for update. - - :param contact_details: Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - """ - - _attribute_map = { - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - } - - def __init__( - self, - **kwargs - ): - super(UpdateJobDetails, self).__init__(**kwargs) - self.contact_details = kwargs.get('contact_details', None) - self.shipping_address = kwargs.get('shipping_address', None) - - -class ValidateAddress(ValidationInputRequest): - """The requirements to validate customer address where the device needs to be shipped. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - :param transport_preferences: Preferences related to the shipment logistics of the sku. - :type transport_preferences: ~azure.mgmt.databox.models.TransportPreferences - """ - - _validation = { - 'validation_type': {'required': True}, - 'shipping_address': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - 'transport_preferences': {'key': 'transportPreferences', 'type': 'TransportPreferences'}, - } - - def __init__( - self, - **kwargs - ): - super(ValidateAddress, self).__init__(**kwargs) - self.validation_type = 'ValidateAddress' # type: str - self.shipping_address = kwargs['shipping_address'] - self.device_type = kwargs['device_type'] - self.transport_preferences = kwargs.get('transport_preferences', None) - - -class ValidationResponse(msrest.serialization.Model): - """Response of pre job creation validations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar status: Overall validation status. Possible values include: "AllValidToProceed", - "InputsRevisitRequired", "CertainInputValidationsSkipped". - :vartype status: str or ~azure.mgmt.databox.models.OverallValidationStatus - :ivar individual_response_details: List of response details contain validationType and its - response as key and value respectively. - :vartype individual_response_details: list[~azure.mgmt.databox.models.ValidationInputResponse] - """ - - _validation = { - 'status': {'readonly': True}, - 'individual_response_details': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'properties.status', 'type': 'str'}, - 'individual_response_details': {'key': 'properties.individualResponseDetails', 'type': '[ValidationInputResponse]'}, - } - - def __init__( - self, - **kwargs - ): - super(ValidationResponse, self).__init__(**kwargs) - self.status = None - self.individual_response_details = None diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models_py3.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models_py3.py deleted file mode 100644 index 89c41698459..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/models/_models_py3.py +++ /dev/null @@ -1,3520 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -from typing import Dict, List, Optional, Union - -import msrest.serialization - -from ._data_box_management_client_enums import * - - -class AccountCredentialDetails(msrest.serialization.Model): - """Credential details of the account. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar account_name: Name of the account. - :vartype account_name: str - :ivar data_destination_type: Data Destination Type. Possible values include: "StorageAccount", - "ManagedDisk". - :vartype data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :ivar account_connection_string: Connection string of the account endpoint to use the account - as a storage endpoint on the device. - :vartype account_connection_string: str - :ivar share_credential_details: Per share level unencrypted access credentials. - :vartype share_credential_details: list[~azure.mgmt.databox.models.ShareCredentialDetails] - """ - - _validation = { - 'account_name': {'readonly': True}, - 'data_destination_type': {'readonly': True}, - 'account_connection_string': {'readonly': True}, - 'share_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_connection_string': {'key': 'accountConnectionString', 'type': 'str'}, - 'share_credential_details': {'key': 'shareCredentialDetails', 'type': '[ShareCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(AccountCredentialDetails, self).__init__(**kwargs) - self.account_name = None - self.data_destination_type = None - self.account_connection_string = None - self.share_credential_details = None - - -class AddressValidationOutput(msrest.serialization.Model): - """Output of the address validation api. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param validation_type: Identifies the type of validation response.Constant filled by server. - Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar validation_status: The address validation status. Possible values include: "Valid", - "Invalid", "Ambiguous". - :vartype validation_status: str or ~azure.mgmt.databox.models.AddressValidationStatus - :ivar alternate_addresses: List of alternate addresses. - :vartype alternate_addresses: list[~azure.mgmt.databox.models.ShippingAddress] - """ - - _validation = { - 'error': {'readonly': True}, - 'validation_status': {'readonly': True}, - 'alternate_addresses': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'properties.validationType', 'type': 'str'}, - 'error': {'key': 'properties.error', 'type': 'Error'}, - 'validation_status': {'key': 'properties.validationStatus', 'type': 'str'}, - 'alternate_addresses': {'key': 'properties.alternateAddresses', 'type': '[ShippingAddress]'}, - } - - def __init__( - self, - **kwargs - ): - super(AddressValidationOutput, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - self.error = None - self.validation_status = None - self.alternate_addresses = None - - -class ValidationInputResponse(msrest.serialization.Model): - """Minimum properties that should be present in each individual validation response. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AddressValidationProperties, CreateOrderLimitForSubscriptionValidationResponseProperties, DataDestinationDetailsValidationResponseProperties, PreferencesValidationResponseProperties, SkuAvailabilityValidationResponseProperties, SubscriptionIsAllowedToCreateJobValidationResponseProperties. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - } - - _subtype_map = { - 'validation_type': {'ValidateAddress': 'AddressValidationProperties', 'ValidateCreateOrderLimit': 'CreateOrderLimitForSubscriptionValidationResponseProperties', 'ValidateDataDestinationDetails': 'DataDestinationDetailsValidationResponseProperties', 'ValidatePreferences': 'PreferencesValidationResponseProperties', 'ValidateSkuAvailability': 'SkuAvailabilityValidationResponseProperties', 'ValidateSubscriptionIsAllowedToCreateJob': 'SubscriptionIsAllowedToCreateJobValidationResponseProperties'} - } - - def __init__( - self, - **kwargs - ): - super(ValidationInputResponse, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - self.error = None - - -class AddressValidationProperties(ValidationInputResponse): - """The address validation output. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar validation_status: The address validation status. Possible values include: "Valid", - "Invalid", "Ambiguous". - :vartype validation_status: str or ~azure.mgmt.databox.models.AddressValidationStatus - :ivar alternate_addresses: List of alternate addresses. - :vartype alternate_addresses: list[~azure.mgmt.databox.models.ShippingAddress] - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'validation_status': {'readonly': True}, - 'alternate_addresses': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'validation_status': {'key': 'validationStatus', 'type': 'str'}, - 'alternate_addresses': {'key': 'alternateAddresses', 'type': '[ShippingAddress]'}, - } - - def __init__( - self, - **kwargs - ): - super(AddressValidationProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateAddress' # type: str - self.validation_status = None - self.alternate_addresses = None - - -class ApplianceNetworkConfiguration(msrest.serialization.Model): - """The Network Adapter configuration of a DataBox. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the network. - :vartype name: str - :ivar mac_address: Mac Address. - :vartype mac_address: str - """ - - _validation = { - 'name': {'readonly': True}, - 'mac_address': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'mac_address': {'key': 'macAddress', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ApplianceNetworkConfiguration, self).__init__(**kwargs) - self.name = None - self.mac_address = None - - -class ArmBaseObject(msrest.serialization.Model): - """Base class for all objects under resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the object. - :vartype name: str - :ivar id: Id of the object. - :vartype id: str - :ivar type: Type of the object. - :vartype type: str - """ - - _validation = { - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ArmBaseObject, self).__init__(**kwargs) - self.name = None - self.id = None - self.type = None - - -class AvailableSkuRequest(msrest.serialization.Model): - """The filters for showing the available skus. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar transfer_type: Required. Type of the transfer. Default value: "ImportToAzure". - :vartype transfer_type: str - :param country: Required. ISO country code. Country for hardware shipment. For codes check: - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements. - :type country: str - :param location: Required. Location for data transfer. For locations check: - https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01. - :type location: str - :param sku_names: Sku Names to filter for available skus. - :type sku_names: list[str or ~azure.mgmt.databox.models.SkuName] - """ - - _validation = { - 'transfer_type': {'required': True, 'constant': True}, - 'country': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'transfer_type': {'key': 'transferType', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'sku_names': {'key': 'skuNames', 'type': '[str]'}, - } - - transfer_type = "ImportToAzure" - - def __init__( - self, - *, - country: str, - location: str, - sku_names: Optional[List[Union[str, "SkuName"]]] = None, - **kwargs - ): - super(AvailableSkuRequest, self).__init__(**kwargs) - self.country = country - self.location = location - self.sku_names = sku_names - - -class AvailableSkusResult(msrest.serialization.Model): - """The available skus operation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: List of available skus. - :vartype value: list[~azure.mgmt.databox.models.SkuInformation] - :param next_link: Link for the next set of skus. - :type next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[SkuInformation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - next_link: Optional[str] = None, - **kwargs - ): - super(AvailableSkusResult, self).__init__(**kwargs) - self.value = None - self.next_link = next_link - - -class CancellationReason(msrest.serialization.Model): - """Reason for cancellation. - - All required parameters must be populated in order to send to Azure. - - :param reason: Required. Reason for cancellation. - :type reason: str - """ - - _validation = { - 'reason': {'required': True}, - } - - _attribute_map = { - 'reason': {'key': 'reason', 'type': 'str'}, - } - - def __init__( - self, - *, - reason: str, - **kwargs - ): - super(CancellationReason, self).__init__(**kwargs) - self.reason = reason - - -class CloudError(msrest.serialization.Model): - """The error information object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code string. - :vartype code: str - :ivar message: Descriptive error information. - :vartype message: str - :param target: Error target. - :type target: str - :param details: More detailed error information. - :type details: list[~azure.mgmt.databox.models.CloudError] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudError]'}, - } - - def __init__( - self, - *, - target: Optional[str] = None, - details: Optional[List["CloudError"]] = None, - **kwargs - ): - super(CloudError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = target - self.details = details - - -class ContactDetails(msrest.serialization.Model): - """Contact Details. - - All required parameters must be populated in order to send to Azure. - - :param contact_name: Required. Contact name of the person. - :type contact_name: str - :param phone: Required. Phone number of the contact person. - :type phone: str - :param phone_extension: Phone extension number of the contact person. - :type phone_extension: str - :param mobile: Mobile number of the contact person. - :type mobile: str - :param email_list: Required. List of Email-ids to be notified about job progress. - :type email_list: list[str] - :param notification_preference: Notification preference for a job stage. - :type notification_preference: list[~azure.mgmt.databox.models.NotificationPreference] - """ - - _validation = { - 'contact_name': {'required': True}, - 'phone': {'required': True}, - 'email_list': {'required': True}, - } - - _attribute_map = { - 'contact_name': {'key': 'contactName', 'type': 'str'}, - 'phone': {'key': 'phone', 'type': 'str'}, - 'phone_extension': {'key': 'phoneExtension', 'type': 'str'}, - 'mobile': {'key': 'mobile', 'type': 'str'}, - 'email_list': {'key': 'emailList', 'type': '[str]'}, - 'notification_preference': {'key': 'notificationPreference', 'type': '[NotificationPreference]'}, - } - - def __init__( - self, - *, - contact_name: str, - phone: str, - email_list: List[str], - phone_extension: Optional[str] = None, - mobile: Optional[str] = None, - notification_preference: Optional[List["NotificationPreference"]] = None, - **kwargs - ): - super(ContactDetails, self).__init__(**kwargs) - self.contact_name = contact_name - self.phone = phone - self.phone_extension = phone_extension - self.mobile = mobile - self.email_list = email_list - self.notification_preference = notification_preference - - -class CopyLogDetails(msrest.serialization.Model): - """Details for log generated during copy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxAccountCopyLogDetails, DataBoxDiskCopyLogDetails, DataBoxHeavyAccountCopyLogDetails. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - } - - _subtype_map = { - 'copy_log_details_type': {'DataBox': 'DataBoxAccountCopyLogDetails', 'DataBoxDisk': 'DataBoxDiskCopyLogDetails', 'DataBoxHeavy': 'DataBoxHeavyAccountCopyLogDetails'} - } - - def __init__( - self, - **kwargs - ): - super(CopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = None # type: Optional[str] - - -class CopyProgress(msrest.serialization.Model): - """Copy progress. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar storage_account_name: Name of the storage account where the data needs to be uploaded. - :vartype storage_account_name: str - :ivar data_destination_type: Data Destination Type. Possible values include: "StorageAccount", - "ManagedDisk". - :vartype data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :ivar account_id: Id of the account where the data needs to be uploaded. - :vartype account_id: str - :ivar bytes_sent_to_cloud: Amount of data uploaded by the job as of now. - :vartype bytes_sent_to_cloud: long - :ivar total_bytes_to_process: Total amount of data to be processed by the job. - :vartype total_bytes_to_process: long - :ivar files_processed: Number of files processed by the job as of now. - :vartype files_processed: long - :ivar total_files_to_process: Total number of files to be processed by the job. - :vartype total_files_to_process: long - :ivar invalid_files_processed: Number of files not adhering to azure naming conventions which - were processed by automatic renaming. - :vartype invalid_files_processed: long - :ivar invalid_file_bytes_uploaded: Total amount of data not adhering to azure naming - conventions which were processed by automatic renaming. - :vartype invalid_file_bytes_uploaded: long - :ivar renamed_container_count: Number of folders not adhering to azure naming conventions which - were processed by automatic renaming. - :vartype renamed_container_count: long - :ivar files_errored_out: Number of files which could not be copied. - :vartype files_errored_out: long - """ - - _validation = { - 'storage_account_name': {'readonly': True}, - 'data_destination_type': {'readonly': True}, - 'account_id': {'readonly': True}, - 'bytes_sent_to_cloud': {'readonly': True}, - 'total_bytes_to_process': {'readonly': True}, - 'files_processed': {'readonly': True}, - 'total_files_to_process': {'readonly': True}, - 'invalid_files_processed': {'readonly': True}, - 'invalid_file_bytes_uploaded': {'readonly': True}, - 'renamed_container_count': {'readonly': True}, - 'files_errored_out': {'readonly': True}, - } - - _attribute_map = { - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'bytes_sent_to_cloud': {'key': 'bytesSentToCloud', 'type': 'long'}, - 'total_bytes_to_process': {'key': 'totalBytesToProcess', 'type': 'long'}, - 'files_processed': {'key': 'filesProcessed', 'type': 'long'}, - 'total_files_to_process': {'key': 'totalFilesToProcess', 'type': 'long'}, - 'invalid_files_processed': {'key': 'invalidFilesProcessed', 'type': 'long'}, - 'invalid_file_bytes_uploaded': {'key': 'invalidFileBytesUploaded', 'type': 'long'}, - 'renamed_container_count': {'key': 'renamedContainerCount', 'type': 'long'}, - 'files_errored_out': {'key': 'filesErroredOut', 'type': 'long'}, - } - - def __init__( - self, - **kwargs - ): - super(CopyProgress, self).__init__(**kwargs) - self.storage_account_name = None - self.data_destination_type = None - self.account_id = None - self.bytes_sent_to_cloud = None - self.total_bytes_to_process = None - self.files_processed = None - self.total_files_to_process = None - self.invalid_files_processed = None - self.invalid_file_bytes_uploaded = None - self.renamed_container_count = None - self.files_errored_out = None - - -class ValidationRequest(msrest.serialization.Model): - """Input request for all pre job creation validation. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: CreateJobValidations. - - All required parameters must be populated in order to send to Azure. - - :param individual_request_details: Required. List of request details contain validationType and - its request as key and value respectively. - :type individual_request_details: list[~azure.mgmt.databox.models.ValidationInputRequest] - :param validation_category: Required. Identify the nature of validation.Constant filled by - server. - :type validation_category: str - """ - - _validation = { - 'individual_request_details': {'required': True}, - 'validation_category': {'required': True}, - } - - _attribute_map = { - 'individual_request_details': {'key': 'individualRequestDetails', 'type': '[ValidationInputRequest]'}, - 'validation_category': {'key': 'validationCategory', 'type': 'str'}, - } - - _subtype_map = { - 'validation_category': {'JobCreationValidation': 'CreateJobValidations'} - } - - def __init__( - self, - *, - individual_request_details: List["ValidationInputRequest"], - **kwargs - ): - super(ValidationRequest, self).__init__(**kwargs) - self.individual_request_details = individual_request_details - self.validation_category = None # type: Optional[str] - - -class CreateJobValidations(ValidationRequest): - """It does all pre-job creation validations. - - All required parameters must be populated in order to send to Azure. - - :param individual_request_details: Required. List of request details contain validationType and - its request as key and value respectively. - :type individual_request_details: list[~azure.mgmt.databox.models.ValidationInputRequest] - :param validation_category: Required. Identify the nature of validation.Constant filled by - server. - :type validation_category: str - """ - - _validation = { - 'individual_request_details': {'required': True}, - 'validation_category': {'required': True}, - } - - _attribute_map = { - 'individual_request_details': {'key': 'individualRequestDetails', 'type': '[ValidationInputRequest]'}, - 'validation_category': {'key': 'validationCategory', 'type': 'str'}, - } - - def __init__( - self, - *, - individual_request_details: List["ValidationInputRequest"], - **kwargs - ): - super(CreateJobValidations, self).__init__(individual_request_details=individual_request_details, **kwargs) - self.validation_category = 'JobCreationValidation' # type: str - - -class ValidationInputRequest(msrest.serialization.Model): - """Minimum fields that must be present in any type of validation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateAddress, CreateOrderLimitForSubscriptionValidationRequest, DataDestinationDetailsValidationRequest, PreferencesValidationRequest, SkuAvailabilityValidationRequest, SubscriptionIsAllowedToCreateJobValidationRequest. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - """ - - _validation = { - 'validation_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - } - - _subtype_map = { - 'validation_type': {'ValidateAddress': 'ValidateAddress', 'ValidateCreateOrderLimit': 'CreateOrderLimitForSubscriptionValidationRequest', 'ValidateDataDestinationDetails': 'DataDestinationDetailsValidationRequest', 'ValidatePreferences': 'PreferencesValidationRequest', 'ValidateSkuAvailability': 'SkuAvailabilityValidationRequest', 'ValidateSubscriptionIsAllowedToCreateJob': 'SubscriptionIsAllowedToCreateJobValidationRequest'} - } - - def __init__( - self, - **kwargs - ): - super(ValidationInputRequest, self).__init__(**kwargs) - self.validation_type = None # type: Optional[str] - - -class CreateOrderLimitForSubscriptionValidationRequest(ValidationInputRequest): - """Request to validate create order limit for current subscription. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - } - - def __init__( - self, - *, - device_type: Union[str, "SkuName"], - **kwargs - ): - super(CreateOrderLimitForSubscriptionValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateCreateOrderLimit' # type: str - self.device_type = device_type - - -class CreateOrderLimitForSubscriptionValidationResponseProperties(ValidationInputResponse): - """Properties of create order limit for subscription validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Create order limit validation status. Possible values include: "Valid", - "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CreateOrderLimitForSubscriptionValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateCreateOrderLimit' # type: str - self.status = None - - -class DataBoxAccountCopyLogDetails(CopyLogDetails): - """Copy log details for a storage account of a DataBox job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar account_name: Destination account name. - :vartype account_name: str - :ivar copy_log_link: Link for copy logs. - :vartype copy_log_link: str - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'account_name': {'readonly': True}, - 'copy_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'copy_log_link': {'key': 'copyLogLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxAccountCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBox' # type: str - self.account_name = None - self.copy_log_link = None - - -class DataBoxDiskCopyLogDetails(CopyLogDetails): - """Copy Log Details for a disk. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar disk_serial_number: Disk Serial Number. - :vartype disk_serial_number: str - :ivar error_log_link: Link for copy error logs. - :vartype error_log_link: str - :ivar verbose_log_link: Link for copy verbose logs. - :vartype verbose_log_link: str - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'disk_serial_number': {'readonly': True}, - 'error_log_link': {'readonly': True}, - 'verbose_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'disk_serial_number': {'key': 'diskSerialNumber', 'type': 'str'}, - 'error_log_link': {'key': 'errorLogLink', 'type': 'str'}, - 'verbose_log_link': {'key': 'verboseLogLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBoxDisk' # type: str - self.disk_serial_number = None - self.error_log_link = None - self.verbose_log_link = None - - -class DataBoxDiskCopyProgress(msrest.serialization.Model): - """DataBox Disk Copy Progress. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar serial_number: The serial number of the disk. - :vartype serial_number: str - :ivar bytes_copied: Bytes copied during the copy of disk. - :vartype bytes_copied: long - :ivar percent_complete: Indicates the percentage completed for the copy of the disk. - :vartype percent_complete: int - :ivar status: The Status of the copy. Possible values include: "NotStarted", "InProgress", - "Completed", "CompletedWithErrors", "Failed", "NotReturned", "HardwareError", - "DeviceFormatted", "DeviceMetadataModified", "StorageAccountNotAccessible", "UnsupportedData". - :vartype status: str or ~azure.mgmt.databox.models.CopyStatus - """ - - _validation = { - 'serial_number': {'readonly': True}, - 'bytes_copied': {'readonly': True}, - 'percent_complete': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'serial_number': {'key': 'serialNumber', 'type': 'str'}, - 'bytes_copied': {'key': 'bytesCopied', 'type': 'long'}, - 'percent_complete': {'key': 'percentComplete', 'type': 'int'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxDiskCopyProgress, self).__init__(**kwargs) - self.serial_number = None - self.bytes_copied = None - self.percent_complete = None - self.status = None - - -class JobDetails(msrest.serialization.Model): - """Job details. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxJobDetails, DataBoxDiskJobDetails, DataBoxHeavyJobDetails. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - } - - _subtype_map = { - 'job_details_type': {'DataBox': 'DataBoxJobDetails', 'DataBoxDisk': 'DataBoxDiskJobDetails', 'DataBoxHeavy': 'DataBoxHeavyJobDetails'} - } - - def __init__( - self, - *, - contact_details: "ContactDetails", - shipping_address: "ShippingAddress", - destination_account_details: List["DestinationAccountDetails"], - expected_data_size_in_terabytes: Optional[int] = None, - preferences: Optional["Preferences"] = None, - **kwargs - ): - super(JobDetails, self).__init__(**kwargs) - self.expected_data_size_in_terabytes = expected_data_size_in_terabytes - self.job_stages = None - self.contact_details = contact_details - self.shipping_address = shipping_address - self.delivery_package = None - self.return_package = None - self.destination_account_details = destination_account_details - self.error_details = None - self.job_details_type = None # type: Optional[str] - self.preferences = preferences - self.copy_log_details = None - self.reverse_shipment_label_sas_key = None - self.chain_of_custody_sas_key = None - - -class DataBoxDiskJobDetails(JobDetails): - """DataBox Disk Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :param preferred_disks: User preference on what size disks are needed for the job. The map is - from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but - will be checked against an int. - :type preferred_disks: dict[str, int] - :ivar copy_progress: Copy progress per disk. - :vartype copy_progress: list[~azure.mgmt.databox.models.DataBoxDiskCopyProgress] - :ivar disks_and_size_details: Contains the map of disk serial number to the disk size being - used for the job. Is returned only after the disks are shipped to the customer. - :vartype disks_and_size_details: dict[str, int] - :param passkey: User entered passkey for DataBox Disk job. - :type passkey: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - 'disks_and_size_details': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'preferred_disks': {'key': 'preferredDisks', 'type': '{int}'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[DataBoxDiskCopyProgress]'}, - 'disks_and_size_details': {'key': 'disksAndSizeDetails', 'type': '{int}'}, - 'passkey': {'key': 'passkey', 'type': 'str'}, - } - - def __init__( - self, - *, - contact_details: "ContactDetails", - shipping_address: "ShippingAddress", - destination_account_details: List["DestinationAccountDetails"], - expected_data_size_in_terabytes: Optional[int] = None, - preferences: Optional["Preferences"] = None, - preferred_disks: Optional[Dict[str, int]] = None, - passkey: Optional[str] = None, - **kwargs - ): - super(DataBoxDiskJobDetails, self).__init__(expected_data_size_in_terabytes=expected_data_size_in_terabytes, contact_details=contact_details, shipping_address=shipping_address, destination_account_details=destination_account_details, preferences=preferences, **kwargs) - self.job_details_type = 'DataBoxDisk' # type: str - self.preferred_disks = preferred_disks - self.copy_progress = None - self.disks_and_size_details = None - self.passkey = passkey - - -class JobSecrets(msrest.serialization.Model): - """The base class for the secrets. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataboxJobSecrets, DataBoxDiskJobSecrets, DataBoxHeavyJobSecrets. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - """ - - _validation = { - 'job_secrets_type': {'required': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - } - - _subtype_map = { - 'job_secrets_type': {'DataBox': 'DataboxJobSecrets', 'DataBoxDisk': 'DataBoxDiskJobSecrets', 'DataBoxHeavy': 'DataBoxHeavyJobSecrets'} - } - - def __init__( - self, - *, - dc_access_security_code: Optional["DcAccessSecurityCode"] = None, - **kwargs - ): - super(JobSecrets, self).__init__(**kwargs) - self.job_secrets_type = None # type: Optional[str] - self.dc_access_security_code = dc_access_security_code - - -class DataBoxDiskJobSecrets(JobSecrets): - """The secrets related to disk job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :ivar disk_secrets: Contains the list of secrets object for that device. - :vartype disk_secrets: list[~azure.mgmt.databox.models.DiskSecret] - :ivar pass_key: PassKey for the disk Job. - :vartype pass_key: str - :ivar is_passkey_user_defined: Whether passkey was provided by user. - :vartype is_passkey_user_defined: bool - """ - - _validation = { - 'job_secrets_type': {'required': True}, - 'disk_secrets': {'readonly': True}, - 'pass_key': {'readonly': True}, - 'is_passkey_user_defined': {'readonly': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'disk_secrets': {'key': 'diskSecrets', 'type': '[DiskSecret]'}, - 'pass_key': {'key': 'passKey', 'type': 'str'}, - 'is_passkey_user_defined': {'key': 'isPasskeyUserDefined', 'type': 'bool'}, - } - - def __init__( - self, - *, - dc_access_security_code: Optional["DcAccessSecurityCode"] = None, - **kwargs - ): - super(DataBoxDiskJobSecrets, self).__init__(dc_access_security_code=dc_access_security_code, **kwargs) - self.job_secrets_type = 'DataBoxDisk' # type: str - self.disk_secrets = None - self.pass_key = None - self.is_passkey_user_defined = None - - -class DataBoxHeavyAccountCopyLogDetails(CopyLogDetails): - """Copy log details for a storage account for Databox heavy. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param copy_log_details_type: Required. Indicates the type of job details.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type copy_log_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :ivar account_name: Destination account name. - :vartype account_name: str - :ivar copy_log_link: Link for copy logs. - :vartype copy_log_link: list[str] - """ - - _validation = { - 'copy_log_details_type': {'required': True}, - 'account_name': {'readonly': True}, - 'copy_log_link': {'readonly': True}, - } - - _attribute_map = { - 'copy_log_details_type': {'key': 'copyLogDetailsType', 'type': 'str'}, - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'copy_log_link': {'key': 'copyLogLink', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavyAccountCopyLogDetails, self).__init__(**kwargs) - self.copy_log_details_type = 'DataBoxHeavy' # type: str - self.account_name = None - self.copy_log_link = None - - -class DataBoxHeavyJobDetails(JobDetails): - """Databox Heavy Device Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :ivar copy_progress: Copy progress per account. - :vartype copy_progress: list[~azure.mgmt.databox.models.CopyProgress] - :param device_password: Set Device password for unlocking Databox Heavy. - :type device_password: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[CopyProgress]'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - } - - def __init__( - self, - *, - contact_details: "ContactDetails", - shipping_address: "ShippingAddress", - destination_account_details: List["DestinationAccountDetails"], - expected_data_size_in_terabytes: Optional[int] = None, - preferences: Optional["Preferences"] = None, - device_password: Optional[str] = None, - **kwargs - ): - super(DataBoxHeavyJobDetails, self).__init__(expected_data_size_in_terabytes=expected_data_size_in_terabytes, contact_details=contact_details, shipping_address=shipping_address, destination_account_details=destination_account_details, preferences=preferences, **kwargs) - self.job_details_type = 'DataBoxHeavy' # type: str - self.copy_progress = None - self.device_password = device_password - - -class DataBoxHeavyJobSecrets(JobSecrets): - """The secrets related to a databox heavy job. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :ivar cabinet_pod_secrets: Contains the list of secret objects for a databox heavy job. - :vartype cabinet_pod_secrets: list[~azure.mgmt.databox.models.DataBoxHeavySecret] - """ - - _validation = { - 'job_secrets_type': {'required': True}, - 'cabinet_pod_secrets': {'readonly': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'cabinet_pod_secrets': {'key': 'cabinetPodSecrets', 'type': '[DataBoxHeavySecret]'}, - } - - def __init__( - self, - *, - dc_access_security_code: Optional["DcAccessSecurityCode"] = None, - **kwargs - ): - super(DataBoxHeavyJobSecrets, self).__init__(dc_access_security_code=dc_access_security_code, **kwargs) - self.job_secrets_type = 'DataBoxHeavy' # type: str - self.cabinet_pod_secrets = None - - -class DataBoxHeavySecret(msrest.serialization.Model): - """The secrets related to a databox heavy. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar device_serial_number: Serial number of the assigned device. - :vartype device_serial_number: str - :ivar device_password: Password for out of the box experience on device. - :vartype device_password: str - :ivar network_configurations: Network configuration of the appliance. - :vartype network_configurations: list[~azure.mgmt.databox.models.ApplianceNetworkConfiguration] - :ivar encoded_validation_cert_pub_key: The base 64 encoded public key to authenticate with the - device. - :vartype encoded_validation_cert_pub_key: str - :ivar account_credential_details: Per account level access credentials. - :vartype account_credential_details: list[~azure.mgmt.databox.models.AccountCredentialDetails] - """ - - _validation = { - 'device_serial_number': {'readonly': True}, - 'device_password': {'readonly': True}, - 'network_configurations': {'readonly': True}, - 'encoded_validation_cert_pub_key': {'readonly': True}, - 'account_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'device_serial_number': {'key': 'deviceSerialNumber', 'type': 'str'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - 'network_configurations': {'key': 'networkConfigurations', 'type': '[ApplianceNetworkConfiguration]'}, - 'encoded_validation_cert_pub_key': {'key': 'encodedValidationCertPubKey', 'type': 'str'}, - 'account_credential_details': {'key': 'accountCredentialDetails', 'type': '[AccountCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxHeavySecret, self).__init__(**kwargs) - self.device_serial_number = None - self.device_password = None - self.network_configurations = None - self.encoded_validation_cert_pub_key = None - self.account_credential_details = None - - -class DataBoxJobDetails(JobDetails): - """Databox Job Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param expected_data_size_in_terabytes: The expected size of the data, which needs to be - transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - :ivar job_stages: List of stages that run in the job. - :vartype job_stages: list[~azure.mgmt.databox.models.JobStages] - :param contact_details: Required. Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :ivar delivery_package: Delivery package shipping details. - :vartype delivery_package: ~azure.mgmt.databox.models.PackageShippingDetails - :ivar return_package: Return package shipping details. - :vartype return_package: ~azure.mgmt.databox.models.PackageShippingDetails - :param destination_account_details: Required. Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :ivar error_details: Error details for failure. This is optional. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - :param job_details_type: Required. Indicates the type of job details.Constant filled by server. - Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_details_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param preferences: Preferences for the order. - :type preferences: ~azure.mgmt.databox.models.Preferences - :ivar copy_log_details: List of copy log details. - :vartype copy_log_details: list[~azure.mgmt.databox.models.CopyLogDetails] - :ivar reverse_shipment_label_sas_key: Shared access key to download the return shipment label. - :vartype reverse_shipment_label_sas_key: str - :ivar chain_of_custody_sas_key: Shared access key to download the chain of custody logs. - :vartype chain_of_custody_sas_key: str - :ivar copy_progress: Copy progress per storage account. - :vartype copy_progress: list[~azure.mgmt.databox.models.CopyProgress] - :param device_password: Set Device password for unlocking Databox. - :type device_password: str - """ - - _validation = { - 'job_stages': {'readonly': True}, - 'contact_details': {'required': True}, - 'shipping_address': {'required': True}, - 'delivery_package': {'readonly': True}, - 'return_package': {'readonly': True}, - 'destination_account_details': {'required': True}, - 'error_details': {'readonly': True}, - 'job_details_type': {'required': True}, - 'copy_log_details': {'readonly': True}, - 'reverse_shipment_label_sas_key': {'readonly': True}, - 'chain_of_custody_sas_key': {'readonly': True}, - 'copy_progress': {'readonly': True}, - } - - _attribute_map = { - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - 'job_stages': {'key': 'jobStages', 'type': '[JobStages]'}, - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'delivery_package': {'key': 'deliveryPackage', 'type': 'PackageShippingDetails'}, - 'return_package': {'key': 'returnPackage', 'type': 'PackageShippingDetails'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - 'job_details_type': {'key': 'jobDetailsType', 'type': 'str'}, - 'preferences': {'key': 'preferences', 'type': 'Preferences'}, - 'copy_log_details': {'key': 'copyLogDetails', 'type': '[CopyLogDetails]'}, - 'reverse_shipment_label_sas_key': {'key': 'reverseShipmentLabelSasKey', 'type': 'str'}, - 'chain_of_custody_sas_key': {'key': 'chainOfCustodySasKey', 'type': 'str'}, - 'copy_progress': {'key': 'copyProgress', 'type': '[CopyProgress]'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - } - - def __init__( - self, - *, - contact_details: "ContactDetails", - shipping_address: "ShippingAddress", - destination_account_details: List["DestinationAccountDetails"], - expected_data_size_in_terabytes: Optional[int] = None, - preferences: Optional["Preferences"] = None, - device_password: Optional[str] = None, - **kwargs - ): - super(DataBoxJobDetails, self).__init__(expected_data_size_in_terabytes=expected_data_size_in_terabytes, contact_details=contact_details, shipping_address=shipping_address, destination_account_details=destination_account_details, preferences=preferences, **kwargs) - self.job_details_type = 'DataBox' # type: str - self.copy_progress = None - self.device_password = device_password - - -class DataboxJobSecrets(JobSecrets): - """The secrets related to a databox job. - - All required parameters must be populated in order to send to Azure. - - :param job_secrets_type: Required. Used to indicate what type of job secrets object.Constant - filled by server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type job_secrets_type: str or ~azure.mgmt.databox.models.ClassDiscriminator - :param dc_access_security_code: Dc Access Security Code for Customer Managed Shipping. - :type dc_access_security_code: ~azure.mgmt.databox.models.DcAccessSecurityCode - :param pod_secrets: Contains the list of secret objects for a job. - :type pod_secrets: list[~azure.mgmt.databox.models.DataBoxSecret] - """ - - _validation = { - 'job_secrets_type': {'required': True}, - } - - _attribute_map = { - 'job_secrets_type': {'key': 'jobSecretsType', 'type': 'str'}, - 'dc_access_security_code': {'key': 'dcAccessSecurityCode', 'type': 'DcAccessSecurityCode'}, - 'pod_secrets': {'key': 'podSecrets', 'type': '[DataBoxSecret]'}, - } - - def __init__( - self, - *, - dc_access_security_code: Optional["DcAccessSecurityCode"] = None, - pod_secrets: Optional[List["DataBoxSecret"]] = None, - **kwargs - ): - super(DataboxJobSecrets, self).__init__(dc_access_security_code=dc_access_security_code, **kwargs) - self.job_secrets_type = 'DataBox' # type: str - self.pod_secrets = pod_secrets - - -class ScheduleAvailabilityRequest(msrest.serialization.Model): - """Request body to get the availability for scheduling orders. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DataBoxScheduleAvailabilityRequest, DiskScheduleAvailabilityRequest, HeavyScheduleAvailabilityRequest. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - _subtype_map = { - 'sku_name': {'DataBox': 'DataBoxScheduleAvailabilityRequest', 'DataBoxDisk': 'DiskScheduleAvailabilityRequest', 'DataBoxHeavy': 'HeavyScheduleAvailabilityRequest'} - } - - def __init__( - self, - *, - storage_location: str, - **kwargs - ): - super(ScheduleAvailabilityRequest, self).__init__(**kwargs) - self.storage_location = storage_location - self.sku_name = None # type: Optional[str] - - -class DataBoxScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling data box orders orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - *, - storage_location: str, - **kwargs - ): - super(DataBoxScheduleAvailabilityRequest, self).__init__(storage_location=storage_location, **kwargs) - self.sku_name = 'DataBox' # type: str - - -class DataBoxSecret(msrest.serialization.Model): - """The secrets related to a DataBox. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar device_serial_number: Serial number of the assigned device. - :vartype device_serial_number: str - :ivar device_password: Password for out of the box experience on device. - :vartype device_password: str - :ivar network_configurations: Network configuration of the appliance. - :vartype network_configurations: list[~azure.mgmt.databox.models.ApplianceNetworkConfiguration] - :ivar encoded_validation_cert_pub_key: The base 64 encoded public key to authenticate with the - device. - :vartype encoded_validation_cert_pub_key: str - :ivar account_credential_details: Per account level access credentials. - :vartype account_credential_details: list[~azure.mgmt.databox.models.AccountCredentialDetails] - """ - - _validation = { - 'device_serial_number': {'readonly': True}, - 'device_password': {'readonly': True}, - 'network_configurations': {'readonly': True}, - 'encoded_validation_cert_pub_key': {'readonly': True}, - 'account_credential_details': {'readonly': True}, - } - - _attribute_map = { - 'device_serial_number': {'key': 'deviceSerialNumber', 'type': 'str'}, - 'device_password': {'key': 'devicePassword', 'type': 'str'}, - 'network_configurations': {'key': 'networkConfigurations', 'type': '[ApplianceNetworkConfiguration]'}, - 'encoded_validation_cert_pub_key': {'key': 'encodedValidationCertPubKey', 'type': 'str'}, - 'account_credential_details': {'key': 'accountCredentialDetails', 'type': '[AccountCredentialDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(DataBoxSecret, self).__init__(**kwargs) - self.device_serial_number = None - self.device_password = None - self.network_configurations = None - self.encoded_validation_cert_pub_key = None - self.account_credential_details = None - - -class DataDestinationDetailsValidationRequest(ValidationInputRequest): - """Request to validate data destination details. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param destination_account_details: Required. Destination account details list. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - :param location: Required. Location of stamp or geo. - :type location: str - """ - - _validation = { - 'validation_type': {'required': True}, - 'destination_account_details': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'destination_account_details': {'key': 'destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - *, - destination_account_details: List["DestinationAccountDetails"], - location: str, - **kwargs - ): - super(DataDestinationDetailsValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateDataDestinationDetails' # type: str - self.destination_account_details = destination_account_details - self.location = location - - -class DataDestinationDetailsValidationResponseProperties(ValidationInputResponse): - """Properties of data destination details validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Data destination details validation status. Possible values include: "Valid", - "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DataDestinationDetailsValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateDataDestinationDetails' # type: str - self.status = None - - -class DcAccessSecurityCode(msrest.serialization.Model): - """Dc Access Security code for device. - - :param forward_dc_access_code: Dc Access Code for dispatching from DC. - :type forward_dc_access_code: str - :param reverse_dc_access_code: Dc Access code for dropping off at DC. - :type reverse_dc_access_code: str - """ - - _attribute_map = { - 'forward_dc_access_code': {'key': 'forwardDcAccessCode', 'type': 'str'}, - 'reverse_dc_access_code': {'key': 'reverseDcAccessCode', 'type': 'str'}, - } - - def __init__( - self, - *, - forward_dc_access_code: Optional[str] = None, - reverse_dc_access_code: Optional[str] = None, - **kwargs - ): - super(DcAccessSecurityCode, self).__init__(**kwargs) - self.forward_dc_access_code = forward_dc_access_code - self.reverse_dc_access_code = reverse_dc_access_code - - -class DestinationAccountDetails(msrest.serialization.Model): - """Details of the destination storage accounts. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DestinationManagedDiskDetails, DestinationStorageAccountDetails. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - } - - _subtype_map = { - 'data_destination_type': {'ManagedDisk': 'DestinationManagedDiskDetails', 'StorageAccount': 'DestinationStorageAccountDetails'} - } - - def __init__( - self, - *, - account_id: Optional[str] = None, - share_password: Optional[str] = None, - **kwargs - ): - super(DestinationAccountDetails, self).__init__(**kwargs) - self.data_destination_type = None # type: Optional[str] - self.account_id = account_id - self.share_password = share_password - - -class DestinationManagedDiskDetails(DestinationAccountDetails): - """Details for the destination compute disks. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - :param resource_group_id: Required. Destination Resource Group Id where the Compute disks - should be created. - :type resource_group_id: str - :param staging_storage_account_id: Required. Arm Id of the storage account that can be used to - copy the vhd for staging. - :type staging_storage_account_id: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - 'resource_group_id': {'required': True}, - 'staging_storage_account_id': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - 'resource_group_id': {'key': 'resourceGroupId', 'type': 'str'}, - 'staging_storage_account_id': {'key': 'stagingStorageAccountId', 'type': 'str'}, - } - - def __init__( - self, - *, - resource_group_id: str, - staging_storage_account_id: str, - account_id: Optional[str] = None, - share_password: Optional[str] = None, - **kwargs - ): - super(DestinationManagedDiskDetails, self).__init__(account_id=account_id, share_password=share_password, **kwargs) - self.data_destination_type = 'ManagedDisk' # type: str - self.resource_group_id = resource_group_id - self.staging_storage_account_id = staging_storage_account_id - - -class DestinationStorageAccountDetails(DestinationAccountDetails): - """Details for the destination storage account. - - All required parameters must be populated in order to send to Azure. - - :param data_destination_type: Required. Data Destination Type.Constant filled by server. - Possible values include: "StorageAccount", "ManagedDisk". - :type data_destination_type: str or ~azure.mgmt.databox.models.DataDestinationType - :param account_id: Arm Id of the destination where the data has to be moved. - :type account_id: str - :param share_password: Share password to be shared by all shares in SA. - :type share_password: str - :param storage_account_id: Required. Destination Storage Account Arm Id. - :type storage_account_id: str - """ - - _validation = { - 'data_destination_type': {'required': True}, - 'storage_account_id': {'required': True}, - } - - _attribute_map = { - 'data_destination_type': {'key': 'dataDestinationType', 'type': 'str'}, - 'account_id': {'key': 'accountId', 'type': 'str'}, - 'share_password': {'key': 'sharePassword', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - } - - def __init__( - self, - *, - storage_account_id: str, - account_id: Optional[str] = None, - share_password: Optional[str] = None, - **kwargs - ): - super(DestinationStorageAccountDetails, self).__init__(account_id=account_id, share_password=share_password, **kwargs) - self.data_destination_type = 'StorageAccount' # type: str - self.storage_account_id = storage_account_id - - -class DestinationToServiceLocationMap(msrest.serialization.Model): - """Map of destination location to service location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar destination_location: Location of the destination. - :vartype destination_location: str - :ivar service_location: Location of the service. - :vartype service_location: str - """ - - _validation = { - 'destination_location': {'readonly': True}, - 'service_location': {'readonly': True}, - } - - _attribute_map = { - 'destination_location': {'key': 'destinationLocation', 'type': 'str'}, - 'service_location': {'key': 'serviceLocation', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DestinationToServiceLocationMap, self).__init__(**kwargs) - self.destination_location = None - self.service_location = None - - -class DiskScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling disk orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - :param expected_data_size_in_terabytes: Required. The expected size of the data, which needs to - be transferred in this job, in terabytes. - :type expected_data_size_in_terabytes: int - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - 'expected_data_size_in_terabytes': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - 'expected_data_size_in_terabytes': {'key': 'expectedDataSizeInTerabytes', 'type': 'int'}, - } - - def __init__( - self, - *, - storage_location: str, - expected_data_size_in_terabytes: int, - **kwargs - ): - super(DiskScheduleAvailabilityRequest, self).__init__(storage_location=storage_location, **kwargs) - self.sku_name = 'DataBoxDisk' # type: str - self.expected_data_size_in_terabytes = expected_data_size_in_terabytes - - -class DiskSecret(msrest.serialization.Model): - """Contains all the secrets of a Disk. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar disk_serial_number: Serial number of the assigned disk. - :vartype disk_serial_number: str - :ivar bit_locker_key: Bit Locker key of the disk which can be used to unlock the disk to copy - data. - :vartype bit_locker_key: str - """ - - _validation = { - 'disk_serial_number': {'readonly': True}, - 'bit_locker_key': {'readonly': True}, - } - - _attribute_map = { - 'disk_serial_number': {'key': 'diskSerialNumber', 'type': 'str'}, - 'bit_locker_key': {'key': 'bitLockerKey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(DiskSecret, self).__init__(**kwargs) - self.disk_serial_number = None - self.bit_locker_key = None - - -class Error(msrest.serialization.Model): - """Top level error for the job. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code that can be used to programmatically identify the error. - :vartype code: str - :ivar message: Describes the error in detail and provides debugging information. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - - -class HeavyScheduleAvailabilityRequest(ScheduleAvailabilityRequest): - """Request body to get the availability for scheduling heavy orders. - - All required parameters must be populated in order to send to Azure. - - :param storage_location: Required. Location for data transfer. - For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api- - version=2018-01-01. - :type storage_location: str - :param sku_name: Required. Sku Name for which the order is to be scheduled.Constant filled by - server. Possible values include: "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'storage_location': {'required': True}, - 'sku_name': {'required': True}, - } - - _attribute_map = { - 'storage_location': {'key': 'storageLocation', 'type': 'str'}, - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - *, - storage_location: str, - **kwargs - ): - super(HeavyScheduleAvailabilityRequest, self).__init__(storage_location=storage_location, **kwargs) - self.sku_name = 'DataBoxHeavy' # type: str - - -class JobDeliveryInfo(msrest.serialization.Model): - """Additional delivery info. - - :param scheduled_date_time: Scheduled date time. - :type scheduled_date_time: ~datetime.datetime - """ - - _attribute_map = { - 'scheduled_date_time': {'key': 'scheduledDateTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - *, - scheduled_date_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(JobDeliveryInfo, self).__init__(**kwargs) - self.scheduled_date_time = scheduled_date_time - - -class JobErrorDetails(msrest.serialization.Model): - """Job Error Details for providing the information and recommended action. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_message: Message for the error. - :vartype error_message: str - :ivar error_code: Code for the error. - :vartype error_code: int - :ivar recommended_action: Recommended action for the error. - :vartype recommended_action: str - :ivar exception_message: Contains the non localized exception message. - :vartype exception_message: str - """ - - _validation = { - 'error_message': {'readonly': True}, - 'error_code': {'readonly': True}, - 'recommended_action': {'readonly': True}, - 'exception_message': {'readonly': True}, - } - - _attribute_map = { - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'recommended_action': {'key': 'recommendedAction', 'type': 'str'}, - 'exception_message': {'key': 'exceptionMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(JobErrorDetails, self).__init__(**kwargs) - self.error_message = None - self.error_code = None - self.recommended_action = None - self.exception_message = None - - -class Resource(msrest.serialization.Model): - """Model of the Resource. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The location of the resource. This will be one of the supported and - registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a - resource cannot be changed once it is created, but if an identical region is specified on - update the request will succeed. - :type location: str - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param sku: Required. The sku type. - :type sku: ~azure.mgmt.databox.models.Sku - """ - - _validation = { - 'location': {'required': True}, - 'sku': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - } - - def __init__( - self, - *, - location: str, - sku: "Sku", - tags: Optional[Dict[str, str]] = None, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.location = location - self.tags = tags - self.sku = sku - - -class JobResource(Resource): - """Job Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The location of the resource. This will be one of the supported and - registered Azure Regions (e.g. West US, East US, Southeast Asia, etc.). The region of a - resource cannot be changed once it is created, but if an identical region is specified on - update the request will succeed. - :type location: str - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param sku: Required. The sku type. - :type sku: ~azure.mgmt.databox.models.Sku - :ivar name: Name of the object. - :vartype name: str - :ivar id: Id of the object. - :vartype id: str - :ivar type: Type of the object. - :vartype type: str - :ivar is_cancellable: Describes whether the job is cancellable or not. - :vartype is_cancellable: bool - :ivar is_deletable: Describes whether the job is deletable or not. - :vartype is_deletable: bool - :ivar is_shipping_address_editable: Describes whether the shipping address is editable or not. - :vartype is_shipping_address_editable: bool - :ivar status: Name of the stage which is in progress. Possible values include: "DeviceOrdered", - "DevicePrepared", "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy", "Completed", - "CompletedWithErrors", "Cancelled", "Failed_IssueReportedAtCustomer", - "Failed_IssueDetectedAtAzureDC", "Aborted", "CompletedWithWarnings", - "ReadyToDispatchFromAzureDC", "ReadyToReceiveAtAzureDC". - :vartype status: str or ~azure.mgmt.databox.models.StageName - :ivar start_time: Time at which the job was started in UTC ISO 8601 format. - :vartype start_time: ~datetime.datetime - :ivar error: Top level error for the job. - :vartype error: ~azure.mgmt.databox.models.Error - :param details: Details of a job run. This field will only be sent for expand details filter. - :type details: ~azure.mgmt.databox.models.JobDetails - :ivar cancellation_reason: Reason for cancellation. - :vartype cancellation_reason: str - :param delivery_type: Delivery type of Job. Possible values include: "NonScheduled", - "Scheduled". - :type delivery_type: str or ~azure.mgmt.databox.models.JobDeliveryType - :param delivery_info: Delivery Info of Job. - :type delivery_info: ~azure.mgmt.databox.models.JobDeliveryInfo - :ivar is_cancellable_without_fee: Flag to indicate cancellation of scheduled job. - :vartype is_cancellable_without_fee: bool - """ - - _validation = { - 'location': {'required': True}, - 'sku': {'required': True}, - 'name': {'readonly': True}, - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'is_cancellable': {'readonly': True}, - 'is_deletable': {'readonly': True}, - 'is_shipping_address_editable': {'readonly': True}, - 'status': {'readonly': True}, - 'start_time': {'readonly': True}, - 'error': {'readonly': True}, - 'cancellation_reason': {'readonly': True}, - 'is_cancellable_without_fee': {'readonly': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'name': {'key': 'name', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'is_cancellable': {'key': 'properties.isCancellable', 'type': 'bool'}, - 'is_deletable': {'key': 'properties.isDeletable', 'type': 'bool'}, - 'is_shipping_address_editable': {'key': 'properties.isShippingAddressEditable', 'type': 'bool'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, - 'error': {'key': 'properties.error', 'type': 'Error'}, - 'details': {'key': 'properties.details', 'type': 'JobDetails'}, - 'cancellation_reason': {'key': 'properties.cancellationReason', 'type': 'str'}, - 'delivery_type': {'key': 'properties.deliveryType', 'type': 'str'}, - 'delivery_info': {'key': 'properties.deliveryInfo', 'type': 'JobDeliveryInfo'}, - 'is_cancellable_without_fee': {'key': 'properties.isCancellableWithoutFee', 'type': 'bool'}, - } - - def __init__( - self, - *, - location: str, - sku: "Sku", - tags: Optional[Dict[str, str]] = None, - details: Optional["JobDetails"] = None, - delivery_type: Optional[Union[str, "JobDeliveryType"]] = None, - delivery_info: Optional["JobDeliveryInfo"] = None, - **kwargs - ): - super(JobResource, self).__init__(location=location, tags=tags, sku=sku, **kwargs) - self.name = None - self.id = None - self.type = None - self.is_cancellable = None - self.is_deletable = None - self.is_shipping_address_editable = None - self.status = None - self.start_time = None - self.error = None - self.details = details - self.cancellation_reason = None - self.delivery_type = delivery_type - self.delivery_info = delivery_info - self.is_cancellable_without_fee = None - - -class JobResourceList(msrest.serialization.Model): - """Job Resource Collection. - - :param value: List of job resources. - :type value: list[~azure.mgmt.databox.models.JobResource] - :param next_link: Link for the next set of job resources. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[JobResource]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["JobResource"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(JobResourceList, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class JobResourceUpdateParameter(msrest.serialization.Model): - """The JobResourceUpdateParameter. - - :param tags: A set of tags. The list of key value pairs that describe the resource. These tags - can be used in viewing and grouping this resource (across resource groups). - :type tags: dict[str, str] - :param details: Details of a job to be updated. - :type details: ~azure.mgmt.databox.models.UpdateJobDetails - :param destination_account_details: Destination account details. - :type destination_account_details: list[~azure.mgmt.databox.models.DestinationAccountDetails] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'details': {'key': 'properties.details', 'type': 'UpdateJobDetails'}, - 'destination_account_details': {'key': 'properties.destinationAccountDetails', 'type': '[DestinationAccountDetails]'}, - } - - def __init__( - self, - *, - tags: Optional[Dict[str, str]] = None, - details: Optional["UpdateJobDetails"] = None, - destination_account_details: Optional[List["DestinationAccountDetails"]] = None, - **kwargs - ): - super(JobResourceUpdateParameter, self).__init__(**kwargs) - self.tags = tags - self.details = details - self.destination_account_details = destination_account_details - - -class JobStages(msrest.serialization.Model): - """Job stages. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar stage_name: Name of the job stage. Possible values include: "DeviceOrdered", - "DevicePrepared", "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy", "Completed", - "CompletedWithErrors", "Cancelled", "Failed_IssueReportedAtCustomer", - "Failed_IssueDetectedAtAzureDC", "Aborted", "CompletedWithWarnings", - "ReadyToDispatchFromAzureDC", "ReadyToReceiveAtAzureDC". - :vartype stage_name: str or ~azure.mgmt.databox.models.StageName - :ivar display_name: Display name of the job stage. - :vartype display_name: str - :ivar stage_status: Status of the job stage. Possible values include: "None", "InProgress", - "Succeeded", "Failed", "Cancelled", "Cancelling", "SucceededWithErrors". - :vartype stage_status: str or ~azure.mgmt.databox.models.StageStatus - :ivar stage_time: Time for the job stage in UTC ISO 8601 format. - :vartype stage_time: ~datetime.datetime - :ivar job_stage_details: Job Stage Details. - :vartype job_stage_details: object - :ivar error_details: Error details for the stage. - :vartype error_details: list[~azure.mgmt.databox.models.JobErrorDetails] - """ - - _validation = { - 'stage_name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'stage_status': {'readonly': True}, - 'stage_time': {'readonly': True}, - 'job_stage_details': {'readonly': True}, - 'error_details': {'readonly': True}, - } - - _attribute_map = { - 'stage_name': {'key': 'stageName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'stage_status': {'key': 'stageStatus', 'type': 'str'}, - 'stage_time': {'key': 'stageTime', 'type': 'iso-8601'}, - 'job_stage_details': {'key': 'jobStageDetails', 'type': 'object'}, - 'error_details': {'key': 'errorDetails', 'type': '[JobErrorDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(JobStages, self).__init__(**kwargs) - self.stage_name = None - self.display_name = None - self.stage_status = None - self.stage_time = None - self.job_stage_details = None - self.error_details = None - - -class NotificationPreference(msrest.serialization.Model): - """Notification preference for a job stage. - - All required parameters must be populated in order to send to Azure. - - :param stage_name: Required. Name of the stage. Possible values include: "DevicePrepared", - "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy". - :type stage_name: str or ~azure.mgmt.databox.models.NotificationStageName - :param send_notification: Required. Notification is required or not. - :type send_notification: bool - """ - - _validation = { - 'stage_name': {'required': True}, - 'send_notification': {'required': True}, - } - - _attribute_map = { - 'stage_name': {'key': 'stageName', 'type': 'str'}, - 'send_notification': {'key': 'sendNotification', 'type': 'bool'}, - } - - def __init__( - self, - *, - stage_name: Union[str, "NotificationStageName"], - send_notification: bool, - **kwargs - ): - super(NotificationPreference, self).__init__(**kwargs) - self.stage_name = stage_name - self.send_notification = send_notification - - -class Operation(msrest.serialization.Model): - """Operation entity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. Format: - {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}. - :vartype name: str - :ivar display: Operation display values. - :vartype display: ~azure.mgmt.databox.models.OperationDisplay - :ivar properties: Operation properties. - :vartype properties: object - :ivar origin: Origin of the operation. Can be : user|system|user,system. - :vartype origin: str - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - 'properties': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None - self.properties = None - self.origin = None - - -class OperationDisplay(msrest.serialization.Model): - """Operation display. - - :param provider: Provider name. - :type provider: str - :param resource: Resource name. - :type resource: str - :param operation: Localized name of the operation for display purpose. - :type operation: str - :param description: Localized description of the operation for display purpose. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs - ): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationList(msrest.serialization.Model): - """Operation Collection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: List of operations. - :vartype value: list[~azure.mgmt.databox.models.Operation] - :param next_link: Link for the next set of operations. - :type next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - next_link: Optional[str] = None, - **kwargs - ): - super(OperationList, self).__init__(**kwargs) - self.value = None - self.next_link = next_link - - -class PackageShippingDetails(msrest.serialization.Model): - """Shipping details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar carrier_name: Name of the carrier. - :vartype carrier_name: str - :ivar tracking_id: Tracking Id of shipment. - :vartype tracking_id: str - :ivar tracking_url: Url where shipment can be tracked. - :vartype tracking_url: str - """ - - _validation = { - 'carrier_name': {'readonly': True}, - 'tracking_id': {'readonly': True}, - 'tracking_url': {'readonly': True}, - } - - _attribute_map = { - 'carrier_name': {'key': 'carrierName', 'type': 'str'}, - 'tracking_id': {'key': 'trackingId', 'type': 'str'}, - 'tracking_url': {'key': 'trackingUrl', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PackageShippingDetails, self).__init__(**kwargs) - self.carrier_name = None - self.tracking_id = None - self.tracking_url = None - - -class Preferences(msrest.serialization.Model): - """Preferences related to the order. - - :param preferred_data_center_region: Preferred Data Center Region. - :type preferred_data_center_region: list[str] - :param transport_preferences: Preferences related to the shipment logistics of the sku. - :type transport_preferences: ~azure.mgmt.databox.models.TransportPreferences - """ - - _attribute_map = { - 'preferred_data_center_region': {'key': 'preferredDataCenterRegion', 'type': '[str]'}, - 'transport_preferences': {'key': 'transportPreferences', 'type': 'TransportPreferences'}, - } - - def __init__( - self, - *, - preferred_data_center_region: Optional[List[str]] = None, - transport_preferences: Optional["TransportPreferences"] = None, - **kwargs - ): - super(Preferences, self).__init__(**kwargs) - self.preferred_data_center_region = preferred_data_center_region - self.transport_preferences = transport_preferences - - -class PreferencesValidationRequest(ValidationInputRequest): - """Request to validate preference of transport and data center. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param preference: Preference requested with respect to transport type and data center. - :type preference: ~azure.mgmt.databox.models.Preferences - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'preference': {'key': 'preference', 'type': 'Preferences'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - } - - def __init__( - self, - *, - device_type: Union[str, "SkuName"], - preference: Optional["Preferences"] = None, - **kwargs - ): - super(PreferencesValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidatePreferences' # type: str - self.preference = preference - self.device_type = device_type - - -class PreferencesValidationResponseProperties(ValidationInputResponse): - """Properties of data center and transport preference validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Validation status of requested data center and transport. Possible values - include: "Valid", "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PreferencesValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidatePreferences' # type: str - self.status = None - - -class RegionConfigurationRequest(msrest.serialization.Model): - """Request body to get the configuration for the region. - - :param schedule_availability_request: Request body to get the availability for scheduling - orders. - :type schedule_availability_request: ~azure.mgmt.databox.models.ScheduleAvailabilityRequest - :param transport_availability_request: Request body to get the transport availability for given - sku. - :type transport_availability_request: ~azure.mgmt.databox.models.TransportAvailabilityRequest - """ - - _attribute_map = { - 'schedule_availability_request': {'key': 'scheduleAvailabilityRequest', 'type': 'ScheduleAvailabilityRequest'}, - 'transport_availability_request': {'key': 'transportAvailabilityRequest', 'type': 'TransportAvailabilityRequest'}, - } - - def __init__( - self, - *, - schedule_availability_request: Optional["ScheduleAvailabilityRequest"] = None, - transport_availability_request: Optional["TransportAvailabilityRequest"] = None, - **kwargs - ): - super(RegionConfigurationRequest, self).__init__(**kwargs) - self.schedule_availability_request = schedule_availability_request - self.transport_availability_request = transport_availability_request - - -class RegionConfigurationResponse(msrest.serialization.Model): - """Configuration response specific to a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar schedule_availability_response: Schedule availability for given sku in a region. - :vartype schedule_availability_response: - ~azure.mgmt.databox.models.ScheduleAvailabilityResponse - :ivar transport_availability_response: Transport options available for given sku in a region. - :vartype transport_availability_response: - ~azure.mgmt.databox.models.TransportAvailabilityResponse - """ - - _validation = { - 'schedule_availability_response': {'readonly': True}, - 'transport_availability_response': {'readonly': True}, - } - - _attribute_map = { - 'schedule_availability_response': {'key': 'scheduleAvailabilityResponse', 'type': 'ScheduleAvailabilityResponse'}, - 'transport_availability_response': {'key': 'transportAvailabilityResponse', 'type': 'TransportAvailabilityResponse'}, - } - - def __init__( - self, - **kwargs - ): - super(RegionConfigurationResponse, self).__init__(**kwargs) - self.schedule_availability_response = None - self.transport_availability_response = None - - -class ScheduleAvailabilityResponse(msrest.serialization.Model): - """Schedule availability response for given sku in a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar available_dates: List of dates available to schedule. - :vartype available_dates: list[~datetime.datetime] - """ - - _validation = { - 'available_dates': {'readonly': True}, - } - - _attribute_map = { - 'available_dates': {'key': 'availableDates', 'type': '[iso-8601]'}, - } - - def __init__( - self, - **kwargs - ): - super(ScheduleAvailabilityResponse, self).__init__(**kwargs) - self.available_dates = None - - -class ShareCredentialDetails(msrest.serialization.Model): - """Credential details of the shares in account. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar share_name: Name of the share. - :vartype share_name: str - :ivar share_type: Type of the share. Possible values include: "UnknownType", "HCS", - "BlockBlob", "PageBlob", "AzureFile", "ManagedDisk". - :vartype share_type: str or ~azure.mgmt.databox.models.ShareDestinationFormatType - :ivar user_name: User name for the share. - :vartype user_name: str - :ivar password: Password for the share. - :vartype password: str - :ivar supported_access_protocols: Access protocols supported on the device. - :vartype supported_access_protocols: list[str or ~azure.mgmt.databox.models.AccessProtocol] - """ - - _validation = { - 'share_name': {'readonly': True}, - 'share_type': {'readonly': True}, - 'user_name': {'readonly': True}, - 'password': {'readonly': True}, - 'supported_access_protocols': {'readonly': True}, - } - - _attribute_map = { - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'share_type': {'key': 'shareType', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'supported_access_protocols': {'key': 'supportedAccessProtocols', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(ShareCredentialDetails, self).__init__(**kwargs) - self.share_name = None - self.share_type = None - self.user_name = None - self.password = None - self.supported_access_protocols = None - - -class ShipmentPickUpRequest(msrest.serialization.Model): - """Shipment pick up request details. - - All required parameters must be populated in order to send to Azure. - - :param start_time: Required. Minimum date after which the pick up should commence, this must be - in local time of pick up area. - :type start_time: ~datetime.datetime - :param end_time: Required. Maximum date before which the pick up should commence, this must be - in local time of pick up area. - :type end_time: ~datetime.datetime - :param shipment_location: Required. Shipment Location in the pickup place. Eg.front desk. - :type shipment_location: str - """ - - _validation = { - 'start_time': {'required': True}, - 'end_time': {'required': True}, - 'shipment_location': {'required': True}, - } - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'shipment_location': {'key': 'shipmentLocation', 'type': 'str'}, - } - - def __init__( - self, - *, - start_time: datetime.datetime, - end_time: datetime.datetime, - shipment_location: str, - **kwargs - ): - super(ShipmentPickUpRequest, self).__init__(**kwargs) - self.start_time = start_time - self.end_time = end_time - self.shipment_location = shipment_location - - -class ShipmentPickUpResponse(msrest.serialization.Model): - """Shipment pick up response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar confirmation_number: Confirmation number for the pick up request. - :vartype confirmation_number: str - :ivar ready_by_time: Time by which shipment should be ready for pick up, this is in local time - of pick up area. - :vartype ready_by_time: ~datetime.datetime - """ - - _validation = { - 'confirmation_number': {'readonly': True}, - 'ready_by_time': {'readonly': True}, - } - - _attribute_map = { - 'confirmation_number': {'key': 'confirmationNumber', 'type': 'str'}, - 'ready_by_time': {'key': 'readyByTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ShipmentPickUpResponse, self).__init__(**kwargs) - self.confirmation_number = None - self.ready_by_time = None - - -class ShippingAddress(msrest.serialization.Model): - """Shipping address where customer wishes to receive the device. - - All required parameters must be populated in order to send to Azure. - - :param street_address1: Required. Street Address line 1. - :type street_address1: str - :param street_address2: Street Address line 2. - :type street_address2: str - :param street_address3: Street Address line 3. - :type street_address3: str - :param city: Name of the City. - :type city: str - :param state_or_province: Name of the State or Province. - :type state_or_province: str - :param country: Required. Name of the Country. - :type country: str - :param postal_code: Required. Postal code. - :type postal_code: str - :param zip_extended_code: Extended Zip Code. - :type zip_extended_code: str - :param company_name: Name of the company. - :type company_name: str - :param address_type: Type of address. Possible values include: "None", "Residential", - "Commercial". - :type address_type: str or ~azure.mgmt.databox.models.AddressType - """ - - _validation = { - 'street_address1': {'required': True}, - 'country': {'required': True}, - 'postal_code': {'required': True}, - } - - _attribute_map = { - 'street_address1': {'key': 'streetAddress1', 'type': 'str'}, - 'street_address2': {'key': 'streetAddress2', 'type': 'str'}, - 'street_address3': {'key': 'streetAddress3', 'type': 'str'}, - 'city': {'key': 'city', 'type': 'str'}, - 'state_or_province': {'key': 'stateOrProvince', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'postal_code': {'key': 'postalCode', 'type': 'str'}, - 'zip_extended_code': {'key': 'zipExtendedCode', 'type': 'str'}, - 'company_name': {'key': 'companyName', 'type': 'str'}, - 'address_type': {'key': 'addressType', 'type': 'str'}, - } - - def __init__( - self, - *, - street_address1: str, - country: str, - postal_code: str, - street_address2: Optional[str] = None, - street_address3: Optional[str] = None, - city: Optional[str] = None, - state_or_province: Optional[str] = None, - zip_extended_code: Optional[str] = None, - company_name: Optional[str] = None, - address_type: Optional[Union[str, "AddressType"]] = None, - **kwargs - ): - super(ShippingAddress, self).__init__(**kwargs) - self.street_address1 = street_address1 - self.street_address2 = street_address2 - self.street_address3 = street_address3 - self.city = city - self.state_or_province = state_or_province - self.country = country - self.postal_code = postal_code - self.zip_extended_code = zip_extended_code - self.company_name = company_name - self.address_type = address_type - - -class Sku(msrest.serialization.Model): - """The Sku. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The sku name. Possible values include: "DataBox", "DataBoxDisk", - "DataBoxHeavy". - :type name: str or ~azure.mgmt.databox.models.SkuName - :param display_name: The display name of the sku. - :type display_name: str - :param family: The sku family. - :type family: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - } - - def __init__( - self, - *, - name: Union[str, "SkuName"], - display_name: Optional[str] = None, - family: Optional[str] = None, - **kwargs - ): - super(Sku, self).__init__(**kwargs) - self.name = name - self.display_name = display_name - self.family = family - - -class SkuAvailabilityValidationRequest(ValidationInputRequest): - """Request to validate sku availability. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - :ivar transfer_type: Required. Type of the transfer. Default value: "ImportToAzure". - :vartype transfer_type: str - :param country: Required. ISO country code. Country for hardware shipment. For codes check: - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements. - :type country: str - :param location: Required. Location for data transfer. For locations check: - https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01. - :type location: str - """ - - _validation = { - 'validation_type': {'required': True}, - 'device_type': {'required': True}, - 'transfer_type': {'required': True, 'constant': True}, - 'country': {'required': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - 'transfer_type': {'key': 'transferType', 'type': 'str'}, - 'country': {'key': 'country', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - transfer_type = "ImportToAzure" - - def __init__( - self, - *, - device_type: Union[str, "SkuName"], - country: str, - location: str, - **kwargs - ): - super(SkuAvailabilityValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateSkuAvailability' # type: str - self.device_type = device_type - self.country = country - self.location = location - - -class SkuAvailabilityValidationResponseProperties(ValidationInputResponse): - """Properties of sku availability validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Sku availability validation status. Possible values include: "Valid", "Invalid", - "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuAvailabilityValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateSkuAvailability' # type: str - self.status = None - - -class SkuCapacity(msrest.serialization.Model): - """Capacity of the sku. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar usable: Usable capacity in TB. - :vartype usable: str - :ivar maximum: Maximum capacity in TB. - :vartype maximum: str - """ - - _validation = { - 'usable': {'readonly': True}, - 'maximum': {'readonly': True}, - } - - _attribute_map = { - 'usable': {'key': 'usable', 'type': 'str'}, - 'maximum': {'key': 'maximum', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCapacity, self).__init__(**kwargs) - self.usable = None - self.maximum = None - - -class SkuCost(msrest.serialization.Model): - """Describes metadata for retrieving price info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar meter_id: Meter id of the Sku. - :vartype meter_id: str - :ivar meter_type: The type of the meter. - :vartype meter_type: str - """ - - _validation = { - 'meter_id': {'readonly': True}, - 'meter_type': {'readonly': True}, - } - - _attribute_map = { - 'meter_id': {'key': 'meterId', 'type': 'str'}, - 'meter_type': {'key': 'meterType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuCost, self).__init__(**kwargs) - self.meter_id = None - self.meter_type = None - - -class SkuInformation(msrest.serialization.Model): - """Information of the sku. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar sku: The Sku. - :vartype sku: ~azure.mgmt.databox.models.Sku - :ivar enabled: The sku is enabled or not. - :vartype enabled: bool - :ivar destination_to_service_location_map: The map of destination location to service location. - :vartype destination_to_service_location_map: - list[~azure.mgmt.databox.models.DestinationToServiceLocationMap] - :ivar capacity: Capacity of the Sku. - :vartype capacity: ~azure.mgmt.databox.models.SkuCapacity - :ivar costs: Cost of the Sku. - :vartype costs: list[~azure.mgmt.databox.models.SkuCost] - :ivar api_versions: Api versions that support this Sku. - :vartype api_versions: list[str] - :ivar disabled_reason: Reason why the Sku is disabled. Possible values include: "None", - "Country", "Region", "Feature", "OfferType", "NoSubscriptionInfo". - :vartype disabled_reason: str or ~azure.mgmt.databox.models.SkuDisabledReason - :ivar disabled_reason_message: Message for why the Sku is disabled. - :vartype disabled_reason_message: str - :ivar required_feature: Required feature to access the sku. - :vartype required_feature: str - """ - - _validation = { - 'sku': {'readonly': True}, - 'enabled': {'readonly': True}, - 'destination_to_service_location_map': {'readonly': True}, - 'capacity': {'readonly': True}, - 'costs': {'readonly': True}, - 'api_versions': {'readonly': True}, - 'disabled_reason': {'readonly': True}, - 'disabled_reason_message': {'readonly': True}, - 'required_feature': {'readonly': True}, - } - - _attribute_map = { - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'enabled': {'key': 'enabled', 'type': 'bool'}, - 'destination_to_service_location_map': {'key': 'properties.destinationToServiceLocationMap', 'type': '[DestinationToServiceLocationMap]'}, - 'capacity': {'key': 'properties.capacity', 'type': 'SkuCapacity'}, - 'costs': {'key': 'properties.costs', 'type': '[SkuCost]'}, - 'api_versions': {'key': 'properties.apiVersions', 'type': '[str]'}, - 'disabled_reason': {'key': 'properties.disabledReason', 'type': 'str'}, - 'disabled_reason_message': {'key': 'properties.disabledReasonMessage', 'type': 'str'}, - 'required_feature': {'key': 'properties.requiredFeature', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SkuInformation, self).__init__(**kwargs) - self.sku = None - self.enabled = None - self.destination_to_service_location_map = None - self.capacity = None - self.costs = None - self.api_versions = None - self.disabled_reason = None - self.disabled_reason_message = None - self.required_feature = None - - -class SubscriptionIsAllowedToCreateJobValidationRequest(ValidationInputRequest): - """Request to validate subscription permission to create jobs. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - """ - - _validation = { - 'validation_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionIsAllowedToCreateJobValidationRequest, self).__init__(**kwargs) - self.validation_type = 'ValidateSubscriptionIsAllowedToCreateJob' # type: str - - -class SubscriptionIsAllowedToCreateJobValidationResponseProperties(ValidationInputResponse): - """Properties of subscription permission to create job validation response. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation response.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :ivar error: Error code and message of validation response. - :vartype error: ~azure.mgmt.databox.models.Error - :ivar status: Validation status of subscription permission to create job. Possible values - include: "Valid", "Invalid", "Skipped". - :vartype status: str or ~azure.mgmt.databox.models.ValidationStatus - """ - - _validation = { - 'validation_type': {'required': True}, - 'error': {'readonly': True}, - 'status': {'readonly': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SubscriptionIsAllowedToCreateJobValidationResponseProperties, self).__init__(**kwargs) - self.validation_type = 'ValidateSubscriptionIsAllowedToCreateJob' # type: str - self.status = None - - -class TransportAvailabilityDetails(msrest.serialization.Model): - """Transport options availability details for given region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar shipment_type: Transport Shipment Type supported for given region. Possible values - include: "CustomerManaged", "MicrosoftManaged". - :vartype shipment_type: str or ~azure.mgmt.databox.models.TransportShipmentTypes - """ - - _validation = { - 'shipment_type': {'readonly': True}, - } - - _attribute_map = { - 'shipment_type': {'key': 'shipmentType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportAvailabilityDetails, self).__init__(**kwargs) - self.shipment_type = None - - -class TransportAvailabilityRequest(msrest.serialization.Model): - """Request body to get the transport availability for given sku. - - :param sku_name: Type of the device. Possible values include: "DataBox", "DataBoxDisk", - "DataBoxHeavy". - :type sku_name: str or ~azure.mgmt.databox.models.SkuName - """ - - _attribute_map = { - 'sku_name': {'key': 'skuName', 'type': 'str'}, - } - - def __init__( - self, - *, - sku_name: Optional[Union[str, "SkuName"]] = None, - **kwargs - ): - super(TransportAvailabilityRequest, self).__init__(**kwargs) - self.sku_name = sku_name - - -class TransportAvailabilityResponse(msrest.serialization.Model): - """Transport options available for given sku in a region. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar transport_availability_details: List of transport availability details for given region. - :vartype transport_availability_details: - list[~azure.mgmt.databox.models.TransportAvailabilityDetails] - """ - - _validation = { - 'transport_availability_details': {'readonly': True}, - } - - _attribute_map = { - 'transport_availability_details': {'key': 'transportAvailabilityDetails', 'type': '[TransportAvailabilityDetails]'}, - } - - def __init__( - self, - **kwargs - ): - super(TransportAvailabilityResponse, self).__init__(**kwargs) - self.transport_availability_details = None - - -class TransportPreferences(msrest.serialization.Model): - """Preferences related to the shipment logistics of the sku. - - All required parameters must be populated in order to send to Azure. - - :param preferred_shipment_type: Required. Indicates Shipment Logistics type that the customer - preferred. Possible values include: "CustomerManaged", "MicrosoftManaged". - :type preferred_shipment_type: str or ~azure.mgmt.databox.models.TransportShipmentTypes - """ - - _validation = { - 'preferred_shipment_type': {'required': True}, - } - - _attribute_map = { - 'preferred_shipment_type': {'key': 'preferredShipmentType', 'type': 'str'}, - } - - def __init__( - self, - *, - preferred_shipment_type: Union[str, "TransportShipmentTypes"], - **kwargs - ): - super(TransportPreferences, self).__init__(**kwargs) - self.preferred_shipment_type = preferred_shipment_type - - -class UnencryptedCredentials(msrest.serialization.Model): - """Unencrypted credentials for accessing device. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar job_name: Name of the job. - :vartype job_name: str - :ivar job_secrets: Secrets related to this job. - :vartype job_secrets: ~azure.mgmt.databox.models.JobSecrets - """ - - _validation = { - 'job_name': {'readonly': True}, - 'job_secrets': {'readonly': True}, - } - - _attribute_map = { - 'job_name': {'key': 'jobName', 'type': 'str'}, - 'job_secrets': {'key': 'jobSecrets', 'type': 'JobSecrets'}, - } - - def __init__( - self, - **kwargs - ): - super(UnencryptedCredentials, self).__init__(**kwargs) - self.job_name = None - self.job_secrets = None - - -class UnencryptedCredentialsList(msrest.serialization.Model): - """List of unencrypted credentials for accessing device. - - :param value: List of unencrypted credentials. - :type value: list[~azure.mgmt.databox.models.UnencryptedCredentials] - :param next_link: Link for the next set of unencrypted credentials. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[UnencryptedCredentials]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["UnencryptedCredentials"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(UnencryptedCredentialsList, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class UpdateJobDetails(msrest.serialization.Model): - """Job details for update. - - :param contact_details: Contact details for notification and shipping. - :type contact_details: ~azure.mgmt.databox.models.ContactDetails - :param shipping_address: Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - """ - - _attribute_map = { - 'contact_details': {'key': 'contactDetails', 'type': 'ContactDetails'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - } - - def __init__( - self, - *, - contact_details: Optional["ContactDetails"] = None, - shipping_address: Optional["ShippingAddress"] = None, - **kwargs - ): - super(UpdateJobDetails, self).__init__(**kwargs) - self.contact_details = contact_details - self.shipping_address = shipping_address - - -class ValidateAddress(ValidationInputRequest): - """The requirements to validate customer address where the device needs to be shipped. - - All required parameters must be populated in order to send to Azure. - - :param validation_type: Required. Identifies the type of validation request.Constant filled by - server. Possible values include: "ValidateAddress", "ValidateDataDestinationDetails", - "ValidateSubscriptionIsAllowedToCreateJob", "ValidatePreferences", "ValidateCreateOrderLimit", - "ValidateSkuAvailability". - :type validation_type: str or ~azure.mgmt.databox.models.ValidationInputDiscriminator - :param shipping_address: Required. Shipping address of the customer. - :type shipping_address: ~azure.mgmt.databox.models.ShippingAddress - :param device_type: Required. Device type to be used for the job. Possible values include: - "DataBox", "DataBoxDisk", "DataBoxHeavy". - :type device_type: str or ~azure.mgmt.databox.models.SkuName - :param transport_preferences: Preferences related to the shipment logistics of the sku. - :type transport_preferences: ~azure.mgmt.databox.models.TransportPreferences - """ - - _validation = { - 'validation_type': {'required': True}, - 'shipping_address': {'required': True}, - 'device_type': {'required': True}, - } - - _attribute_map = { - 'validation_type': {'key': 'validationType', 'type': 'str'}, - 'shipping_address': {'key': 'shippingAddress', 'type': 'ShippingAddress'}, - 'device_type': {'key': 'deviceType', 'type': 'str'}, - 'transport_preferences': {'key': 'transportPreferences', 'type': 'TransportPreferences'}, - } - - def __init__( - self, - *, - shipping_address: "ShippingAddress", - device_type: Union[str, "SkuName"], - transport_preferences: Optional["TransportPreferences"] = None, - **kwargs - ): - super(ValidateAddress, self).__init__(**kwargs) - self.validation_type = 'ValidateAddress' # type: str - self.shipping_address = shipping_address - self.device_type = device_type - self.transport_preferences = transport_preferences - - -class ValidationResponse(msrest.serialization.Model): - """Response of pre job creation validations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar status: Overall validation status. Possible values include: "AllValidToProceed", - "InputsRevisitRequired", "CertainInputValidationsSkipped". - :vartype status: str or ~azure.mgmt.databox.models.OverallValidationStatus - :ivar individual_response_details: List of response details contain validationType and its - response as key and value respectively. - :vartype individual_response_details: list[~azure.mgmt.databox.models.ValidationInputResponse] - """ - - _validation = { - 'status': {'readonly': True}, - 'individual_response_details': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'properties.status', 'type': 'str'}, - 'individual_response_details': {'key': 'properties.individualResponseDetails', 'type': '[ValidationInputResponse]'}, - } - - def __init__( - self, - **kwargs - ): - super(ValidationResponse, self).__init__(**kwargs) - self.status = None - self.individual_response_details = None diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/__init__.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/__init__.py deleted file mode 100644 index 9c8fa7a8253..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._operations import Operations -from ._jobs_operations import JobsOperations -from ._service_operations import ServiceOperations - -__all__ = [ - 'Operations', - 'JobsOperations', - 'ServiceOperations', -] diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_jobs_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_jobs_operations.py deleted file mode 100644 index e984b83e43a..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_jobs_operations.py +++ /dev/null @@ -1,851 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class JobsOperations(object): - """JobsOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.JobResourceList"] - """Lists all the jobs available under the subscription. - - :param skip_token: $skipToken is supported on Get list of jobs, which provides the next page in - the list of jobs. - :type skip_token: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either JobResourceList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.JobResourceList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResourceList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('JobResourceList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs'} # type: ignore - - def list_by_resource_group( - self, - resource_group_name, # type: str - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.JobResourceList"] - """Lists all the jobs available under the given resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param skip_token: $skipToken is supported on Get list of jobs, which provides the next page in - the list of jobs. - :type skip_token: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either JobResourceList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.JobResourceList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResourceList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('JobResourceList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs'} # type: ignore - - def get( - self, - resource_group_name, # type: str - job_name, # type: str - expand=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> "_models.JobResource" - """Gets information about the specified job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param expand: $expand is supported on details parameter for job, which provides details on the - job stages. - :type expand: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: JobResource, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.JobResource - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - if expand is not None: - query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def _create_initial( - self, - resource_group_name, # type: str - job_name, # type: str - job_resource, # type: "_models.JobResource" - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.JobResource"] - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.JobResource"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._create_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(job_resource, 'JobResource') - body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def begin_create( - self, - resource_group_name, # type: str - job_name, # type: str - job_resource, # type: "_models.JobResource" - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.JobResource"] - """Creates a new job with the specified parameters. Existing job cannot be updated with this API - and should instead be updated with the Update job API. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param job_resource: Job details from request body. - :type job_resource: ~azure.mgmt.databox.models.JobResource - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either JobResource or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.databox.models.JobResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._create_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_resource=job_resource, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def _delete_initial( - self, - resource_group_name, # type: str - job_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def begin_delete( - self, - resource_group_name, # type: str - job_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] - """Deletes a job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - job_name=job_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def _update_initial( - self, - resource_group_name, # type: str - job_name, # type: str - job_resource_update_parameter, # type: "_models.JobResourceUpdateParameter" - if_match=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.JobResource"] - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.JobResource"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self._update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - if if_match is not None: - header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str') - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(job_resource_update_parameter, 'JobResourceUpdateParameter') - body_content_kwargs['content'] = body_content - request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def begin_update( - self, - resource_group_name, # type: str - job_name, # type: str - job_resource_update_parameter, # type: "_models.JobResourceUpdateParameter" - if_match=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.JobResource"] - """Updates the properties of an existing job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param job_resource_update_parameter: Job update parameters from request body. - :type job_resource_update_parameter: ~azure.mgmt.databox.models.JobResourceUpdateParameter - :param if_match: Defines the If-Match condition. The patch will be performed only if the ETag - of the job on the server matches this value. - :type if_match: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either JobResource or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.databox.models.JobResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.JobResource"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_resource_update_parameter=job_resource_update_parameter, - if_match=if_match, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('JobResource', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}'} # type: ignore - - def book_shipment_pick_up( - self, - resource_group_name, # type: str - job_name, # type: str - shipment_pick_up_request, # type: "_models.ShipmentPickUpRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ShipmentPickUpResponse" - """Book shipment pick up. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param shipment_pick_up_request: Details of shipment pick up request. - :type shipment_pick_up_request: ~azure.mgmt.databox.models.ShipmentPickUpRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ShipmentPickUpResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ShipmentPickUpResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ShipmentPickUpResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.book_shipment_pick_up.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(shipment_pick_up_request, 'ShipmentPickUpRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ShipmentPickUpResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - book_shipment_pick_up.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp'} # type: ignore - - def cancel( - self, - resource_group_name, # type: str - job_name, # type: str - cancellation_reason, # type: "_models.CancellationReason" - **kwargs # type: Any - ): - # type: (...) -> None - """CancelJob. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :param cancellation_reason: Reason for cancellation. - :type cancellation_reason: ~azure.mgmt.databox.models.CancellationReason - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.cancel.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cancellation_reason, 'CancellationReason') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel'} # type: ignore - - def list_credentials( - self, - resource_group_name, # type: str - job_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.UnencryptedCredentialsList"] - """This method gets the unencrypted secrets related to the job. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param job_name: The name of the job Resource within the specified resource group. job names - must be between 3 and 24 characters in length and use any alphanumeric and underscore only. - :type job_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either UnencryptedCredentialsList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.UnencryptedCredentialsList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.UnencryptedCredentialsList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_credentials.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'jobName': self._serialize.url("job_name", job_name, 'str', max_length=24, min_length=3, pattern=r'^[-\w\.]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('UnencryptedCredentialsList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_operations.py deleted file mode 100644 index cc8b3483362..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_operations.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class Operations(object): - """Operations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list( - self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.OperationList"] - """This method gets all the operations. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.OperationList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('OperationList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.DataBox/operations'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_service_operations.py b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_service_operations.py deleted file mode 100644 index f8cf7bdbaa3..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/operations/_service_operations.py +++ /dev/null @@ -1,472 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class ServiceOperations(object): - """ServiceOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.databox.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def list_available_skus( - self, - location, # type: str - available_sku_request, # type: "_models.AvailableSkuRequest" - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.AvailableSkusResult"] - """This method provides the list of available skus for the given subscription and location. - - :param location: The location of the resource. - :type location: str - :param available_sku_request: Filters for showing the available skus. - :type available_sku_request: ~azure.mgmt.databox.models.AvailableSkuRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either AvailableSkusResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.AvailableSkusResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableSkusResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = "application/json" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_available_skus.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('AvailableSkusResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_available_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/availableSkus'} # type: ignore - - def list_available_skus_by_resource_group( - self, - resource_group_name, # type: str - location, # type: str - available_sku_request, # type: "_models.AvailableSkuRequest" - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.AvailableSkusResult"] - """This method provides the list of available skus for the given subscription, resource group and - location. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param location: The location of the resource. - :type location: str - :param available_sku_request: Filters for showing the available skus. - :type available_sku_request: ~azure.mgmt.databox.models.AvailableSkuRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either AvailableSkusResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.databox.models.AvailableSkusResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableSkusResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = "application/json" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_available_skus_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(available_sku_request, 'AvailableSkuRequest') - body_content_kwargs['content'] = body_content - request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('AvailableSkusResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_available_skus_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus'} # type: ignore - - def validate_address( - self, - location, # type: str - validate_address, # type: "_models.ValidateAddress" - **kwargs # type: Any - ): - # type: (...) -> "_models.AddressValidationOutput" - """[DEPRECATED NOTICE: This operation will soon be removed] This method validates the customer - shipping address and provide alternate addresses if any. - - :param location: The location of the resource. - :type location: str - :param validate_address: Shipping address of the customer. - :type validate_address: ~azure.mgmt.databox.models.ValidateAddress - :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddressValidationOutput, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.AddressValidationOutput - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddressValidationOutput"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_address.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validate_address, 'ValidateAddress') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('AddressValidationOutput', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_address.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress'} # type: ignore - - def validate_inputs_by_resource_group( - self, - resource_group_name, # type: str - location, # type: str - validation_request, # type: "_models.ValidationRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ValidationResponse" - """This method does all necessary pre-job creation validation under resource group. - - :param resource_group_name: The Resource Group Name. - :type resource_group_name: str - :param location: The location of the resource. - :type location: str - :param validation_request: Inputs of the customer. - :type validation_request: ~azure.mgmt.databox.models.ValidationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ValidationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ValidationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_inputs_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validation_request, 'ValidationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ValidationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_inputs_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs'} # type: ignore - - def validate_inputs( - self, - location, # type: str - validation_request, # type: "_models.ValidationRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ValidationResponse" - """This method does all necessary pre-job creation validation under subscription. - - :param location: The location of the resource. - :type location: str - :param validation_request: Inputs of the customer. - :type validation_request: ~azure.mgmt.databox.models.ValidationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ValidationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.ValidationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.validate_inputs.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(validation_request, 'ValidationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ValidationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - validate_inputs.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs'} # type: ignore - - def region_configuration( - self, - location, # type: str - region_configuration_request, # type: "_models.RegionConfigurationRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.RegionConfigurationResponse" - """This API provides configuration details specific to given region/location. - - :param location: The location of the resource. - :type location: str - :param region_configuration_request: Request body to get the configuration for the region. - :type region_configuration_request: ~azure.mgmt.databox.models.RegionConfigurationRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: RegionConfigurationResponse, or the result of cls(response) - :rtype: ~azure.mgmt.databox.models.RegionConfigurationResponse - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.RegionConfigurationResponse"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2019-09-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.region_configuration.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(region_configuration_request, 'RegionConfigurationRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('RegionConfigurationResponse', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - region_configuration.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration'} # type: ignore diff --git a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/py.typed b/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/py.typed deleted file mode 100644 index e5aff4f83af..00000000000 --- a/src/databox/azext_databox/vendored_sdks/databox/v2019_09_01/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561. \ No newline at end of file diff --git a/src/databox/setup.cfg b/src/databox/setup.cfg index 3c6e79cf31d..2fdd96e5d39 100644 --- a/src/databox/setup.cfg +++ b/src/databox/setup.cfg @@ -1,2 +1 @@ -[bdist_wheel] -universal=1 +#setup.cfg \ No newline at end of file diff --git a/src/databox/setup.py b/src/databox/setup.py index e8659a34d4d..1b5737ba6e3 100644 --- a/src/databox/setup.py +++ b/src/databox/setup.py @@ -1,22 +1,16 @@ -#!/usr/bin/env python - # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- - from codecs import open from setuptools import setup, find_packages -try: - from azure_bdist_wheel import cmdclass -except ImportError: - from distutils import log as logger - logger.warn("Wheel is not available, disabling bdist_wheel hook") -# TODO: Confirm this is the right version number you want and it matches your + # HISTORY.rst entry. -VERSION = '0.1.3' +VERSION = '1.0.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers @@ -26,15 +20,12 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'License :: OSI Approved :: MIT License', ] -# TODO: Add any additional SDK dependencies here DEPENDENCIES = [] with open('README.md', 'r', encoding='utf-8') as f: @@ -45,15 +36,14 @@ setup( name='databox', version=VERSION, - description='Microsoft Azure Command-Line Tools DataBox Extension', - # TODO: Update author and email, if applicable + description='Microsoft Azure Command-Line Tools Databox Extension.', + long_description=README + '\n\n' + HISTORY, + license='MIT', author='Microsoft Corporation', author_email='azpycli@microsoft.com', url='https://github.com/Azure/azure-cli-extensions/tree/main/src/databox', - long_description=README + '\n\n' + HISTORY, - license='MIT', classifiers=CLASSIFIERS, - packages=find_packages(), - install_requires=DEPENDENCIES, + packages=find_packages(exclude=["tests"]), package_data={'azext_databox': ['azext_metadata.json']}, + install_requires=DEPENDENCIES )