Skip to content

Commit cff97a2

Browse files
[AutoRelease] t2-databox-2025-03-08-30175(can only be merged by SDK owner) (Azure#39993)
* code and test * update testcases * update testcases --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 0dc14f1 commit cff97a2

File tree

63 files changed

+1221
-604
lines changed

Some content is hidden

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

63 files changed

+1221
-604
lines changed

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

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

3+
## 3.1.0 (2025-03-18)
4+
5+
### Features Added
6+
7+
- Model `CreateOrderLimitForSubscriptionValidationRequest` added property `model`
8+
- Model `DataBoxScheduleAvailabilityRequest` added property `model`
9+
- Enum `DataCenterCode` added member `AMS25`
10+
- Enum `DataCenterCode` added member `BL24`
11+
- Enum `DataCenterCode` added member `CPQ21`
12+
- Enum `DataCenterCode` added member `DSM11`
13+
- Enum `DataCenterCode` added member `DXB23`
14+
- Enum `DataCenterCode` added member `IDC5`
15+
- Enum `DataCenterCode` added member `NTG20`
16+
- Enum `DataCenterCode` added member `OSA23`
17+
- Enum `DataCenterCode` added member `TYO23`
18+
- Model `DataTransferDetailsValidationRequest` added property `model`
19+
- Model `DatacenterAddressRequest` added property `model`
20+
- Model `DiskScheduleAvailabilityRequest` added property `model`
21+
- Model `HeavyScheduleAvailabilityRequest` added property `model`
22+
- Model `JobResource` added property `delayed_stage`
23+
- Model `JobResource` added property `all_devices_lost`
24+
- Model `JobStages` added property `delay_information`
25+
- Model `PreferencesValidationRequest` added property `model`
26+
- Model `RegionConfigurationRequest` added property `device_capability_request`
27+
- Model `RegionConfigurationResponse` added property `device_capability_response`
28+
- Model `ScheduleAvailabilityRequest` added property `model`
29+
- Model `Sku` added property `model`
30+
- Model `SkuAvailabilityValidationRequest` added property `model`
31+
- Model `SkuCapacity` added property `individual_sku_usable`
32+
- Model `TransportAvailabilityRequest` added property `model`
33+
- Model `ValidateAddress` added property `model`
34+
- Added enum `DelayNotificationStatus`
35+
- Added model `DeviceCapabilityDetails`
36+
- Added model `DeviceCapabilityRequest`
37+
- Added model `DeviceCapabilityResponse`
38+
- Added model `JobDelayDetails`
39+
- Added enum `ModelName`
40+
- Added enum `PortalDelayErrorCode`
41+
342
## 3.0.0 (2024-10-30)
443

544
### Breaking Changes
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2776cb32cd6ca9ea953a13ae26c954b989e83367",
2+
"commit": "4cecf11996f2bfc7958f6d0de814badab23f9720",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/databox/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2022-12 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/databox/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/databox/resource-manager/readme.md"
1111
}

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._data_box_management_client import DataBoxManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._data_box_management_client import DataBoxManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"DataBoxManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class DataBoxManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class DataBoxManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for DataBoxManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class DataBoxManagementClientConfiguration: # pylint: disable=too-many-instance
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The Subscription Id. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2022-12-01")
36+
api_version: str = kwargs.pop("api_version", "2025-02-01")
3837

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

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@
2121
from .operations import DataBoxManagementClientOperationsMixin, JobsOperations, Operations, ServiceOperations
2222

2323
if TYPE_CHECKING:
24-
# pylint: disable=unused-import,ungrouped-imports
2524
from azure.core.credentials import TokenCredential
2625

2726

28-
class DataBoxManagementClient(
29-
DataBoxManagementClientOperationsMixin
30-
): # pylint: disable=client-accepts-api-version-keyword
27+
class DataBoxManagementClient(DataBoxManagementClientOperationsMixin):
3128
"""The DataBox Client.
3229
3330
:ivar operations: Operations operations
@@ -42,7 +39,7 @@ class DataBoxManagementClient(
4239
:type subscription_id: str
4340
:param base_url: Service URL. Default value is "https://management.azure.com".
4441
:type base_url: str
45-
:keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this
42+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
4643
default value may result in unsupported behavior.
4744
:paramtype api_version: str
4845
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

0 commit comments

Comments
 (0)