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

[AutoPR vmwarecloudsimple/resource-manager] [Hub Generated] Review request for Microsoft.VMwareCloudSimple to add version stable/2019-04-01 #6002

Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import VMwareCloudSimpleClientConfiguration
from ._vmware_cloud_simple_client import VMwareCloudSimpleClient
__all__ = ['VMwareCloudSimpleClient', 'VMwareCloudSimpleClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class VMwareCloudSimpleClientConfiguration(AzureConfiguration):
"""Configuration for VMwareCloudSimpleClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param referer: referer url
:type referer: str
:param region_id: The region Id (westus, eastus)
:type region_id: str
:param subscription_id: The subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, referer, region_id, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if referer is None:
raise ValueError("Parameter 'referer' must not be None.")
if region_id is None:
raise ValueError("Parameter 'region_id' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(VMwareCloudSimpleClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-vmwarecloudsimple/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.referer = referer
self.region_id = region_id
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import VMwareCloudSimpleClientConfiguration
from .operations import VMwareCloudSimpleClientOperationsMixin
from .operations import AvailableOperations
from .operations import DedicatedCloudNodeOperations
from .operations import DedicatedCloudServiceOperations
from .operations import SkusAvailabilityWithinRegionOperations
from .operations import PrivateCloudByRegionOperations
from .operations import ResourcePoolsByPCOperations
from .operations import ResourcePoolByPCOperations
from .operations import VirtualMachineTemplatesByPCOperations
from .operations import VirtualMachineTemplateByPCOperations
from .operations import VirtualNetworksByPCOperations
from .operations import VirtualNetworkByPCOperations
from .operations import UsagesWithinRegionOperations
from .operations import VirtualMachineOperations
from . import models


class VMwareCloudSimpleClient(VMwareCloudSimpleClientOperationsMixin, SDKClient):
"""Description of the new service

:ivar config: Configuration for client.
:vartype config: VMwareCloudSimpleClientConfiguration

:ivar available_operations: AvailableOperations operations
:vartype available_operations: azure.mgmt.vmwarecloudsimple.operations.AvailableOperations
:ivar dedicated_cloud_node: DedicatedCloudNode operations
:vartype dedicated_cloud_node: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudNodeOperations
:ivar dedicated_cloud_service: DedicatedCloudService operations
:vartype dedicated_cloud_service: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudServiceOperations
:ivar skus_availability_within_region: SkusAvailabilityWithinRegion operations
:vartype skus_availability_within_region: azure.mgmt.vmwarecloudsimple.operations.SkusAvailabilityWithinRegionOperations
:ivar private_cloud_by_region: PrivateCloudByRegion operations
:vartype private_cloud_by_region: azure.mgmt.vmwarecloudsimple.operations.PrivateCloudByRegionOperations
:ivar resource_pools_by_pc: ResourcePoolsByPC operations
:vartype resource_pools_by_pc: azure.mgmt.vmwarecloudsimple.operations.ResourcePoolsByPCOperations
:ivar resource_pool_by_pc: ResourcePoolByPC operations
:vartype resource_pool_by_pc: azure.mgmt.vmwarecloudsimple.operations.ResourcePoolByPCOperations
:ivar virtual_machine_templates_by_pc: VirtualMachineTemplatesByPC operations
:vartype virtual_machine_templates_by_pc: azure.mgmt.vmwarecloudsimple.operations.VirtualMachineTemplatesByPCOperations
:ivar virtual_machine_template_by_pc: VirtualMachineTemplateByPC operations
:vartype virtual_machine_template_by_pc: azure.mgmt.vmwarecloudsimple.operations.VirtualMachineTemplateByPCOperations
:ivar virtual_networks_by_pc: VirtualNetworksByPC operations
:vartype virtual_networks_by_pc: azure.mgmt.vmwarecloudsimple.operations.VirtualNetworksByPCOperations
:ivar virtual_network_by_pc: VirtualNetworkByPC operations
:vartype virtual_network_by_pc: azure.mgmt.vmwarecloudsimple.operations.VirtualNetworkByPCOperations
:ivar usages_within_region: UsagesWithinRegion operations
:vartype usages_within_region: azure.mgmt.vmwarecloudsimple.operations.UsagesWithinRegionOperations
:ivar virtual_machine: VirtualMachine operations
:vartype virtual_machine: azure.mgmt.vmwarecloudsimple.operations.VirtualMachineOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param referer: referer url
:type referer: str
:param region_id: The region Id (westus, eastus)
:type region_id: str
:param subscription_id: The subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, referer, region_id, subscription_id, base_url=None):

