Skip to content

Commit 51eeb93

Browse files
author
SDKAuto
committed
CodeGen from PR 32983 in Azure/azure-rest-api-specs
Merge 1eb1ab390f3afe798fff6b93f206ba9dbd3450b4 into c9d5e1c120e7e6bc056316342005941cb065ee81
1 parent 01b5841 commit 51eeb93

File tree

233 files changed

+9336
-1585
lines changed

Some content is hidden

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

233 files changed

+9336
-1585
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "abb0052f400b0215d4fbbf479e5bbc54714199e0",
2+
"commit": "cf08e5a1b96cfde55721e54d08cd6eb81b090d32",
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/vmware/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/vmware/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.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/vmware/resource-manager/readme.md"
1111
}

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

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,28 @@
2626
DatastoresOperations,
2727
GlobalReachConnectionsOperations,
2828
HcxEnterpriseSitesOperations,
29+
HostsOperations,
2930
IscsiPathsOperations,
3031
LocationsOperations,
32+
MaintenancesOperations,
3133
Operations,
3234
PlacementPoliciesOperations,
3335
PrivateCloudsOperations,
36+
ProvisionedNetworksOperations,
37+
PureStoragePoliciesOperations,
3438
ScriptCmdletsOperations,
3539
ScriptExecutionsOperations,
3640
ScriptPackagesOperations,
41+
SkusOperations,
3742
VirtualMachinesOperations,
3843
WorkloadNetworksOperations,
3944
)
4045

4146
if TYPE_CHECKING:
42-
# pylint: disable=unused-import,ungrouped-imports
4347
from azure.core.credentials import TokenCredential
4448

4549

46-
class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50+
class AVSClient: # pylint: disable=too-many-instance-attributes
4751
"""Azure VMware Solution API.
4852
4953
:ivar operations: Operations operations
@@ -52,6 +56,8 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
5256
:vartype locations: azure.mgmt.avs.operations.LocationsOperations
5357
:ivar private_clouds: PrivateCloudsOperations operations
5458
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
59+
:ivar skus: SkusOperations operations
60+
:vartype skus: azure.mgmt.avs.operations.SkusOperations
5561
:ivar addons: AddonsOperations operations
5662
:vartype addons: azure.mgmt.avs.operations.AddonsOperations
5763
:ivar authorizations: AuthorizationsOperations operations
@@ -62,6 +68,8 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
6268
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
6369
:ivar datastores: DatastoresOperations operations
6470
:vartype datastores: azure.mgmt.avs.operations.DatastoresOperations
71+
:ivar hosts: HostsOperations operations
72+
:vartype hosts: azure.mgmt.avs.operations.HostsOperations
6573
:ivar placement_policies: PlacementPoliciesOperations operations
6674
:vartype placement_policies: azure.mgmt.avs.operations.PlacementPoliciesOperations
6775
:ivar virtual_machines: VirtualMachinesOperations operations
@@ -72,6 +80,12 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
7280
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
7381
:ivar iscsi_paths: IscsiPathsOperations operations
7482
:vartype iscsi_paths: azure.mgmt.avs.operations.IscsiPathsOperations
83+
:ivar maintenances: MaintenancesOperations operations
84+
:vartype maintenances: azure.mgmt.avs.operations.MaintenancesOperations
85+
:ivar provisioned_networks: ProvisionedNetworksOperations operations
86+
:vartype provisioned_networks: azure.mgmt.avs.operations.ProvisionedNetworksOperations
87+
:ivar pure_storage_policies: PureStoragePoliciesOperations operations
88+
:vartype pure_storage_policies: azure.mgmt.avs.operations.PureStoragePoliciesOperations
7589
:ivar script_executions: ScriptExecutionsOperations operations
7690
:vartype script_executions: azure.mgmt.avs.operations.ScriptExecutionsOperations
7791
:ivar script_packages: ScriptPackagesOperations operations
@@ -86,7 +100,7 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
86100
:type subscription_id: str
87101
:param base_url: Service URL. Default value is "https://management.azure.com".
88102
:type base_url: str
89-
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
103+
:keyword api_version: Api Version. Default value is "2024-09-01". Note that overriding this
90104
default value may result in unsupported behavior.
91105
:paramtype api_version: str
92106
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -128,11 +142,13 @@ def __init__(
128142
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
129143
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
130144
self.private_clouds = PrivateCloudsOperations(self._client, self._config, self._serialize, self._deserialize)
145+
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
131146
self.addons = AddonsOperations(self._client, self._config, self._serialize, self._deserialize)
132147
self.authorizations = AuthorizationsOperations(self._client, self._config, self._serialize, self._deserialize)
133148
self.cloud_links = CloudLinksOperations(self._client, self._config, self._serialize, self._deserialize)
134149
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
135150
self.datastores = DatastoresOperations(self._client, self._config, self._serialize, self._deserialize)
151+
self.hosts = HostsOperations(self._client, self._config, self._serialize, self._deserialize)
136152
self.placement_policies = PlacementPoliciesOperations(
137153
self._client, self._config, self._serialize, self._deserialize
138154
)
@@ -146,6 +162,13 @@ def __init__(
146162
self._client, self._config, self._serialize, self._deserialize
147163
)
148164
self.iscsi_paths = IscsiPathsOperations(self._client, self._config, self._serialize, self._deserialize)
165+
self.maintenances = MaintenancesOperations(self._client, self._config, self._serialize, self._deserialize)
166+
self.provisioned_networks = ProvisionedNetworksOperations(
167+
self._client, self._config, self._serialize, self._deserialize
168+
)
169+
self.pure_storage_policies = PureStoragePoliciesOperations(
170+
self._client, self._config, self._serialize, self._deserialize
171+
)
149172
self.script_executions = ScriptExecutionsOperations(
150173
self._client, self._config, self._serialize, self._deserialize
151174
)

sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_configuration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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

@@ -28,13 +27,13 @@ class AVSClientConfiguration: # pylint: disable=too-many-instance-attributes
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
: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 "2023-09-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2024-09-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", "2023-09-01")
36+
api_version: str = kwargs.pop("api_version", "2024-09-01")
3837

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

0 commit comments

Comments
 (0)