Skip to content

Commit c648d8c

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-avs-2024-06-20-43168(can only be merged by SDK owner) (Azure#36172)
* code and test * update-version * Update CHANGELOG.md * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent b05b1ce commit c648d8c

File tree

165 files changed

+10344
-11314
lines changed

Some content is hidden

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

165 files changed

+10344
-11314
lines changed

sdk/compute/azure-mgmt-avs/CHANGELOG.md

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

3+
## 9.0.0b1 (2024-06-28)
4+
5+
### Features Added
6+
7+
- Added operation WorkloadNetworksOperations.list_public_ips
8+
- Added operation group IscsiPathsOperations
9+
- Model Addon has a new parameter system_data
10+
- Model CloudLink has a new parameter provisioning_state
11+
- Model CloudLink has a new parameter system_data
12+
- Model Cluster has a new parameter system_data
13+
- Model Cluster has a new parameter vsan_datastore_name
14+
- Model ClusterUpdate has a new parameter sku
15+
- Model Datastore has a new parameter elastic_san_volume
16+
- Model Datastore has a new parameter system_data
17+
- Model Endpoints has a new parameter hcx_cloud_manager_ip
18+
- Model Endpoints has a new parameter nsxt_manager_ip
19+
- Model Endpoints has a new parameter vcenter_ip
20+
- Model ExpressRouteAuthorization has a new parameter system_data
21+
- Model GlobalReachConnection has a new parameter system_data
22+
- Model HcxEnterpriseSite has a new parameter provisioning_state
23+
- Model HcxEnterpriseSite has a new parameter system_data
24+
- Model ManagementCluster has a new parameter vsan_datastore_name
25+
- Model Operation has a new parameter action_type
26+
- Model PlacementPolicy has a new parameter system_data
27+
- Model PrivateCloud has a new parameter dns_zone_type
28+
- Model PrivateCloud has a new parameter system_data
29+
- Model PrivateCloud has a new parameter virtual_network_id
30+
- Model PrivateCloudUpdate has a new parameter dns_zone_type
31+
- Model PrivateCloudUpdate has a new parameter sku
32+
- Model ProxyResource has a new parameter system_data
33+
- Model Resource has a new parameter system_data
34+
- Model ScriptCmdlet has a new parameter audience
35+
- Model ScriptCmdlet has a new parameter provisioning_state
36+
- Model ScriptCmdlet has a new parameter system_data
37+
- Model ScriptExecution has a new parameter system_data
38+
- Model ScriptPackage has a new parameter provisioning_state
39+
- Model ScriptPackage has a new parameter system_data
40+
- Model Sku has a new parameter capacity
41+
- Model Sku has a new parameter family
42+
- Model Sku has a new parameter size
43+
- Model Sku has a new parameter tier
44+
- Model TrackedResource has a new parameter system_data
45+
- Model VirtualMachine has a new parameter provisioning_state
46+
- Model VirtualMachine has a new parameter system_data
47+
- Model WorkloadNetwork has a new parameter provisioning_state
48+
- Model WorkloadNetwork has a new parameter system_data
49+
- Model WorkloadNetworkDhcp has a new parameter system_data
50+
- Model WorkloadNetworkDnsService has a new parameter system_data
51+
- Model WorkloadNetworkDnsZone has a new parameter system_data
52+
- Model WorkloadNetworkGateway has a new parameter provisioning_state
53+
- Model WorkloadNetworkGateway has a new parameter system_data
54+
- Model WorkloadNetworkPortMirroring has a new parameter system_data
55+
- Model WorkloadNetworkPublicIP has a new parameter system_data
56+
- Model WorkloadNetworkSegment has a new parameter system_data
57+
- Model WorkloadNetworkVMGroup has a new parameter system_data
58+
- Model WorkloadNetworkVirtualMachine has a new parameter provisioning_state
59+
- Model WorkloadNetworkVirtualMachine has a new parameter system_data
60+
61+
### Breaking Changes
62+
63+
- Model Operation no longer has parameter properties
64+
- Operation WorkloadNetworksOperations.get no longer has parameter workload_network_name
65+
- Parameter location of model PrivateCloud is now required
66+
- Parameter location of model TrackedResource is now required
67+
- Parameter type of model PrivateCloudIdentity is now required
68+
- Parameter value of model AddonList is now required
69+
- Parameter value of model CloudLinkList is now required
70+
- Parameter value of model ClusterList is now required
71+
- Parameter value of model DatastoreList is now required
72+
- Parameter value of model ExpressRouteAuthorizationList is now required
73+
- Parameter value of model GlobalReachConnectionList is now required
74+
- Parameter value of model HcxEnterpriseSiteList is now required
75+
- Parameter value of model PlacementPoliciesList is now required
76+
- Parameter value of model PrivateCloudList is now required
77+
- Parameter value of model ScriptCmdletsList is now required
78+
- Parameter value of model ScriptExecutionsList is now required
79+
- Parameter value of model ScriptPackagesList is now required
80+
- Parameter value of model VirtualMachinesList is now required
81+
- Parameter value of model WorkloadNetworkDhcpList is now required
82+
- Parameter value of model WorkloadNetworkDnsServicesList is now required
83+
- Parameter value of model WorkloadNetworkDnsZonesList is now required
84+
- Parameter value of model WorkloadNetworkGatewayList is now required
85+
- Parameter value of model WorkloadNetworkList is now required
86+
- Parameter value of model WorkloadNetworkPortMirroringList is now required
87+
- Parameter value of model WorkloadNetworkPublicIPsList is now required
88+
- Parameter value of model WorkloadNetworkSegmentsList is now required
89+
- Parameter value of model WorkloadNetworkVMGroupsList is now required
90+
- Parameter value of model WorkloadNetworkVirtualMachinesList is now required
91+
- Removed operation WorkloadNetworksOperations.list_public_i_ps
92+
393
## 8.0.0 (2023-08-25)
494

595
### Features Added

sdk/compute/azure-mgmt-avs/README.md

Lines changed: 2 additions & 5 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 Avs Management Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-avs%2FREADME.png)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a5e7ff51c8af3781e7f6dd3b82a3fc922e2f6f93",
2+
"commit": "cc92c5922e1d69bab8f0deb8e1f778f6d9455739",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.7.1",
7-
"@autorest/modelerfour@4.26.2"
6+
"@autorest/python@6.13.19",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/vmware/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 --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/vmware/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 --use=@autorest/python@6.13.19 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/vmware/resource-manager/readme.md"
1111
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "python",
4+
"TagPrefix": "python/avs/azure-mgmt-avs",
5+
"Tag": "python/avs/azure-mgmt-avs_a571dea602"
6+
}

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