self.config = VMwareCloudSimpleClientConfiguration(credentials, referer, region_id, subscription_id, base_url)
super(VMwareCloudSimpleClient, 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 = '2019-04-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.available_operations = AvailableOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_cloud_node = DedicatedCloudNodeOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_cloud_service = DedicatedCloudServiceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.skus_availability_within_region = SkusAvailabilityWithinRegionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_cloud_by_region = PrivateCloudByRegionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.resource_pools_by_pc = ResourcePoolsByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.resource_pool_by_pc = ResourcePoolByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_templates_by_pc = VirtualMachineTemplatesByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_template_by_pc = VirtualMachineTemplateByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_networks_by_pc = VirtualNetworksByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_network_by_pc = VirtualNetworkByPCOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages_within_region = UsagesWithinRegionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine = VirtualMachineOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

try:
from ._models_py3 import AvailableOperation
from ._models_py3 import AvailableOperationDisplay
from ._models_py3 import AvailableOperationDisplayPropertyServiceSpecificationMetricsItem
from ._models_py3 import AvailableOperationDisplayPropertyServiceSpecificationMetricsList
from ._models_py3 import CSRPError, CSRPErrorException
from ._models_py3 import CSRPErrorBody
from ._models_py3 import DedicatedCloudNode
from ._models_py3 import DedicatedCloudService
from ._models_py3 import OperationError
from ._models_py3 import OperationResource
from ._models_py3 import PatchPayload
from ._models_py3 import PrivateCloud
from ._models_py3 import ResourcePool
from ._models_py3 import Sku
from ._models_py3 import SkuAvailability
from ._models_py3 import Usage
from ._models_py3 import UsageName
from ._models_py3 import VirtualDisk
from ._models_py3 import VirtualDiskController
from ._models_py3 import VirtualMachine
from ._models_py3 import VirtualMachineStopMode
from ._models_py3 import VirtualMachineTemplate
from ._models_py3 import VirtualNetwork
from ._models_py3 import VirtualNic
except (SyntaxError, ImportError):
from ._models import AvailableOperation
from ._models import AvailableOperationDisplay
from ._models import AvailableOperationDisplayPropertyServiceSpecificationMetricsItem
from ._models import AvailableOperationDisplayPropertyServiceSpecificationMetricsList
from ._models import CSRPError, CSRPErrorException
from ._models import CSRPErrorBody
from ._models import DedicatedCloudNode
from ._models import DedicatedCloudService
from ._models import OperationError
from ._models import OperationResource
from ._models import PatchPayload
from ._models import PrivateCloud
from ._models import ResourcePool
from ._models import Sku
from ._models import SkuAvailability
from ._models import Usage
from ._models import UsageName
from ._models import VirtualDisk
from ._models import VirtualDiskController
from ._models import VirtualMachine
from ._models import VirtualMachineStopMode
from ._models import VirtualMachineTemplate
from ._models import VirtualNetwork
from ._models import VirtualNic
from ._paged_models import AvailableOperationPaged
from ._paged_models import DedicatedCloudNodePaged
from ._paged_models import DedicatedCloudServicePaged
from ._paged_models import PrivateCloudPaged
from ._paged_models import ResourcePoolPaged
from ._paged_models import SkuAvailabilityPaged
from ._paged_models import UsagePaged
from ._paged_models import VirtualMachinePaged
from ._paged_models import VirtualMachineTemplatePaged
from ._paged_models import VirtualNetworkPaged
from ._vmware_cloud_simple_client_enums import (
OperationOrigin,
AggregationType,
NodeStatus,
OnboardingStatus,
DiskIndependenceMode,
NICType,
PrivateCloudResourceType,
UsageCount,
GuestOSType,
VirtualMachineStatus,
StopMode,
)

__all__ = [
'AvailableOperation',
'AvailableOperationDisplay',
'AvailableOperationDisplayPropertyServiceSpecificationMetricsItem',
'AvailableOperationDisplayPropertyServiceSpecificationMetricsList',
'CSRPError', 'CSRPErrorException',
'CSRPErrorBody',
'DedicatedCloudNode',
'DedicatedCloudService',
'OperationError',
'OperationResource',
'PatchPayload',
'PrivateCloud',
'ResourcePool',
'Sku',
'SkuAvailability',
'Usage',
'UsageName',
'VirtualDisk',
'VirtualDiskController',
'VirtualMachine',
'VirtualMachineStopMode',
'VirtualMachineTemplate',
'VirtualNetwork',
'VirtualNic',
'AvailableOperationPaged',
'DedicatedCloudNodePaged',
'DedicatedCloudServicePaged',
'SkuAvailabilityPaged',
'PrivateCloudPaged',
'ResourcePoolPaged',
'VirtualMachineTemplatePaged',
'VirtualNetworkPaged',
'UsagePaged',
'VirtualMachinePaged',
'OperationOrigin',
'AggregationType',
'NodeStatus',
'OnboardingStatus',
'DiskIndependenceMode',
'NICType',
'PrivateCloudResourceType',
'UsageCount',
'GuestOSType',
'VirtualMachineStatus',
'StopMode',
]
Loading