Skip to content

Commit 6ee31d8

Browse files
author
SDKAuto
committed
CodeGen from PR 34238 in Azure/azure-rest-api-specs
Merge 3a0aa7748255207932e98c3b2f7627658edd7639 into 4c0f7731c93696af01bd2bb9927bf28d2afcbc98
1 parent 37034c4 commit 6ee31d8

File tree

64 files changed

+10462
-6873
lines changed

Some content is hidden

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

64 files changed

+10462
-6873
lines changed

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

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

3+
## 3.0.0 (2025-04-28)
4+
5+
### Features Added
6+
7+
- Client `EdgeOrderManagementClient` added operation group `operations`
8+
- Client `EdgeOrderManagementClient` added operation group `addresses`
9+
- Client `EdgeOrderManagementClient` added operation group `products_and_configurations`
10+
- Client `EdgeOrderManagementClient` added operation group `order_items`
11+
- Client `EdgeOrderManagementClient` added operation group `orders`
12+
- Model `AddressProperties` added property `address_classification`
13+
- Model `AddressProperties` added property `provisioning_state`
14+
- Model `AddressResource` added property `address_classification`
15+
- Model `AddressResource` added property `provisioning_state`
16+
- Enum `AvailabilityStage` added member `DISCOVERABLE`
17+
- Model `BasicInformation` added property `fulfilled_by`
18+
- Model `BillingMeterDetails` added property `term_type_details`
19+
- Model `CommonProperties` added property `fulfilled_by`
20+
- Model `Configuration` added property `fulfilled_by`
21+
- Model `Configuration` added property `provisioning_support`
22+
- Model `Configuration` added property `child_configuration_types`
23+
- Model `Configuration` added property `grouped_child_configurations`
24+
- Model `Configuration` added property `supported_term_commitment_durations`
25+
- Model `ConfigurationProperties` added property `provisioning_support`
26+
- Model `ConfigurationProperties` added property `child_configuration_types`
27+
- Model `ConfigurationProperties` added property `grouped_child_configurations`
28+
- Model `ConfigurationProperties` added property `supported_term_commitment_durations`
29+
- Model `ConfigurationProperties` added property `fulfilled_by`
30+
- Model `ConfigurationsRequest` added property `configuration_filter`
31+
- Model `DeviceDetails` added property `display_serial_number`
32+
- Model `DeviceDetails` added property `provisioning_support`
33+
- Model `DeviceDetails` added property `provisioning_details`
34+
- Model `HierarchyInformation` added property `configuration_id_display_name`
35+
- Enum `LinkType` added member `DISCOVERABLE`
36+
- Model `OrderItemDetails` added property `order_item_mode`
37+
- Model `OrderItemDetails` added property `site_details`
38+
- Model `OrderItemResource` added property `identity`
39+
- Model `OrderItemResource` added property `provisioning_state`
40+
- Enum `OrderItemType` added member `EXTERNAL`
41+
- Model `OrderItemUpdateParameter` added property `identity`
42+
- Model `OrderItemUpdateParameter` added property `order_item_details`
43+
- Model `OrderResource` added property `order_mode`
44+
- Model `Preferences` added property `term_commitment_preferences`
45+
- Model `Product` added property `fulfilled_by`
46+
- Model `ProductDetails` added property `identification_type`
47+
- Model `ProductDetails` added property `parent_device_details`
48+
- Model `ProductDetails` added property `parent_provisioning_details`
49+
- Model `ProductDetails` added property `opt_in_additional_configurations`
50+
- Model `ProductDetails` added property `child_configuration_device_details`
51+
- Model `ProductDetails` added property `term_commitment_information`
52+
- Model `ProductFamiliesMetadataDetails` added property `fulfilled_by`
53+
- Model `ProductFamily` added property `fulfilled_by`
54+
- Model `ProductFamilyProperties` added property `fulfilled_by`
55+
- Model `ProductLine` added property `fulfilled_by`
56+
- Model `ProductLineProperties` added property `fulfilled_by`
57+
- Model `ProductProperties` added property `fulfilled_by`
58+
- Model `ProxyResource` added property `system_data`
59+
- Model `Resource` added property `system_data`
60+
- Model `ResourceIdentity` added property `user_assigned_identities`
61+
- Enum `StageName` added member `READY_TO_SETUP`
62+
- Model `TrackedResource` added property `system_data`
63+
- Added model `AdditionalConfiguration`
64+
- Added enum `AddressClassification`
65+
- Added enum `AutoProvisioningStatus`
66+
- Added model `CategoryInformation`
67+
- Added model `ChildConfiguration`
68+
- Added model `ChildConfigurationFilter`
69+
- Added enum `ChildConfigurationType`
70+
- Added model `ConfigurationDeviceDetails`
71+
- Added model `ConfigurationFilter`
72+
- Added model `DevicePresenceVerificationDetails`
73+
- Added enum `DevicePresenceVerificationStatus`
74+
- Added enum `FulfillmentType`
75+
- Added model `GroupedChildConfigurations`
76+
- Added enum `IdentificationType`
77+
- Added model `OrderItemDetailsUpdateParameter`
78+
- Added enum `OrderMode`
79+
- Added model `ProductDetailsUpdateParameter`
80+
- Added model `ProvisioningDetails`
81+
- Added enum `ProvisioningState`
82+
- Added enum `ProvisioningSupport`
83+
- Added model `SiteDetails`
84+
- Added model `TermCommitmentInformation`
85+
- Added model `TermCommitmentPreferences`
86+
- Added enum `TermCommitmentType`
87+
- Added model `TermTypeDetails`
88+
- Added model `UserAssignedIdentity`
89+
90+
### Breaking Changes
91+
92+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_create_address`
93+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_create_order_item`
94+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_delete_address_by_name`
95+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_delete_order_item_by_name`
96+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_return_order_item`
97+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_update_address`
98+
- Deleted or renamed client method `EdgeOrderManagementClient.begin_update_order_item`
99+
- Deleted or renamed client method `EdgeOrderManagementClient.cancel_order_item`
100+
- Deleted or renamed client method `EdgeOrderManagementClient.get_address_by_name`
101+
- Deleted or renamed client method `EdgeOrderManagementClient.get_order_by_name`
102+
- Deleted or renamed client method `EdgeOrderManagementClient.get_order_item_by_name`
103+
- Deleted or renamed client method `EdgeOrderManagementClient.list_addresses_at_resource_group_level`
104+
- Deleted or renamed client method `EdgeOrderManagementClient.list_addresses_at_subscription_level`
105+
- Deleted or renamed client method `EdgeOrderManagementClient.list_configurations`
106+
- Deleted or renamed client method `EdgeOrderManagementClient.list_operations`
107+
- Deleted or renamed client method `EdgeOrderManagementClient.list_order_at_resource_group_level`
108+
- Deleted or renamed client method `EdgeOrderManagementClient.list_order_at_subscription_level`
109+
- Deleted or renamed client method `EdgeOrderManagementClient.list_order_items_at_resource_group_level`
110+
- Deleted or renamed client method `EdgeOrderManagementClient.list_order_items_at_subscription_level`
111+
- Deleted or renamed client method `EdgeOrderManagementClient.list_product_families`
112+
- Deleted or renamed client method `EdgeOrderManagementClient.list_product_families_metadata`
113+
- Model `ConfigurationsRequest` deleted or renamed its instance variable `configuration_filters`
114+
- Model `OrderItemDetails` deleted or renamed its instance variable `management_rp_details`
115+
- Model `ProductDetails` deleted or renamed its instance variable `count`
116+
- Model `ProductDetails` deleted or renamed its instance variable `device_details`
117+
- Method `ResourceIdentity.__init__` parameter `type` changed default value from `None` to `str`
118+
- Method `ReturnOrderItemDetails.__init__` parameter `shipping_box_required` changed default value from `bool` to `none`
119+
- Deleted or renamed model `ConfigurationFilters`
120+
- Deleted or renamed model `ShippingDetails`
121+
- Deleted or renamed model `EdgeOrderManagementClientOperationsMixin`
122+
3123
## 2.0.0 (2024-10-30)
4124

