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 #7529

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
9 changes: 9 additions & 0 deletions sdk/compute/azure-mgmt-vmwarecloudsimple/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (2019-10-08)
++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions sdk/compute/azure-mgmt-vmwarecloudsimple/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

33 changes: 33 additions & 0 deletions sdk/compute/azure-mgmt-vmwarecloudsimple/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-vmwarecloudsimple%2FREADME.png
1 change: 1 addition & 0 deletions sdk/compute/azure-mgmt-vmwarecloudsimple/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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,53 @@
# 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 subscription_id: The subscription ID.
:type subscription_id: str
:param referer: referer url
:type referer: str
:param str base_url: Service URL
"""

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

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if referer is None:
raise ValueError("Parameter 'referer' 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.subscription_id = subscription_id
self.referer = referer
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# 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 Operations
from .operations import DedicatedCloudNodesOperations
from .operations import DedicatedCloudServicesOperations
from .operations import SkusAvailabilityOperations
from .operations import PrivateCloudsOperations
from .operations import ResourcePoolsOperations
from .operations import VirtualMachineTemplatesOperations
from .operations import VirtualNetworksOperations
from .operations import UsagesOperations
from .operations import VirtualMachinesOperations
from . import models


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

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

:ivar operations: Operations operations
:vartype operations: azure.mgmt.vmwarecloudsimple.operations.Operations
:ivar dedicated_cloud_nodes: DedicatedCloudNodes operations
:vartype dedicated_cloud_nodes: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudNodesOperations
:ivar dedicated_cloud_services: DedicatedCloudServices operations
:vartype dedicated_cloud_services: azure.mgmt.vmwarecloudsimple.operations.DedicatedCloudServicesOperations
:ivar skus_availability: SkusAvailability operations
:vartype skus_availability: azure.mgmt.vmwarecloudsimple.operations.SkusAvailabilityOperations
:ivar private_clouds: PrivateClouds operations
:vartype private_clouds: azure.mgmt.vmwarecloudsimple.operations.PrivateCloudsOperations
:ivar resource_pools: ResourcePools operations
:vartype resource_pools: azure.mgmt.vmwarecloudsimple.operations.ResourcePoolsOperations
:ivar virtual_machine_templates: VirtualMachineTemplates operations
:vartype virtual_machine_templates: azure.mgmt.vmwarecloudsimple.operations.VirtualMachineTemplatesOperations
:ivar virtual_networks: VirtualNetworks operations
:vartype virtual_networks: azure.mgmt.vmwarecloudsimple.operations.VirtualNetworksOperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.vmwarecloudsimple.operations.UsagesOperations
:ivar virtual_machines: VirtualMachines operations
:vartype virtual_machines: azure.mgmt.vmwarecloudsimple.operations.VirtualMachinesOperations

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

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

self.config = VMwareCloudSimpleClientConfiguration(credentials, subscription_id, referer, 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.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_cloud_nodes = DedicatedCloudNodesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dedicated_cloud_services = DedicatedCloudServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.skus_availability = SkusAvailabilityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_clouds = PrivateCloudsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.resource_pools = ResourcePoolsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_templates = VirtualMachineTemplatesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_networks = VirtualNetworksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machines = VirtualMachinesOperations(
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