Lines changed: 54 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
1111

12+
from azure.core.pipeline import policies
1213
from azure.core.rest import HttpRequest, HttpResponse
1314
from azure.mgmt.core import ARMPipelineClient
15+
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
1416

1517
from . import models as _models
1618
from ._configuration import AVSClientConfiguration
@@ -23,6 +25,7 @@
2325
DatastoresOperations,
2426
GlobalReachConnectionsOperations,
2527
HcxEnterpriseSitesOperations,
28+
IscsiPathsOperations,
2629
LocationsOperations,
2730
Operations,
2831
PlacementPoliciesOperations,
@@ -48,39 +51,41 @@ class AVSClient: # pylint: disable=client-accepts-api-version-keyword,too-many-
4851
:vartype locations: azure.mgmt.avs.operations.LocationsOperations
4952
:ivar private_clouds: PrivateCloudsOperations operations
5053
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
51-
:ivar clusters: ClustersOperations operations
52-
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
53-
:ivar datastores: DatastoresOperations operations
54-
:vartype datastores: azure.mgmt.avs.operations.DatastoresOperations
55-
:ivar hcx_enterprise_sites: HcxEnterpriseSitesOperations operations
56-
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
54+
:ivar addons: AddonsOperations operations
55+
:vartype addons: azure.mgmt.avs.operations.AddonsOperations
5756
:ivar authorizations: AuthorizationsOperations operations
5857
:vartype authorizations: azure.mgmt.avs.operations.AuthorizationsOperations
59-
:ivar global_reach_connections: GlobalReachConnectionsOperations operations
60-
:vartype global_reach_connections: azure.mgmt.avs.operations.GlobalReachConnectionsOperations
61-
:ivar workload_networks: WorkloadNetworksOperations operations
62-
:vartype workload_networks: azure.mgmt.avs.operations.WorkloadNetworksOperations
6358
:ivar cloud_links: CloudLinksOperations operations
6459
:vartype cloud_links: azure.mgmt.avs.operations.CloudLinksOperations
65-
:ivar addons: AddonsOperations operations
66-
:vartype addons: azure.mgmt.avs.operations.AddonsOperations
67-
:ivar virtual_machines: VirtualMachinesOperations operations
68-
:vartype virtual_machines: azure.mgmt.avs.operations.VirtualMachinesOperations
60+
:ivar clusters: ClustersOperations operations
61+
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
62+
:ivar datastores: DatastoresOperations operations
63+
:vartype datastores: azure.mgmt.avs.operations.DatastoresOperations
6964
:ivar placement_policies: PlacementPoliciesOperations operations
7065
:vartype placement_policies: azure.mgmt.avs.operations.PlacementPoliciesOperations
66+
:ivar virtual_machines: VirtualMachinesOperations operations
67+
:vartype virtual_machines: azure.mgmt.avs.operations.VirtualMachinesOperations
68+
:ivar global_reach_connections: GlobalReachConnectionsOperations operations
69+
:vartype global_reach_connections: azure.mgmt.avs.operations.GlobalReachConnectionsOperations
70+
:ivar hcx_enterprise_sites: HcxEnterpriseSitesOperations operations
71+
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
72+
:ivar iscsi_paths: IscsiPathsOperations operations
73+
:vartype iscsi_paths: azure.mgmt.avs.operations.IscsiPathsOperations
74+
:ivar script_executions: ScriptExecutionsOperations operations
75+
:vartype script_executions: azure.mgmt.avs.operations.ScriptExecutionsOperations
7176
:ivar script_packages: ScriptPackagesOperations operations
7277
:vartype script_packages: azure.mgmt.avs.operations.ScriptPackagesOperations
7378
:ivar script_cmdlets: ScriptCmdletsOperations operations
7479
:vartype script_cmdlets: azure.mgmt.avs.operations.ScriptCmdletsOperations
75-
:ivar script_executions: ScriptExecutionsOperations operations
76-
:vartype script_executions: azure.mgmt.avs.operations.ScriptExecutionsOperations
80+
:ivar workload_networks: WorkloadNetworksOperations operations
81+
:vartype workload_networks: azure.mgmt.avs.operations.WorkloadNetworksOperations
7782
:param credential: Credential needed for the client to connect to Azure. Required.
7883
:type credential: ~azure.core.credentials.TokenCredential
79-
:param subscription_id: The ID of the target subscription. Required.
84+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
8085
:type subscription_id: str
8186
:param base_url: Service URL. Default value is "https://management.azure.com".
8287
:type base_url: str
83-
:keyword api_version: Api Version. Default value is "2023-03-01". Note that overriding this
88+
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
8489
default value may result in unsupported behavior.
8590
:paramtype api_version: str
8691
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -95,7 +100,25 @@ def __init__(
95100
**kwargs: Any
96101
) -> None:
97102
self._config = AVSClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
98-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
103+
_policies = kwargs.pop("policies", None)
104+
if _policies is None:
105+
_policies = [
106+
policies.RequestIdPolicy(**kwargs),
107+
self._config.headers_policy,
108+
self._config.user_agent_policy,
109+
self._config.proxy_policy,
110+
policies.ContentDecodePolicy(**kwargs),
111+
ARMAutoResourceProviderRegistrationPolicy(),
112+
self._config.redirect_policy,
113+
self._config.retry_policy,
114+
self._config.authentication_policy,
115+
self._config.custom_hook_policy,
116+
self._config.logging_policy,
117+
policies.DistributedTracingPolicy(**kwargs),
118+
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
119+
self._config.http_logging_policy,
120+
]
121+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
99122

