Skip to content

Commit 626c19e

Browse files
author
SDKAuto
committed
CodeGen from PR 22019 in Azure/azure-rest-api-specs
Merge 0a361b3d19407c6f759ca505312a120053b08b27 into 38e580acd81dbb904d048a23d805dd58b8699d93
1 parent 2adc8e1 commit 626c19e

File tree

125 files changed

+8083
-21349
lines changed

Some content is hidden

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

125 files changed

+8083
-21349
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "85ea3e489c45e80383801d4f3a1278f1e687a7b8",
2+
"commit": "868f9d58bcb99646ce890a5c7f7b7af63a47ce8a",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
66
"@autorest/[email protected]",
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/[email protected] --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/[email protected] --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

Lines changed: 26 additions & 58 deletions
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 "2022-12-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.

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

Lines changed: 3 additions & 3 deletions
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 "2022-12-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["2022-12-01"] = kwargs.pop("api_version", "2022-12-01")
4646

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

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_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 = "8.0.0b2"
9+
VERSION = "1.0.0b1"

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

Lines changed: 26 additions & 59 deletions
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,41 +42,28 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
4742
:vartype clusters: azure.mgmt.azurestackhci.aio.operations.ClustersOperations
4843
:ivar extensions: ExtensionsOperations operations
4944
:vartype extensions: azure.mgmt.azurestackhci.aio.operations.ExtensionsOperations
50-
:ivar galleryimages: GalleryimagesOperations operations
51-
:vartype galleryimages: azure.mgmt.azurestackhci.aio.operations.GalleryimagesOperations
52-
:ivar marketplacegalleryimages: MarketplacegalleryimagesOperations operations
53-
:vartype marketplacegalleryimages:
54-
azure.mgmt.azurestackhci.aio.operations.MarketplacegalleryimagesOperations
55-
:ivar networkinterfaces: NetworkinterfacesOperations operations
56-
:vartype networkinterfaces: azure.mgmt.azurestackhci.aio.operations.NetworkinterfacesOperations
45+
:ivar offers: OffersOperations operations
46+
:vartype offers: azure.mgmt.azurestackhci.aio.operations.OffersOperations
5747
:ivar operations: Operations operations
5848
:vartype operations: azure.mgmt.azurestackhci.aio.operations.Operations
59-
:ivar storagecontainers: StoragecontainersOperations operations
60-
:vartype storagecontainers: azure.mgmt.azurestackhci.aio.operations.StoragecontainersOperations
61-
:ivar virtualharddisks: VirtualharddisksOperations operations
62-
:vartype virtualharddisks: azure.mgmt.azurestackhci.aio.operations.VirtualharddisksOperations
63-
:ivar virtualmachines: VirtualmachinesOperations operations
64-
:vartype virtualmachines: azure.mgmt.azurestackhci.aio.operations.VirtualmachinesOperations
65-
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
66-
:vartype hybrid_identity_metadata:
67-
azure.mgmt.azurestackhci.aio.operations.HybridIdentityMetadataOperations
68-
:ivar machine_extensions: MachineExtensionsOperations operations
69-
:vartype machine_extensions:
70-
azure.mgmt.azurestackhci.aio.operations.MachineExtensionsOperations
71-
:ivar guest_agent: GuestAgentOperations operations
72-
:vartype guest_agent: azure.mgmt.azurestackhci.aio.operations.GuestAgentOperations
73-
:ivar guest_agents: GuestAgentsOperations operations
74-
:vartype guest_agents: azure.mgmt.azurestackhci.aio.operations.GuestAgentsOperations
75-
:ivar virtualnetworks: VirtualnetworksOperations operations
76-
:vartype virtualnetworks: azure.mgmt.azurestackhci.aio.operations.VirtualnetworksOperations
49+
:ivar publishers: PublishersOperations operations
50+
:vartype publishers: azure.mgmt.azurestackhci.aio.operations.PublishersOperations
51+
:ivar skus: SkusOperations operations
52+
:vartype skus: azure.mgmt.azurestackhci.aio.operations.SkusOperations
53+
:ivar update_runs: UpdateRunsOperations operations
54+
:vartype update_runs: azure.mgmt.azurestackhci.aio.operations.UpdateRunsOperations
55+
:ivar update_summaries: UpdateSummariesOperations operations
56+
:vartype update_summaries: azure.mgmt.azurestackhci.aio.operations.UpdateSummariesOperations
57+
:ivar updates: UpdatesOperations operations
58+
:vartype updates: azure.mgmt.azurestackhci.aio.operations.UpdatesOperations
7759
:param credential: Credential needed for the client to connect to Azure. Required.
7860
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
7961
:param subscription_id: The ID of the target subscription. Required.
8062
:type subscription_id: str
8163
:param base_url: Service URL. Default value is "https://management.azure.com".
8264
:type base_url: str
83-
:keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding
84-
this default value may result in unsupported behavior.
65+
:keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this
66+
default value may result in unsupported behavior.
8567
:paramtype api_version: str
8668
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8769
Retry-After header is present.
@@ -106,30 +88,15 @@ def __init__(
10688
self.arc_settings = ArcSettingsOperations(self._client, self._config, self._serialize, self._deserialize)
10789
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
10890
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
109-
self.galleryimages = GalleryimagesOperations(self._client, self._config, self._serialize, self._deserialize)
110-
self.marketplacegalleryimages = MarketplacegalleryimagesOperations(
111-
self._client, self._config, self._serialize, self._deserialize
112-
)
113-
self.networkinterfaces = NetworkinterfacesOperations(
114-
self._client, self._config, self._serialize, self._deserialize
115-
)
91+
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
11692
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
117-
self.storagecontainers = StoragecontainersOperations(
118-
self._client, self._config, self._serialize, self._deserialize
119-
)
120-
self.virtualharddisks = VirtualharddisksOperations(
121-
self._client, self._config, self._serialize, self._deserialize
122-
)
123-
self.virtualmachines = VirtualmachinesOperations(self._client, self._config, self._serialize, self._deserialize)
124-
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
125-
self._client, self._config, self._serialize, self._deserialize
126-
)
127-
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(
12897
self._client, self._config, self._serialize, self._deserialize
12998
)
130-
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
131-
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)
132-
self.virtualnetworks = VirtualnetworksOperations(self._client, self._config, self._serialize, self._deserialize)
99+
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
133100