5125
### Breaking Changes

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Edge Order Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2776cb32cd6ca9ea953a13ae26c954b989e83367",
2+
"commit": "4c116d3015d62f319f57c00848c345fa2f37df02",
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.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/edgeorder/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-2021-12 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/edgeorder/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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/edgeorder/resource-manager/readme.md"
1111
}

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/__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 ._edge_order_management_client import EdgeOrderManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._edge_order_management_client import EdgeOrderManagementClient # 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
"EdgeOrderManagementClient",
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/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_configuration.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,26 @@
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 EdgeOrderManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class EdgeOrderManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for EdgeOrderManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
2524
attributes.
2625
2726
:param credential: Credential needed for the client to connect to Azure. Required.
2827
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. Required.
28+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2021-12-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2024-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", "2021-12-01")
36+
api_version: str = kwargs.pop("api_version", "2024-02-01")
3837

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

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_edge_order_management_client.py

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,70 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import EdgeOrderManagementClientConfiguration
20-
from ._serialization import Deserializer, Serializer
21-
from .operations import EdgeOrderManagementClientOperationsMixin
22+
from ._utils.serialization import Deserializer, Serializer
23+
from .operations import (
24+
AddressesOperations,
25+
Operations,
26+
OrderItemsOperations,
27+
OrdersOperations,
28+
ProductsAndConfigurationsOperations,
29+
)
2230

