Skip to content

Commit fef4b8e

Browse files
author
SDKAuto
committed
CodeGen from PR 22578 in Azure/azure-rest-api-specs
Merge 4e05c56991cf911e201f7b4d6fb9c68c5560b348 into f1180941e238bc99ac71f9535ecd126bb8b77d8f
1 parent e94435e commit fef4b8e

File tree

128 files changed

+8960
-21440
lines changed

Some content is hidden

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

128 files changed

+8960
-21440
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "85ea3e489c45e80383801d4f3a1278f1e687a7b8",
2+
"commit": "72e7bd84a09e3a7d557d75bb8d8d5cd424536e2c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.7",
6+
"@autorest/python@6.4.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/azurestackhci/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 --tag=package-preview-2021-09 --use=@autorest/python@6.2.7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --generate-sample=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.4.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/azurestackhci/resource-manager/readme.md"
1111
}

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py

+27-59
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@
1919
ArcSettingsOperations,
2020
ClustersOperations,
2121
ExtensionsOperations,
22-
GalleryimagesOperations,
23-
GuestAgentOperations,
24-
GuestAgentsOperations,
25-
HybridIdentityMetadataOperations,
26-
MachineExtensionsOperations,
27-
MarketplacegalleryimagesOperations,
28-
NetworkinterfacesOperations,
22+
OffersOperations,
2923
Operations,
30-
StoragecontainersOperations,
31-
VirtualharddisksOperations,
32-
VirtualmachinesOperations,
33-
VirtualnetworksOperations,
24+
PublishersOperations,
25+
SkusOperations,
26+
UpdateRunsOperations,
27+
UpdateSummariesOperations,
28+
UpdatesOperations,
3429
)
3530

3631
if TYPE_CHECKING:
@@ -47,40 +42,28 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
4742
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
4843
:ivar extensions: ExtensionsOperations operations
4944
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
50-
:ivar galleryimages: GalleryimagesOperations operations
51-
:vartype galleryimages: azure.mgmt.azurestackhci.operations.GalleryimagesOperations
52-
:ivar marketplacegalleryimages: MarketplacegalleryimagesOperations operations
53-
:vartype marketplacegalleryimages:
54-
azure.mgmt.azurestackhci.operations.MarketplacegalleryimagesOperations
55-
:ivar networkinterfaces: NetworkinterfacesOperations operations
56-
:vartype networkinterfaces: azure.mgmt.azurestackhci.operations.NetworkinterfacesOperations
45+
:ivar offers: OffersOperations operations
46+
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
5747
:ivar operations: Operations operations
5848
:vartype operations: azure.mgmt.azurestackhci.operations.Operations
59-
:ivar storagecontainers: StoragecontainersOperations operations
60-
:vartype storagecontainers: azure.mgmt.azurestackhci.operations.StoragecontainersOperations
61-
:ivar virtualharddisks: VirtualharddisksOperations operations
62-
:vartype virtualharddisks: azure.mgmt.azurestackhci.operations.VirtualharddisksOperations
63-
:ivar virtualmachines: VirtualmachinesOperations operations
64-
:vartype virtualmachines: azure.mgmt.azurestackhci.operations.VirtualmachinesOperations
65-
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
66-
:vartype hybrid_identity_metadata:
67-
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
68-
:ivar machine_extensions: MachineExtensionsOperations operations
69-
:vartype machine_extensions: azure.mgmt.azurestackhci.operations.MachineExtensionsOperations
70-
:ivar guest_agent: GuestAgentOperations operations
71-
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
72-
:ivar guest_agents: GuestAgentsOperations operations
73-
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
74-
:ivar virtualnetworks: VirtualnetworksOperations operations
75-
:vartype virtualnetworks: azure.mgmt.azurestackhci.operations.VirtualnetworksOperations
49+
:ivar publishers: PublishersOperations operations
50+
:vartype publishers: azure.mgmt.azurestackhci.operations.PublishersOperations
51+
:ivar skus: SkusOperations operations
52+
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
53+
:ivar update_runs: UpdateRunsOperations operations
54+
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
55+
:ivar update_summaries: UpdateSummariesOperations operations
56+
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
57+
:ivar updates: UpdatesOperations operations
58+
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
7659
:param credential: Credential needed for the client to connect to Azure. Required.
7760
:type credential: ~azure.core.credentials.TokenCredential
7861
:param subscription_id: The ID of the target subscription. Required.
7962
:type subscription_id: str
8063
:param base_url: Service URL. Default value is "https://management.azure.com".
8164
:type base_url: str
82-
:keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding
83-
this default value may result in unsupported behavior.
65+
:keyword api_version: Api Version. Default value is "2023-02-01". Note that overriding this
66+
default value may result in unsupported behavior.
8467
:paramtype api_version: str
8568
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8669
Retry-After header is present.
@@ -105,30 +88,15 @@ def __init__(
10588
self.arc_settings = ArcSettingsOperations(self._client, self._config, self._serialize, self._deserialize)
10689
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
10790
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
108-
self.galleryimages = GalleryimagesOperations(self._client, self._config, self._serialize, self._deserialize)
109-
self.marketplacegalleryimages = MarketplacegalleryimagesOperations(
110-
self._client, self._config, self._serialize, self._deserialize
111-
)
112-
self.networkinterfaces = NetworkinterfacesOperations(
113-
self._client, self._config, self._serialize, self._deserialize
114-
)
91+
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
11592
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
116-
self.storagecontainers = StoragecontainersOperations(
117-
self._client, self._config, self._serialize, self._deserialize
118-
)
119-
self.virtualharddisks = VirtualharddisksOperations(
120-
self._client, self._config, self._serialize, self._deserialize
121-
)
122-
self.virtualmachines = VirtualmachinesOperations(self._client, self._config, self._serialize, self._deserialize)
123-
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
124-
self._client, self._config, self._serialize, self._deserialize
125-
)
126-
self.machine_extensions = MachineExtensionsOperations(
93+
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
94+
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
95+
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
96+
self.update_summaries = UpdateSummariesOperations(
12797
self._client, self._config, self._serialize, self._deserialize
12898
)
129-
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
130-
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)
131-
self.virtualnetworks = VirtualnetworksOperations(self._client, self._config, self._serialize, self._deserialize)
99+
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
132100

133101
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
134102
"""Runs the network request through the client's chained policies.
@@ -159,5 +127,5 @@ def __enter__(self) -> "AzureStackHCIClient":
159127
self._client.__enter__()
160128
return self
161129

162-
def __exit__(self, *exc_details) -> None:
130+
def __exit__(self, *exc_details: Any) -> None:
163131
self._client.__exit__(*exc_details)

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class AzureStackHCIClientConfiguration(Configuration): # pylint: disable=too-ma
3535
:type credential: ~azure.core.credentials.TokenCredential
3636
:param subscription_id: The ID of the target subscription. Required.
3737
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding
39-
this default value may result in unsupported behavior.
38+
:keyword api_version: Api Version. Default value is "2023-02-01". Note that overriding this
39+
default value may result in unsupported behavior.
4040
:paramtype api_version: str
4141
"""
4242

4343
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(AzureStackHCIClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2021-09-01-preview"] = kwargs.pop("api_version", "2021-09-01-preview")
45+
api_version: Literal["2023-02-01"] = kwargs.pop("api_version", "2023-02-01")
4646

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

0 commit comments

Comments
 (0)