Skip to content

Commit

Permalink
CodeGen from PR 14215 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add AVS 2021-06-01 API (Azure#14215)

* add AVS 2021-06-01 API

* add cmdlets custom word

* rename ScriptCmdlet cmdletDescription to description (Azure#14218)

* Adding optional to the script parameter (Azure#14437)

Co-authored-by: David Becher <[email protected]>

Co-authored-by: david becher <[email protected]>
Co-authored-by: David Becher <[email protected]>
  • Loading branch information
3 people committed May 18, 2021
1 parent bdaea28 commit a0e2f9c
Show file tree
Hide file tree
Showing 23 changed files with 9,635 additions and 195 deletions.
1 change: 1 addition & 0 deletions sdk/compute/azure-mgmt-avs/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/compute/azure-mgmt-avs/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "1d53085a5bf835189b3ec91126edb093e1c24fee",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/vmware/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/vmware/resource-manager/readme.md"
}
42 changes: 41 additions & 1 deletion sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_avs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
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 CloudLinksOperations
from .operations import AddonsOperations
from .operations import ScriptPackagesOperations
from .operations import ScriptCmdletsOperations
from .operations import ScriptExecutionsOperations
from . import models


Expand All @@ -36,10 +44,26 @@ class AVSClient(SDKClient):
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
:ivar clusters: Clusters operations
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
:ivar datastores: Datastores operations
:vartype datastores: azure.mgmt.avs.operations.DatastoresOperations
:ivar hcx_enterprise_sites: HcxEnterpriseSites operations
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
:ivar authorizations: Authorizations operations
:vartype authorizations: azure.mgmt.avs.operations.AuthorizationsOperations
:ivar global_reach_connections: GlobalReachConnections operations
:vartype global_reach_connections: azure.mgmt.avs.operations.GlobalReachConnectionsOperations
:ivar workload_networks: WorkloadNetworks operations
:vartype workload_networks: azure.mgmt.avs.operations.WorkloadNetworksOperations
:ivar cloud_links: CloudLinks operations
:vartype cloud_links: azure.mgmt.avs.operations.CloudLinksOperations
:ivar addons: Addons operations
:vartype addons: azure.mgmt.avs.operations.AddonsOperations
:ivar script_packages: ScriptPackages operations
:vartype script_packages: azure.mgmt.avs.operations.ScriptPackagesOperations
:ivar script_cmdlets: ScriptCmdlets operations
:vartype script_cmdlets: azure.mgmt.avs.operations.ScriptCmdletsOperations
:ivar script_executions: ScriptExecutions operations
:vartype script_executions: azure.mgmt.avs.operations.ScriptExecutionsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -56,7 +80,7 @@ def __init__(
super(AVSClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-03-20'
self.api_version = '2021-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -68,7 +92,23 @@ 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.cloud_links = CloudLinksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.addons = AddonsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.script_packages = ScriptPackagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.script_cmdlets = ScriptCmdletsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.script_executions = ScriptExecutionsOperations(
self._client, self.config, self._serialize, self._deserialize)
191 changes: 186 additions & 5 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,113 +10,294 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Addon
from ._models_py3 import AddonHcxProperties
from ._models_py3 import AddonProperties
from ._models_py3 import AddonSrmProperties
from ._models_py3 import AddonVrProperties
from ._models_py3 import AdminCredentials
from ._models_py3 import Circuit
from ._models_py3 import CloudLink
from ._models_py3 import Cluster
from ._models_py3 import ClusterUpdate
from ._models_py3 import ClusterUpdateProperties
from ._models_py3 import CommonClusterProperties
from ._models_py3 import Datastore
from ._models_py3 import DiskPoolVolume
from ._models_py3 import Endpoints
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorResponse
from ._models_py3 import ExpressRouteAuthorization
from ._models_py3 import GlobalReachConnection
from ._models_py3 import HcxEnterpriseSite
from ._models_py3 import IdentitySource
from ._models_py3 import LogSpecification
from ._models_py3 import ManagementCluster
from ._models_py3 import MetricDimension
from ._models_py3 import MetricSpecification
from ._models_py3 import NetAppVolume
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationProperties
from ._models_py3 import PrivateCloud
from ._models_py3 import PrivateCloudUpdate
from ._models_py3 import ProxyResource
from ._models_py3 import PSCredentialExecutionParameter
from ._models_py3 import Quota
from ._models_py3 import Resource
from ._models_py3 import ScriptCmdlet
from ._models_py3 import ScriptExecution
from ._models_py3 import ScriptExecutionParameter
from ._models_py3 import ScriptPackage
from ._models_py3 import ScriptParameter
from ._models_py3 import ScriptSecureStringExecutionParameter
from ._models_py3 import ScriptStringExecutionParameter
from ._models_py3 import ServiceSpecification
from ._models_py3 import Sku
from ._models_py3 import TrackedResource
from ._models_py3 import Trial
from ._models_py3 import WorkloadNetworkDhcp
from ._models_py3 import WorkloadNetworkDhcpEntity
from ._models_py3 import WorkloadNetworkDhcpRelay
from ._models_py3 import WorkloadNetworkDhcpServer
from ._models_py3 import WorkloadNetworkDnsService
from ._models_py3 import WorkloadNetworkDnsZone
from ._models_py3 import WorkloadNetworkGateway
from ._models_py3 import WorkloadNetworkPortMirroring
from ._models_py3 import WorkloadNetworkPublicIP
from ._models_py3 import WorkloadNetworkSegment
from ._models_py3 import WorkloadNetworkSegmentPortVif
from ._models_py3 import WorkloadNetworkSegmentSubnet
from ._models_py3 import WorkloadNetworkVirtualMachine
from ._models_py3 import WorkloadNetworkVMGroup
except (SyntaxError, ImportError):
from ._models import Addon
from ._models import AddonHcxProperties
from ._models import AddonProperties
from ._models import AddonSrmProperties
from ._models import AddonVrProperties
from ._models import AdminCredentials
from ._models import Circuit
from ._models import CloudLink
from ._models import Cluster
from ._models import ClusterUpdate
from ._models import ClusterUpdateProperties
from ._models import CommonClusterProperties
from ._models import Datastore
from ._models import DiskPoolVolume
from ._models import Endpoints
from ._models import ErrorAdditionalInfo
from ._models import ErrorResponse
from ._models import ExpressRouteAuthorization
from ._models import GlobalReachConnection
from ._models import HcxEnterpriseSite
from ._models import IdentitySource
from ._models import LogSpecification
from ._models import ManagementCluster
from ._models import MetricDimension
from ._models import MetricSpecification
from ._models import NetAppVolume
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationProperties
from ._models import PrivateCloud
from ._models import PrivateCloudUpdate
from ._models import ProxyResource
from ._models import PSCredentialExecutionParameter
from ._models import Quota
from ._models import Resource
from ._models import ScriptCmdlet
from ._models import ScriptExecution
from ._models import ScriptExecutionParameter
from ._models import ScriptPackage
from ._models import ScriptParameter
from ._models import ScriptSecureStringExecutionParameter
from ._models import ScriptStringExecutionParameter
from ._models import ServiceSpecification
from ._models import Sku
from ._models import TrackedResource
from ._models import Trial
from ._models import WorkloadNetworkDhcp
from ._models import WorkloadNetworkDhcpEntity
from ._models import WorkloadNetworkDhcpRelay
from ._models import WorkloadNetworkDhcpServer
from ._models import WorkloadNetworkDnsService
from ._models import WorkloadNetworkDnsZone
from ._models import WorkloadNetworkGateway
from ._models import WorkloadNetworkPortMirroring
from ._models import WorkloadNetworkPublicIP
from ._models import WorkloadNetworkSegment
from ._models import WorkloadNetworkSegmentPortVif
from ._models import WorkloadNetworkSegmentSubnet
from ._models import WorkloadNetworkVirtualMachine
from ._models import WorkloadNetworkVMGroup
from ._paged_models import AddonPaged
from ._paged_models import CloudLinkPaged
from ._paged_models import ClusterPaged
from ._paged_models import DatastorePaged
from ._paged_models import ExpressRouteAuthorizationPaged
from ._paged_models import GlobalReachConnectionPaged
from ._paged_models import HcxEnterpriseSitePaged
from ._paged_models import OperationPaged
from ._paged_models import PrivateCloudPaged
from ._paged_models import ScriptCmdletPaged
from ._paged_models import ScriptExecutionPaged
from ._paged_models import ScriptPackagePaged
from ._paged_models import WorkloadNetworkDhcpPaged
from ._paged_models import WorkloadNetworkDnsServicePaged
from ._paged_models import WorkloadNetworkDnsZonePaged
from ._paged_models import WorkloadNetworkGatewayPaged
from ._paged_models import WorkloadNetworkPortMirroringPaged
from ._paged_models import WorkloadNetworkPublicIPPaged
from ._paged_models import WorkloadNetworkSegmentPaged
from ._paged_models import WorkloadNetworkVirtualMachinePaged
from ._paged_models import WorkloadNetworkVMGroupPaged
from ._avs_client_enums import (
TrialStatus,
QuotaEnabled,
ExpressRouteAuthorizationProvisioningState,
SslEnum,
PrivateCloudProvisioningState,
ClusterProvisioningState,
InternetEnum,
ClusterProvisioningState,
AddonProvisioningState,
DatastoreProvisioningState,
MountOptionEnum,
HcxEnterpriseSiteStatus,
GlobalReachConnectionProvisioningState,
GlobalReachConnectionStatus,
CloudLinkStatus,
SegmentStatusEnum,
WorkloadNetworkSegmentProvisioningState,
WorkloadNetworkDhcpProvisioningState,
PortMirroringDirectionEnum,
PortMirroringStatusEnum,
WorkloadNetworkPortMirroringProvisioningState,
VMGroupStatusEnum,
WorkloadNetworkVMGroupProvisioningState,
VMTypeEnum,
DnsServiceLogLevelEnum,
DnsServiceStatusEnum,
WorkloadNetworkDnsServiceProvisioningState,
WorkloadNetworkDnsZoneProvisioningState,
WorkloadNetworkPublicIPProvisioningState,
ScriptParameterTypes,
VisibilityParameterEnum,
OptionalParamEnum,
ScriptExecutionProvisioningState,
ScriptOutputStreamType,
)

__all__ = [
'Addon',
'AddonHcxProperties',
'AddonProperties',
'AddonSrmProperties',
'AddonVrProperties',
'AdminCredentials',
'Circuit',
'CloudLink',
'Cluster',
'ClusterUpdate',
'ClusterUpdateProperties',
'CommonClusterProperties',
'Datastore',
'DiskPoolVolume',
'Endpoints',
'ErrorAdditionalInfo',
'ErrorResponse',
'ExpressRouteAuthorization',
'GlobalReachConnection',
'HcxEnterpriseSite',
'IdentitySource',
'LogSpecification',
'ManagementCluster',
'MetricDimension',
'MetricSpecification',
'NetAppVolume',
'Operation',
'OperationDisplay',
'OperationProperties',
'PrivateCloud',
'PrivateCloudUpdate',
'ProxyResource',
'PSCredentialExecutionParameter',
'Quota',
'Resource',
'ScriptCmdlet',
'ScriptExecution',
'ScriptExecutionParameter',
'ScriptPackage',
'ScriptParameter',
'ScriptSecureStringExecutionParameter',
'ScriptStringExecutionParameter',
'ServiceSpecification',
'Sku',
'TrackedResource',
'Trial',
'WorkloadNetworkDhcp',
'WorkloadNetworkDhcpEntity',
'WorkloadNetworkDhcpRelay',
'WorkloadNetworkDhcpServer',
'WorkloadNetworkDnsService',
'WorkloadNetworkDnsZone',
'WorkloadNetworkGateway',
'WorkloadNetworkPortMirroring',
'WorkloadNetworkPublicIP',
'WorkloadNetworkSegment',
'WorkloadNetworkSegmentPortVif',
'WorkloadNetworkSegmentSubnet',
'WorkloadNetworkVirtualMachine',
'WorkloadNetworkVMGroup',
'OperationPaged',
'PrivateCloudPaged',
'ClusterPaged',
'DatastorePaged',
'HcxEnterpriseSitePaged',
'ExpressRouteAuthorizationPaged',
'GlobalReachConnectionPaged',
'WorkloadNetworkSegmentPaged',
'WorkloadNetworkDhcpPaged',
'WorkloadNetworkGatewayPaged',
'WorkloadNetworkPortMirroringPaged',
'WorkloadNetworkVMGroupPaged',
'WorkloadNetworkVirtualMachinePaged',
'WorkloadNetworkDnsServicePaged',
'WorkloadNetworkDnsZonePaged',
'WorkloadNetworkPublicIPPaged',
'CloudLinkPaged',
'AddonPaged',
'ScriptPackagePaged',
'ScriptCmdletPaged',
'ScriptExecutionPaged',
'TrialStatus',
'QuotaEnabled',
'ExpressRouteAuthorizationProvisioningState',
'SslEnum',
'PrivateCloudProvisioningState',
'ClusterProvisioningState',
'InternetEnum',
'ClusterProvisioningState',
'AddonProvisioningState',
'DatastoreProvisioningState',
'MountOptionEnum',
'HcxEnterpriseSiteStatus',
'GlobalReachConnectionProvisioningState',
'GlobalReachConnectionStatus',
'CloudLinkStatus',
'SegmentStatusEnum',
'WorkloadNetworkSegmentProvisioningState',
'WorkloadNetworkDhcpProvisioningState',
'PortMirroringDirectionEnum',
'PortMirroringStatusEnum',
'WorkloadNetworkPortMirroringProvisioningState',
'VMGroupStatusEnum',
'WorkloadNetworkVMGroupProvisioningState',
'VMTypeEnum',
'DnsServiceLogLevelEnum',
'DnsServiceStatusEnum',
'WorkloadNetworkDnsServiceProvisioningState',
'WorkloadNetworkDnsZoneProvisioningState',
'WorkloadNetworkPublicIPProvisioningState',
'ScriptParameterTypes',
'VisibilityParameterEnum',
'OptionalParamEnum',
'ScriptExecutionProvisioningState',
'ScriptOutputStreamType',
]
Loading

0 comments on commit a0e2f9c

Please sign in to comment.