134101
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
135102
"""Runs the network request through the client's chained policies.

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

Lines changed: 3 additions & 3 deletions
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_async.AsyncTokenCredential
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 "2022-12-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: "AsyncTokenCredential", 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["2022-12-01"] = kwargs.pop("api_version", "2022-12-01")
4646

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

sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/__init__.py

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@
99
from ._arc_settings_operations import ArcSettingsOperations
1010
from ._clusters_operations import ClustersOperations
1111
from ._extensions_operations import ExtensionsOperations
12-
from ._galleryimages_operations import GalleryimagesOperations
13-
from ._marketplacegalleryimages_operations import MarketplacegalleryimagesOperations
14-
from ._networkinterfaces_operations import NetworkinterfacesOperations
12+
from ._offers_operations import OffersOperations
1513
from ._operations import Operations
16-
from ._storagecontainers_operations import StoragecontainersOperations
17-
from ._virtualharddisks_operations import VirtualharddisksOperations
18-
from ._virtualmachines_operations import VirtualmachinesOperations
19-
from ._hybrid_identity_metadata_operations import HybridIdentityMetadataOperations
20-
from ._machine_extensions_operations import MachineExtensionsOperations
21-
from ._guest_agent_operations import GuestAgentOperations
22-
from ._guest_agents_operations import GuestAgentsOperations
23-
from ._virtualnetworks_operations import VirtualnetworksOperations
14+
from ._publishers_operations import PublishersOperations
15+
from ._skus_operations import SkusOperations
16+
from ._update_runs_operations import UpdateRunsOperations
17+
from ._update_summaries_operations import UpdateSummariesOperations
18+
from ._updates_operations import UpdatesOperations
2419

2520
from ._patch import __all__ as _patch_all
2621
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -30,18 +25,13 @@
3025
"ArcSettingsOperations",
3126
"ClustersOperations",
3227
"ExtensionsOperations",
33-
"GalleryimagesOperations",
34-
"MarketplacegalleryimagesOperations",
35-
"NetworkinterfacesOperations",
28+
"OffersOperations",
3629
"Operations",
37-
"StoragecontainersOperations",
38-
"VirtualharddisksOperations",
39-
"VirtualmachinesOperations",
40-
"HybridIdentityMetadataOperations",
41-
"MachineExtensionsOperations",
42-
"GuestAgentOperations",
43-
"GuestAgentsOperations",
44-
"VirtualnetworksOperations",
30+
"PublishersOperations",
31+
"SkusOperations",
32+
"UpdateRunsOperations",
33+
"UpdateSummariesOperations",
34+
"UpdatesOperations",
4535
]
4636
__all__.extend([p for p in _patch_all if p not in __all__])
4737
_patch_sdk()

0 commit comments

Comments
 (0)