Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to AVS 2021-01-01-preview API #2976

Merged
merged 8 commits into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/vmware/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
## 2.0.0 (TBD)

This version has **breaking changes** for scripts.

- prompt for legal terms for `az vmware private-cloud create` [#2932](https://github.com/Azure/azure-cli-extensions/pull/2932)
- scripts will need to add `--accept-eula` to avoid being prompted
- prompt to confirm for `az vmware private-cloud delete` [#2930](https://github.com/Azure/azure-cli-extensions/pull/2930)
- scripts will need to add `--yes` to avoid being prompted

Other changes:
- update to AVS 2021-01-01-preview API [#2976](https://github.com/Azure/azure-cli-extensions/pull/2976)

## 1.0.0 (2020-11-02)

- GA Release
Expand Down
2 changes: 1 addition & 1 deletion src/vmware/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
``` powershell
rm ..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks -Recurse

autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.6.0 --tag=package-2020-03-20 --azure-arm=true --override-client-name=AVSClient specification\vmware\resource-manager\readme.md
autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.6.1 --tag=package-2021-01-01-preview --azure-arm=true --override-client-name=AVSClient specification\vmware\resource-manager\readme.md
```
It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs).
570 changes: 285 additions & 285 deletions src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
from .operations import LocationsOperations
from .operations import PrivateCloudsOperations
from .operations import ClustersOperations
from .operations import DatastoresOperations
from .operations import HcxEnterpriseSitesOperations
from .operations import AuthorizationsOperations
from .operations import GlobalReachConnectionsOperations
from .operations import WorkloadNetworksOperations
from .operations import AddonsOperations
from . import models


Expand All @@ -36,10 +40,18 @@ class AVSClient(object):
:vartype private_clouds: avs_client.operations.PrivateCloudsOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: avs_client.operations.ClustersOperations
:ivar datastores: DatastoresOperations operations
:vartype datastores: avs_client.operations.DatastoresOperations
:ivar hcx_enterprise_sites: HcxEnterpriseSitesOperations operations
:vartype hcx_enterprise_sites: avs_client.operations.HcxEnterpriseSitesOperations
:ivar authorizations: AuthorizationsOperations operations
:vartype authorizations: avs_client.operations.AuthorizationsOperations
:ivar global_reach_connections: GlobalReachConnectionsOperations operations
:vartype global_reach_connections: avs_client.operations.GlobalReachConnectionsOperations
:ivar workload_networks: WorkloadNetworksOperations operations
:vartype workload_networks: avs_client.operations.WorkloadNetworksOperations
:ivar addons: AddonsOperations operations
:vartype addons: avs_client.operations.AddonsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -74,10 +86,18 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.datastores = DatastoresOperations(
self._client, self._config, self._serialize, self._deserialize)
self.hcx_enterprise_sites = HcxEnterpriseSitesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.authorizations = AuthorizationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.global_reach_connections = GlobalReachConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workload_networks = WorkloadNetworksOperations(
self._client, self._config, self._serialize, self._deserialize)
self.addons = AddonsOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-20"
self.api_version = "2021-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
from .operations import LocationsOperations
from .operations import PrivateCloudsOperations
from .operations import ClustersOperations
from .operations import DatastoresOperations
from .operations import HcxEnterpriseSitesOperations
from .operations import AuthorizationsOperations
from .operations import GlobalReachConnectionsOperations
from .operations import WorkloadNetworksOperations
from .operations import AddonsOperations
from .. import models


Expand All @@ -34,10 +38,18 @@ class AVSClient(object):
:vartype private_clouds: avs_client.aio.operations.PrivateCloudsOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: avs_client.aio.operations.ClustersOperations
:ivar datastores: DatastoresOperations operations
:vartype datastores: avs_client.aio.operations.DatastoresOperations
:ivar hcx_enterprise_sites: HcxEnterpriseSitesOperations operations
:vartype hcx_enterprise_sites: avs_client.aio.operations.HcxEnterpriseSitesOperations
:ivar authorizations: AuthorizationsOperations operations
:vartype authorizations: avs_client.aio.operations.AuthorizationsOperations
:ivar global_reach_connections: GlobalReachConnectionsOperations operations
:vartype global_reach_connections: avs_client.aio.operations.GlobalReachConnectionsOperations
:ivar workload_networks: WorkloadNetworksOperations operations
:vartype workload_networks: avs_client.aio.operations.WorkloadNetworksOperations
:ivar addons: AddonsOperations operations
:vartype addons: avs_client.aio.operations.AddonsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -71,10 +83,18 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.datastores = DatastoresOperations(
self._client, self._config, self._serialize, self._deserialize)
self.hcx_enterprise_sites = HcxEnterpriseSitesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.authorizations = AuthorizationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.global_reach_connections = GlobalReachConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workload_networks = WorkloadNetworksOperations(
self._client, self._config, self._serialize, self._deserialize)
self.addons = AddonsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-03-20"
self.api_version = "2021-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'avsclient/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
from ._locations_operations import LocationsOperations
from ._private_clouds_operations import PrivateCloudsOperations
from ._clusters_operations import ClustersOperations
from ._datastores_operations import DatastoresOperations
from ._hcx_enterprise_sites_operations import HcxEnterpriseSitesOperations
from ._authorizations_operations import AuthorizationsOperations
from ._global_reach_connections_operations import GlobalReachConnectionsOperations
from ._workload_networks_operations import WorkloadNetworksOperations
from ._addons_operations import AddonsOperations

__all__ = [
'Operations',
'LocationsOperations',
'PrivateCloudsOperations',
'ClustersOperations',
'DatastoresOperations',
'HcxEnterpriseSitesOperations',
'AuthorizationsOperations',
'GlobalReachConnectionsOperations',
'WorkloadNetworksOperations',
'AddonsOperations',
]
Loading