Skip to content

Commit

Permalink
[AutoPR] deploymentmanager/resource-manager (#3411)
Browse files Browse the repository at this point in the history
* [AutoPR deploymentmanager/resource-manager] DeploymentManager: API Spec, examples - private preview (#3400)

* Generated from 9a7afa25b188eb0699bd2652c710c824b093b70d

Add SDK generation settings for all sdks

* Packaging update of azure-mgmt-deploymentmanager

* Generated from d87b67dab074c096ade09877b0963ff9d7c7f684

Add docs link

* Generated from 7da4e113aeade00194dff3380deb531e071358b5

Incorporated feedback + updated descriptions

* [AutoPR deploymentmanager/resource-manager] DeploymentManager: Fix property name and enhance descriptions (#3474)

* Generated from f6a2220ab078866ebaefef5c0ec8b8f12d3adc42

Enhance descriptions and fix property name

* Packaging update of azure-mgmt-deploymentmanager

* [AutoPR deploymentmanager/resource-manager] typo: Microsoft.DeploymentManager (#3934)

* Generated from ec1a0120ad99a3b4a8e992d2919f39090de68ceb

typo: Microsoft.DeploymentManager

- Individial -> Individual

* Packaging update of azure-mgmt-deploymentmanager

* Packaging update of azure-mgmt-deploymentmanager

* Update HISTORY.rst

* Update version.py

* Update sdk_packaging.toml

* Packaging update of azure-mgmt-deploymentmanager

* [AutoPR deploymentmanager/resource-manager] DeploymentManager: Override client name for python SDK (#4696)

* Generated from 27944089c215a1941a262c7b755d847c5fbf0b29

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into deoletim-adm-clientconfig

* Packaging update of azure-mgmt-deploymentmanager

* Packaging update of azure-mgmt-deploymentmanager

* Update HISTORY.rst

* Update version.py
  • Loading branch information
AutorestCI authored and lmazuel committed Apr 16, 2019
1 parent c839e53 commit ae9c648
Show file tree
Hide file tree
Showing 91 changed files with 5,828 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azure-mgmt-deploymentmanager/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.1.0 (2019-04-15)
++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions azure-mgmt-deploymentmanager/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 azure-mgmt-deploymentmanager/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 Deployment Manager 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.4, 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 `Deployment Manager
<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-deploymentmanager%2FREADME.png
1 change: 1 addition & 0 deletions azure-mgmt-deploymentmanager/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions azure-mgmt-deploymentmanager/azure/mgmt/__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,18 @@
# 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 .deployment_manager_client import DeploymentManagerClient
from .version import VERSION

__all__ = ['DeploymentManagerClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# 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 msrestazure import AzureConfiguration
from .version import VERSION
from .operations.service_topologies_operations import ServiceTopologiesOperations
from .operations.services_operations import ServicesOperations
from .operations.service_units_operations import ServiceUnitsOperations
from .operations.steps_operations import StepsOperations
from .operations.rollouts_operations import RolloutsOperations
from .operations.artifact_sources_operations import ArtifactSourcesOperations
from .operations.operations import Operations
from . import models


class DeploymentManagerClientConfiguration(AzureConfiguration):
"""Configuration for DeploymentManagerClient
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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, 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 not base_url:
base_url = 'https://management.azure.com'

super(DeploymentManagerClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
self.subscription_id = subscription_id


class DeploymentManagerClient(SDKClient):
"""REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information.
:ivar config: Configuration for client.
:vartype config: DeploymentManagerClientConfiguration
:ivar service_topologies: ServiceTopologies operations
:vartype service_topologies: azure.mgmt.deploymentmanager.operations.ServiceTopologiesOperations
:ivar services: Services operations
:vartype services: azure.mgmt.deploymentmanager.operations.ServicesOperations
:ivar service_units: ServiceUnits operations
:vartype service_units: azure.mgmt.deploymentmanager.operations.ServiceUnitsOperations
:ivar steps: Steps operations
:vartype steps: azure.mgmt.deploymentmanager.operations.StepsOperations
:ivar rollouts: Rollouts operations
:vartype rollouts: azure.mgmt.deploymentmanager.operations.RolloutsOperations
:ivar artifact_sources: ArtifactSources operations
:vartype artifact_sources: azure.mgmt.deploymentmanager.operations.ArtifactSourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.deploymentmanager.operations.Operations
: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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

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

self.config = DeploymentManagerClientConfiguration(credentials, subscription_id, base_url)
super(DeploymentManagerClient, 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 = '2018-09-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.service_topologies = ServiceTopologiesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.services = ServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.service_units = ServiceUnitsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.steps = StepsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.rollouts = RolloutsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.artifact_sources = ArtifactSourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# 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 .identity_py3 import Identity
from .pre_post_step_py3 import PrePostStep
from .step_py3 import Step
from .rollout_request_py3 import RolloutRequest
from .artifact_source_py3 import ArtifactSource
from .authentication_py3 import Authentication
from .artifact_source_properties_model_py3 import ArtifactSourcePropertiesModel
from .sas_authentication_py3 import SasAuthentication
from .cloud_error_body_py3 import CloudErrorBody
from .rollout_operation_info_py3 import RolloutOperationInfo
from .step_operation_info_py3 import StepOperationInfo
from .resource_operation_py3 import ResourceOperation
from .message_py3 import Message
from .rollout_step_py3 import RolloutStep
from .service_unit_py3 import ServiceUnit
from .service_py3 import Service
from .rollout_py3 import Rollout
from .rollout_properties_model_py3 import RolloutPropertiesModel
from .service_topology_resource_py3 import ServiceTopologyResource
from .service_topology_properties_py3 import ServiceTopologyProperties
from .service_resource_py3 import ServiceResource
from .service_properties_py3 import ServiceProperties
from .service_unit_resource_py3 import ServiceUnitResource
from .service_unit_artifacts_py3 import ServiceUnitArtifacts
from .service_unit_properties_py3 import ServiceUnitProperties
from .operation_detail_py3 import OperationDetail
from .operation_py3 import Operation
from .step_properties_py3 import StepProperties
from .step_resource_py3 import StepResource
from .wait_step_attributes_py3 import WaitStepAttributes
from .wait_step_properties_py3 import WaitStepProperties
from .proxy_resource_py3 import ProxyResource
from .azure_entity_resource_py3 import AzureEntityResource
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
except (SyntaxError, ImportError):
from .identity import Identity
from .pre_post_step import PrePostStep
from .step import Step
from .rollout_request import RolloutRequest
from .artifact_source import ArtifactSource
from .authentication import Authentication
from .artifact_source_properties_model import ArtifactSourcePropertiesModel
from .sas_authentication import SasAuthentication
from .cloud_error_body import CloudErrorBody
from .rollout_operation_info import RolloutOperationInfo
from .step_operation_info import StepOperationInfo
from .resource_operation import ResourceOperation
from .message import Message
from .rollout_step import RolloutStep
from .service_unit import ServiceUnit
from .service import Service
from .rollout import Rollout
from .rollout_properties_model import RolloutPropertiesModel
from .service_topology_resource import ServiceTopologyResource
from .service_topology_properties import ServiceTopologyProperties
from .service_resource import ServiceResource
from .service_properties import ServiceProperties
from .service_unit_resource import ServiceUnitResource
from .service_unit_artifacts import ServiceUnitArtifacts
from .service_unit_properties import ServiceUnitProperties
from .operation_detail import OperationDetail
from .operation import Operation
from .step_properties import StepProperties
from .step_resource import StepResource
from .wait_step_attributes import WaitStepAttributes
from .wait_step_properties import WaitStepProperties
from .proxy_resource import ProxyResource
from .azure_entity_resource import AzureEntityResource
from .resource import Resource
from .tracked_resource import TrackedResource
from .deployment_manager_client_enums import (
DeploymentMode,
)

__all__ = [
'Identity',
'PrePostStep',
'Step',
'RolloutRequest',
'ArtifactSource',
'Authentication',
'ArtifactSourcePropertiesModel',
'SasAuthentication',
'CloudErrorBody',
'RolloutOperationInfo',
'StepOperationInfo',
'ResourceOperation',
'Message',
'RolloutStep',
'ServiceUnit',
'Service',
'Rollout',
'RolloutPropertiesModel',
'ServiceTopologyResource',
'ServiceTopologyProperties',
'ServiceResource',
'ServiceProperties',
'ServiceUnitResource',
'ServiceUnitArtifacts',
'ServiceUnitProperties',
'OperationDetail',
'Operation',
'StepProperties',
'StepResource',
'WaitStepAttributes',
'WaitStepProperties',
'ProxyResource',
'AzureEntityResource',
'Resource',
'TrackedResource',
'DeploymentMode',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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 .tracked_resource import TrackedResource


class ArtifactSource(TrackedResource):
"""The resource that defines the source location where the artifacts are
located.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives
:type location: str
:param source_type: Required. The type of artifact source used.
:type source_type: str
:param artifact_root: The path from the location that the 'authentication'
property [say, a SAS URI to the blob container] refers to, to the location
of the artifacts. This can be used to differentiate different versions of
the artifacts. Or, different types of artifacts like binaries or
templates. The location referenced by the authentication property
concatenated with this optional artifactRoot path forms the artifact
source location where the artifacts are expected to be found.
:type artifact_root: str
:param authentication: Required. The authentication method to use to
access the artifact source.
:type authentication: ~azure.mgmt.deploymentmanager.models.Authentication
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'source_type': {'required': True},
'authentication': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'source_type': {'key': 'properties.sourceType', 'type': 'str'},
'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'},
'authentication': {'key': 'properties.authentication', 'type': 'Authentication'},
}

def __init__(self, **kwargs):
super(ArtifactSource, self).__init__(**kwargs)
self.source_type = kwargs.get('source_type', None)
self.artifact_root = kwargs.get('artifact_root', None)
self.authentication = kwargs.get('authentication', None)
Loading

0 comments on commit ae9c648

Please sign in to comment.