Skip to content

Commit ae9c648

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] deploymentmanager/resource-manager (Azure#3411)
* [AutoPR deploymentmanager/resource-manager] DeploymentManager: API Spec, examples - private preview (Azure#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 (Azure#3474) * Generated from f6a2220ab078866ebaefef5c0ec8b8f12d3adc42 Enhance descriptions and fix property name * Packaging update of azure-mgmt-deploymentmanager * [AutoPR deploymentmanager/resource-manager] typo: Microsoft.DeploymentManager (Azure#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 (Azure#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
1 parent c839e53 commit ae9c648

File tree

91 files changed

+5828
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+5828
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0 (2019-04-15)
7+
++++++++++++++++++
8+
9+
* Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.rst
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure Deployment Manager Client Library.
5+
6+
Azure Resource Manager (ARM) is the next generation of management APIs that
7+
replace the old Azure Service Management (ASM).
8+
9+
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
10+
11+
For the older Azure Service Management (ASM) libraries, see
12+
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
13+
14+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
15+
16+
17+
Usage
18+
=====
19+
20+
For code examples, see `Deployment Manager
21+
<https://docs.microsoft.com/python/api/overview/azure/>`__
22+
on docs.microsoft.com.
23+
24+
25+
Provide Feedback
26+
================
27+
28+
If you encounter any bugs or have suggestions, please file an issue in the
29+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
30+
section of the project.
31+
32+
33+
.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-deploymentmanager%2FREADME.png
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .deployment_manager_client import DeploymentManagerClient
13+
from .version import VERSION
14+
15+
__all__ = ['DeploymentManagerClient']
16+
17+
__version__ = VERSION
18+
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
from msrestazure import AzureConfiguration
15+
from .version import VERSION
16+
from .operations.service_topologies_operations import ServiceTopologiesOperations
17+
from .operations.services_operations import ServicesOperations
18+
from .operations.service_units_operations import ServiceUnitsOperations
19+
from .operations.steps_operations import StepsOperations
20+
from .operations.rollouts_operations import RolloutsOperations
21+
from .operations.artifact_sources_operations import ArtifactSourcesOperations
22+
from .operations.operations import Operations
23+
from . import models
24+
25+
26+
class DeploymentManagerClientConfiguration(AzureConfiguration):
27+
"""Configuration for DeploymentManagerClient
28+
Note that all parameters used to create this instance are saved as instance
29+
attributes.
30+
31+
:param credentials: Credentials needed for the client to connect to Azure.
32+
:type credentials: :mod:`A msrestazure Credentials
33+
object<msrestazure.azure_active_directory>`
34+
:param subscription_id: Subscription credentials which uniquely identify
35+
Microsoft Azure subscription. The subscription ID forms part of the URI
36+
for every service call.
37+
:type subscription_id: str
38+
:param str base_url: Service URL
39+
"""
40+
41+
def __init__(
42+
self, credentials, subscription_id, base_url=None):
43+
44+
if credentials is None:
45+
raise ValueError("Parameter 'credentials' must not be None.")
46+
if subscription_id is None:
47+
raise ValueError("Parameter 'subscription_id' must not be None.")
48+
if not base_url:
49+
base_url = 'https://management.azure.com'
50+
51+
super(DeploymentManagerClientConfiguration, self).__init__(base_url)
52+
53+
self.add_user_agent('azure-mgmt-deploymentmanager/{}'.format(VERSION))
54+
self.add_user_agent('Azure-SDK-For-Python')
55+
56+
self.credentials = credentials
57+
self.subscription_id = subscription_id
58+
59+
60+
class DeploymentManagerClient(SDKClient):
61+
"""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.
62+
63+
:ivar config: Configuration for client.
64+
:vartype config: DeploymentManagerClientConfiguration
65+
66+
:ivar service_topologies: ServiceTopologies operations
67+
:vartype service_topologies: azure.mgmt.deploymentmanager.operations.ServiceTopologiesOperations
68+
:ivar services: Services operations
69+
:vartype services: azure.mgmt.deploymentmanager.operations.ServicesOperations
70+
:ivar service_units: ServiceUnits operations
71+
:vartype service_units: azure.mgmt.deploymentmanager.operations.ServiceUnitsOperations
72+
:ivar steps: Steps operations
73+
:vartype steps: azure.mgmt.deploymentmanager.operations.StepsOperations
74+
:ivar rollouts: Rollouts operations
75+
:vartype rollouts: azure.mgmt.deploymentmanager.operations.RolloutsOperations
76+
:ivar artifact_sources: ArtifactSources operations
77+
:vartype artifact_sources: azure.mgmt.deploymentmanager.operations.ArtifactSourcesOperations
78+
:ivar operations: Operations operations
79+
:vartype operations: azure.mgmt.deploymentmanager.operations.Operations
80+
81+
:param credentials: Credentials needed for the client to connect to Azure.
82+
:type credentials: :mod:`A msrestazure Credentials
83+
object<msrestazure.azure_active_directory>`
84+
:param subscription_id: Subscription credentials which uniquely identify
85+
Microsoft Azure subscription. The subscription ID forms part of the URI
86+
for every service call.
87+
:type subscription_id: str
88+
:param str base_url: Service URL
89+
"""
90+
91+
def __init__(
92+
self, credentials, subscription_id, base_url=None):
93+
94+
self.config = DeploymentManagerClientConfiguration(credentials, subscription_id, base_url)
95+
super(DeploymentManagerClient, self).__init__(self.config.credentials, self.config)
96+
97+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
98+
self.api_version = '2018-09-01-preview'
99+
self._serialize = Serializer(client_models)
100+
self._deserialize = Deserializer(client_models)
101+
102+
self.service_topologies = ServiceTopologiesOperations(
103+
self._client, self.config, self._serialize, self._deserialize)
104+
self.services = ServicesOperations(
105+
self._client, self.config, self._serialize, self._deserialize)
106+
self.service_units = ServiceUnitsOperations(
107+
self._client, self.config, self._serialize, self._deserialize)
108+
self.steps = StepsOperations(
109+
self._client, self.config, self._serialize, self._deserialize)
110+
self.rollouts = RolloutsOperations(
111+
self._client, self.config, self._serialize, self._deserialize)
112+
self.artifact_sources = ArtifactSourcesOperations(
113+
self._client, self.config, self._serialize, self._deserialize)
114+
self.operations = Operations(
115+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from .identity_py3 import Identity
14+
from .pre_post_step_py3 import PrePostStep
15+
from .step_py3 import Step
16+
from .rollout_request_py3 import RolloutRequest
17+
from .artifact_source_py3 import ArtifactSource
18+
from .authentication_py3 import Authentication
19+
from .artifact_source_properties_model_py3 import ArtifactSourcePropertiesModel
20+
from .sas_authentication_py3 import SasAuthentication
21+
from .cloud_error_body_py3 import CloudErrorBody
22+
from .rollout_operation_info_py3 import RolloutOperationInfo
23+
from .step_operation_info_py3 import StepOperationInfo
24+
from .resource_operation_py3 import ResourceOperation
25+
from .message_py3 import Message
26+
from .rollout_step_py3 import RolloutStep
27+
from .service_unit_py3 import ServiceUnit
28+
from .service_py3 import Service
29+
from .rollout_py3 import Rollout
30+
from .rollout_properties_model_py3 import RolloutPropertiesModel
31+
from .service_topology_resource_py3 import ServiceTopologyResource
32+
from .service_topology_properties_py3 import ServiceTopologyProperties
33+
from .service_resource_py3 import ServiceResource
34+
from .service_properties_py3 import ServiceProperties
35+
from .service_unit_resource_py3 import ServiceUnitResource
36+
from .service_unit_artifacts_py3 import ServiceUnitArtifacts
37+
from .service_unit_properties_py3 import ServiceUnitProperties
38+
from .operation_detail_py3 import OperationDetail
39+
from .operation_py3 import Operation
40+
from .step_properties_py3 import StepProperties
41+
from .step_resource_py3 import StepResource
42+
from .wait_step_attributes_py3 import WaitStepAttributes
43+
from .wait_step_properties_py3 import WaitStepProperties
44+
from .proxy_resource_py3 import ProxyResource
45+
from .azure_entity_resource_py3 import AzureEntityResource
46+
from .resource_py3 import Resource
47+
from .tracked_resource_py3 import TrackedResource
48+
except (SyntaxError, ImportError):
49+
from .identity import Identity
50+
from .pre_post_step import PrePostStep
51+
from .step import Step
52+
from .rollout_request import RolloutRequest
53+
from .artifact_source import ArtifactSource
54+
from .authentication import Authentication
55+
from .artifact_source_properties_model import ArtifactSourcePropertiesModel
56+
from .sas_authentication import SasAuthentication
57+
from .cloud_error_body import CloudErrorBody
58+
from .rollout_operation_info import RolloutOperationInfo
59+
from .step_operation_info import StepOperationInfo
60+
from .resource_operation import ResourceOperation
61+
from .message import Message
62+
from .rollout_step import RolloutStep
63+
from .service_unit import ServiceUnit
64+
from .service import Service
65+
from .rollout import Rollout
66+
from .rollout_properties_model import RolloutPropertiesModel
67+
from .service_topology_resource import ServiceTopologyResource
68+
from .service_topology_properties import ServiceTopologyProperties
69+
from .service_resource import ServiceResource
70+
from .service_properties import ServiceProperties
71+
from .service_unit_resource import ServiceUnitResource
72+
from .service_unit_artifacts import ServiceUnitArtifacts
73+
from .service_unit_properties import ServiceUnitProperties
74+
from .operation_detail import OperationDetail
75+
from .operation import Operation
76+
from .step_properties import StepProperties
77+
from .step_resource import StepResource
78+
from .wait_step_attributes import WaitStepAttributes
79+
from .wait_step_properties import WaitStepProperties
80+
from .proxy_resource import ProxyResource
81+
from .azure_entity_resource import AzureEntityResource
82+
from .resource import Resource
83+
from .tracked_resource import TrackedResource
84+
from .deployment_manager_client_enums import (
85+
DeploymentMode,
86+
)
87+
88+
__all__ = [
89+
'Identity',
90+
'PrePostStep',
91+
'Step',
92+
'RolloutRequest',
93+
'ArtifactSource',
94+
'Authentication',
95+
'ArtifactSourcePropertiesModel',
96+
'SasAuthentication',
97+
'CloudErrorBody',
98+
'RolloutOperationInfo',
99+
'StepOperationInfo',
100+
'ResourceOperation',
101+
'Message',
102+
'RolloutStep',
103+
'ServiceUnit',
104+
'Service',
105+
'Rollout',
106+
'RolloutPropertiesModel',
107+
'ServiceTopologyResource',
108+
'ServiceTopologyProperties',
109+
'ServiceResource',
110+
'ServiceProperties',
111+
'ServiceUnitResource',
112+
'ServiceUnitArtifacts',
113+
'ServiceUnitProperties',
114+
'OperationDetail',
115+
'Operation',
116+
'StepProperties',
117+
'StepResource',
118+
'WaitStepAttributes',
119+
'WaitStepProperties',
120+
'ProxyResource',
121+
'AzureEntityResource',
122+
'Resource',
123+
'TrackedResource',
124+
'DeploymentMode',
125+
]
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .tracked_resource import TrackedResource
13+
14+
15+
class ArtifactSource(TrackedResource):
16+
"""The resource that defines the source location where the artifacts are
17+
located.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
All required parameters must be populated in order to send to Azure.
23+
24+
:ivar id: Fully qualified resource Id for the resource. Ex -
25+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
26+
:vartype id: str
27+
:ivar name: The name of the resource
28+
:vartype name: str
29+
:ivar type: The type of the resource. Ex-
30+
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
31+
:vartype type: str
32+
:param tags: Resource tags.
33+
:type tags: dict[str, str]
34+
:param location: Required. The geo-location where the resource lives
35+
:type location: str
36+
:param source_type: Required. The type of artifact source used.
37+
:type source_type: str
38+
:param artifact_root: The path from the location that the 'authentication'
39+
property [say, a SAS URI to the blob container] refers to, to the location
40+
of the artifacts. This can be used to differentiate different versions of
41+
the artifacts. Or, different types of artifacts like binaries or
42+
templates. The location referenced by the authentication property
43+
concatenated with this optional artifactRoot path forms the artifact
44+
source location where the artifacts are expected to be found.
45+
:type artifact_root: str
46+
:param authentication: Required. The authentication method to use to
47+
access the artifact source.
48+
:type authentication: ~azure.mgmt.deploymentmanager.models.Authentication
49+
"""
50+
51+
_validation = {
52+
'id': {'readonly': True},
53+
'name': {'readonly': True},
54+
'type': {'readonly': True},
55+
'location': {'required': True},
56+
'source_type': {'required': True},
57+
'authentication': {'required': True},
58+
}
59+
60+
_attribute_map = {
61+
'id': {'key': 'id', 'type': 'str'},
62+
'name': {'key': 'name', 'type': 'str'},
63+
'type': {'key': 'type', 'type': 'str'},
64+
'tags': {'key': 'tags', 'type': '{str}'},
65+
'location': {'key': 'location', 'type': 'str'},
66+
'source_type': {'key': 'properties.sourceType', 'type': 'str'},
67+
'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'},
68+
'authentication': {'key': 'properties.authentication', 'type': 'Authentication'},
69+
}
70+
71+
def __init__(self, **kwargs):
72+
super(ArtifactSource, self).__init__(**kwargs)
73+
self.source_type = kwargs.get('source_type', None)
74+
self.artifact_root = kwargs.get('artifact_root', None)
75+
self.authentication = kwargs.get('authentication', None)

0 commit comments

Comments
 (0)