Skip to content

Commit 527da82

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-databox-2023-04-28-17056(can only be merged by SDK owner) (Azure#30136)
* code and test * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent f38f73c commit 527da82

File tree

193 files changed

+1965
-2067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+1965
-2067
lines changed

sdk/databox/azure-mgmt-databox/CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,71 @@
11
# Release History
22

3+
## 2.0.0 (2023-05-22)
4+
5+
### Features Added
6+
7+
- Added operation JobsOperations.mark_devices_shipped
8+
- Added operation group DataBoxManagementClientOperationsMixin
9+
- Model CopyProgress has a new parameter actions
10+
- Model CopyProgress has a new parameter error
11+
- Model DataBoxDiskCopyProgress has a new parameter actions
12+
- Model DataBoxDiskCopyProgress has a new parameter error
13+
- Model DataBoxDiskJobDetails has a new parameter actions
14+
- Model DataBoxDiskJobDetails has a new parameter data_center_code
15+
- Model DataBoxDiskJobDetails has a new parameter datacenter_address
16+
- Model DataBoxDiskJobDetails has a new parameter device_erasure_details
17+
- Model DataBoxDiskJobDetails has a new parameter expected_data_size_in_tera_bytes
18+
- Model DataBoxDiskJobDetails has a new parameter granular_copy_log_details
19+
- Model DataBoxDiskJobDetails has a new parameter granular_copy_progress
20+
- Model DataBoxDiskJobDetails has a new parameter last_mitigation_action_on_job
21+
- Model DataBoxDiskJobDetails has a new parameter reverse_shipping_details
22+
- Model DataBoxHeavyJobDetails has a new parameter actions
23+
- Model DataBoxHeavyJobDetails has a new parameter data_center_code
24+
- Model DataBoxHeavyJobDetails has a new parameter datacenter_address
25+
- Model DataBoxHeavyJobDetails has a new parameter device_erasure_details
26+
- Model DataBoxHeavyJobDetails has a new parameter expected_data_size_in_tera_bytes
27+
- Model DataBoxHeavyJobDetails has a new parameter last_mitigation_action_on_job
28+
- Model DataBoxHeavyJobDetails has a new parameter reverse_shipping_details
29+
- Model DataBoxJobDetails has a new parameter actions
30+
- Model DataBoxJobDetails has a new parameter data_center_code
31+
- Model DataBoxJobDetails has a new parameter datacenter_address
32+
- Model DataBoxJobDetails has a new parameter device_erasure_details
33+
- Model DataBoxJobDetails has a new parameter expected_data_size_in_tera_bytes
34+
- Model DataBoxJobDetails has a new parameter last_mitigation_action_on_job
35+
- Model DataBoxJobDetails has a new parameter reverse_shipping_details
36+
- Model DataImportDetails has a new parameter log_collection_level
37+
- Model EncryptionPreferences has a new parameter hardware_encryption
38+
- Model JobDetails has a new parameter actions
39+
- Model JobDetails has a new parameter data_center_code
40+
- Model JobDetails has a new parameter datacenter_address
41+
- Model JobDetails has a new parameter device_erasure_details
42+
- Model JobDetails has a new parameter expected_data_size_in_tera_bytes
43+
- Model JobDetails has a new parameter last_mitigation_action_on_job
44+
- Model JobDetails has a new parameter reverse_shipping_details
45+
- Model JobResource has a new parameter reverse_shipping_details_update
46+
- Model JobResource has a new parameter reverse_transport_preference_update
47+
- Model JobResource has a new parameter system_data
48+
- Model Preferences has a new parameter reverse_transport_preferences
49+
- Model Preferences has a new parameter storage_account_access_tier_preferences
50+
- Model RegionConfigurationRequest has a new parameter datacenter_address_request
51+
- Model RegionConfigurationResponse has a new parameter datacenter_address_response
52+
- Model ShippingAddress has a new parameter skip_address_validation
53+
- Model ShippingAddress has a new parameter tax_identification_number
54+
- Model SkuInformation has a new parameter countries_within_commerce_boundary
55+
- Model TransportPreferences has a new parameter is_updated
56+
- Model UpdateJobDetails has a new parameter preferences
57+
- Model UpdateJobDetails has a new parameter return_to_customer_package_details
58+
- Model UpdateJobDetails has a new parameter reverse_shipping_details
59+
60+
### Breaking Changes
61+
62+
- Model DataBoxDiskJobDetails no longer has parameter expected_data_size_in_terabytes
63+
- Model DataBoxHeavyJobDetails no longer has parameter expected_data_size_in_terabytes
64+
- Model DataBoxJobDetails no longer has parameter expected_data_size_in_terabytes
65+
- Model DiskScheduleAvailabilityRequest has a new required parameter expected_data_size_in_tera_bytes
66+
- Model DiskScheduleAvailabilityRequest no longer has parameter expected_data_size_in_terabytes
67+
- Model JobDetails no longer has parameter expected_data_size_in_terabytes
68+
369
## 2.0.0b1 (2023-02-10)
470

571
### Features Added

sdk/databox/azure-mgmt-databox/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ client = DataBoxManagementClient(credential=DefaultAzureCredential(), subscripti
4545

4646
## Examples
4747

48-
49-
Code samples for this package can be found at [Data Box Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com and [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
48+
Code samples for this package can be found at:
49+
- [Search Data Box Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
5051

5152

5253
## Troubleshooting
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "c4eb7d4facbb9312f435df8c8ffe5061bfb02890",
2+
"commit": "6e70667577cfb7bc194785683ca591b95abd524c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].0",
6+
"@autorest/[email protected].8",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/databox/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/databox/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/databox/resource-manager/readme.md"
1111
}

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/_serialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
631631
if xml_desc.get("attr", False):
632632
if xml_ns:
633633
ET.register_namespace(xml_prefix, xml_ns)
634-
xml_name = "{}{}".format(xml_ns, xml_name)
634+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
635635
serialized.set(xml_name, new_attr) # type: ignore
636636
continue
637637
if xml_desc.get("text", False):
@@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
12731273
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12741274
xml_ns = internal_type_xml_map.get("ns", None)
12751275
if xml_ns:
1276-
xml_name = "{}{}".format(xml_ns, xml_name)
1276+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12771277
return xml_name
12781278

12791279

@@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
12971297
# Integrate namespace if necessary
12981298
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
12991299
if xml_ns:
1300-
xml_name = "{}{}".format(xml_ns, xml_name)
1300+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
13011301

13021302
# If it's an attribute, that's simple
13031303
if xml_desc.get("attr", False):
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
76
# --------------------------------------------------------------------------
87

9-
VERSION = "2.0.0b1"
8+
VERSION = "2.0.0"

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01/_configuration.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -42,7 +36,7 @@ class DataBoxManagementClientConfiguration(Configuration): # pylint: disable=to
4236

4337
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(DataBoxManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2018-01-01"] = kwargs.pop("api_version", "2018-01-01")
39+
api_version: str = kwargs.pop("api_version", "2018-01-01")
4640

4741
if credential is None:
4842
raise ValueError("Parameter 'credential' must not be None.")

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01/_data_box_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
self._config = DataBoxManagementClientConfiguration(
5555
credential=credential, subscription_id=subscription_id, **kwargs
5656
)
57-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
57+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5858

5959
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
6060
self._serialize = Serializer(client_models)

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.0.0b1"
9+
VERSION = "2.0.0"

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01/aio/_configuration.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from .._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials_async import AsyncTokenCredential
@@ -42,7 +36,7 @@ class DataBoxManagementClientConfiguration(Configuration): # pylint: disable=to
4236

4337
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(DataBoxManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2018-01-01"] = kwargs.pop("api_version", "2018-01-01")
39+
api_version: str = kwargs.pop("api_version", "2018-01-01")
4640

4741
if credential is None:
4842
raise ValueError("Parameter 'credential' must not be None.")

sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01/aio/_data_box_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
self._config = DataBoxManagementClientConfiguration(
5555
credential=credential, subscription_id=subscription_id, **kwargs
5656
)
57-
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
57+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5858

5959
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
6060
self._serialize = Serializer(client_models)

0 commit comments

Comments
 (0)