2331
if TYPE_CHECKING:
24-
# pylint: disable=unused-import,ungrouped-imports
2532
from azure.core.credentials import TokenCredential
2633

2734

28-
class EdgeOrderManagementClient(
29-
EdgeOrderManagementClientOperationsMixin
30-
): # pylint: disable=client-accepts-api-version-keyword
35+
class EdgeOrderManagementClient:
3136
"""The EdgeOrder Client.
3237
38+
:ivar operations: Operations operations
39+
:vartype operations: azure.mgmt.edgeorder.operations.Operations
40+
:ivar addresses: AddressesOperations operations
41+
:vartype addresses: azure.mgmt.edgeorder.operations.AddressesOperations
42+
:ivar products_and_configurations: ProductsAndConfigurationsOperations operations
43+
:vartype products_and_configurations:
44+
azure.mgmt.edgeorder.operations.ProductsAndConfigurationsOperations
45+
:ivar order_items: OrderItemsOperations operations
46+
:vartype order_items: azure.mgmt.edgeorder.operations.OrderItemsOperations
47+
:ivar orders: OrdersOperations operations
48+
:vartype orders: azure.mgmt.edgeorder.operations.OrdersOperations
3349
:param credential: Credential needed for the client to connect to Azure. Required.
3450
:type credential: ~azure.core.credentials.TokenCredential
35-
:param subscription_id: The ID of the target subscription. Required.
51+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3652
:type subscription_id: str
37-
:param base_url: Service URL. Default value is "https://management.azure.com".
53+
:param base_url: Service URL. Default value is None.
3854
:type base_url: str
39-
:keyword api_version: Api Version. Default value is "2021-12-01". Note that overriding this
55+
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
4056
default value may result in unsupported behavior.
4157
:paramtype api_version: str
4258
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4359
Retry-After header is present.
4460
"""
4561

4662
def __init__(
47-
self,
48-
credential: "TokenCredential",
49-
subscription_id: str,
50-
base_url: str = "https://management.azure.com",
51-
**kwargs: Any
63+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
5264
) -> None:
65+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
66+
_endpoints = get_arm_endpoints(_cloud)
67+
if not base_url:
68+
base_url = _endpoints["resource_manager"]
69+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
5370
self._config = EdgeOrderManagementClientConfiguration(
54-
credential=credential, subscription_id=subscription_id, **kwargs
71+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
5572
)
73+
5674
_policies = kwargs.pop("policies", None)
5775
if _policies is None:
5876
_policies = [
@@ -71,12 +89,19 @@ def __init__(
7189
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
7290
self._config.http_logging_policy,
7391
]
74-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
92+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
7593

7694
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
7795
self._serialize = Serializer(client_models)
7896
self._deserialize = Deserializer(client_models)
7997
self._serialize.client_side_validation = False
98+
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
99+
self.addresses = AddressesOperations(self._client, self._config, self._serialize, self._deserialize)
100+
self.products_and_configurations = ProductsAndConfigurationsOperations(
101+
self._client, self._config, self._serialize, self._deserialize
102+
)
103+
self.order_items = OrderItemsOperations(self._client, self._config, self._serialize, self._deserialize)
104+
self.orders = OrdersOperations(self._client, self._config, self._serialize, self._deserialize)
80105

81106
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
82107
"""Runs the network request through the client's chained policies.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)