100123
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
101124
self._serialize = Serializer(client_models)
@@ -104,33 +127,34 @@ def __init__(
104127
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
105128
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
106129
self.private_clouds = PrivateCloudsOperations(self._client, self._config, self._serialize, self._deserialize)
130+
self.addons = AddonsOperations(self._client, self._config, self._serialize, self._deserialize)
131+
self.authorizations = AuthorizationsOperations(self._client, self._config, self._serialize, self._deserialize)
132+
self.cloud_links = CloudLinksOperations(self._client, self._config, self._serialize, self._deserialize)
107133
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
108134
self.datastores = DatastoresOperations(self._client, self._config, self._serialize, self._deserialize)
109-
self.hcx_enterprise_sites = HcxEnterpriseSitesOperations(
135+
self.placement_policies = PlacementPoliciesOperations(
110136
self._client, self._config, self._serialize, self._deserialize
111137
)
112-
self.authorizations = AuthorizationsOperations(self._client, self._config, self._serialize, self._deserialize)
113-
self.global_reach_connections = GlobalReachConnectionsOperations(
138+
self.virtual_machines = VirtualMachinesOperations(
114139
self._client, self._config, self._serialize, self._deserialize
115140
)
116-
self.workload_networks = WorkloadNetworksOperations(
141+
self.global_reach_connections = GlobalReachConnectionsOperations(
117142
self._client, self._config, self._serialize, self._deserialize
118143
)
119-
self.cloud_links = CloudLinksOperations(self._client, self._config, self._serialize, self._deserialize)
120-
self.addons = AddonsOperations(self._client, self._config, self._serialize, self._deserialize)
121-
self.virtual_machines = VirtualMachinesOperations(
144+
self.hcx_enterprise_sites = HcxEnterpriseSitesOperations(
122145
self._client, self._config, self._serialize, self._deserialize
123146
)
124-
self.placement_policies = PlacementPoliciesOperations(
147+
self.iscsi_paths = IscsiPathsOperations(self._client, self._config, self._serialize, self._deserialize)
148+
self.script_executions = ScriptExecutionsOperations(
125149
self._client, self._config, self._serialize, self._deserialize
126150
)
127151
self.script_packages = ScriptPackagesOperations(self._client, self._config, self._serialize, self._deserialize)
128152
self.script_cmdlets = ScriptCmdletsOperations(self._client, self._config, self._serialize, self._deserialize)
129-
self.script_executions = ScriptExecutionsOperations(
153+
self.workload_networks = WorkloadNetworksOperations(
130154
self._client, self._config, self._serialize, self._deserialize
131155
)
132156

133-
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
157+
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
134158
"""Runs the network request through the client's chained policies.
135159
136160
>>> from azure.core.rest import HttpRequest
@@ -150,7 +174,7 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
150174

151175
request_copy = deepcopy(request)
152176
request_copy.url = self._client.format_url(request_copy.url)
153-
return self._client.send_request(request_copy, **kwargs)
177+
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
154178

155179
def close(self) -> None:
156180
self._client.close()

0 commit comments

Comments
 (0)