Skip to content

Commit

Permalink
[AutoPR resources/resource-manager] Add on error deployment ARM (#2084)
Browse files Browse the repository at this point in the history
* Generated from fb5bfbc0054cc881ceccb498444bf2201fa2b8a4

Update readme.md file

* Generated from 14856524df1f832625ce8f5626a11bd866896301

Add provisioning state for the on error deployment
  • Loading branch information
AutorestCI authored and lmazuel committed Apr 20, 2018
1 parent 241e7c7 commit da9b2df
Show file tree
Hide file tree
Showing 60 changed files with 5,723 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2016-02-01: :mod:`v2016_02_01.models<azure.mgmt.resource.resources.v2016_02_01.models>`
* 2016-09-01: :mod:`v2016_09_01.models<azure.mgmt.resource.resources.v2016_09_01.models>`
* 2017-05-10: :mod:`v2017_05_10.models<azure.mgmt.resource.resources.v2017_05_10.models>`
* 2018-02-01: :mod:`v2018_02_01.models<azure.mgmt.resource.resources.v2018_02_01.models>`
"""
if api_version == '2016-02-01':
from .v2016_02_01 import models
Expand All @@ -112,6 +113,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2017-05-10':
from .v2017_05_10 import models
return models
elif api_version == '2018-02-01':
from .v2018_02_01 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
Expand All @@ -121,6 +125,7 @@ def deployment_operations(self):
* 2016-02-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2016_02_01.operations.DeploymentOperations>`
* 2016-09-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2016_09_01.operations.DeploymentOperations>`
* 2017-05-10: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2017_05_10.operations.DeploymentOperations>`
* 2018-02-01: :class:`DeploymentOperations<azure.mgmt.resource.resources.v2018_02_01.operations.DeploymentOperations>`
"""
api_version = self._get_api_version('deployment_operations')
if api_version == '2016-02-01':
Expand All @@ -129,6 +134,8 @@ def deployment_operations(self):
from .v2016_09_01.operations import DeploymentOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import DeploymentOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import DeploymentOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -140,6 +147,7 @@ def deployments(self):
* 2016-02-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.DeploymentsOperations>`
* 2016-09-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.DeploymentsOperations>`
* 2017-05-10: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2017_05_10.operations.DeploymentsOperations>`
* 2018-02-01: :class:`DeploymentsOperations<azure.mgmt.resource.resources.v2018_02_01.operations.DeploymentsOperations>`
"""
api_version = self._get_api_version('deployments')
if api_version == '2016-02-01':
Expand All @@ -148,6 +156,8 @@ def deployments(self):
from .v2016_09_01.operations import DeploymentsOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import DeploymentsOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import DeploymentsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -159,6 +169,7 @@ def providers(self):
* 2016-02-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ProvidersOperations>`
* 2016-09-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ProvidersOperations>`
* 2017-05-10: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2017_05_10.operations.ProvidersOperations>`
* 2018-02-01: :class:`ProvidersOperations<azure.mgmt.resource.resources.v2018_02_01.operations.ProvidersOperations>`
"""
api_version = self._get_api_version('providers')
if api_version == '2016-02-01':
Expand All @@ -167,6 +178,8 @@ def providers(self):
from .v2016_09_01.operations import ProvidersOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import ProvidersOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import ProvidersOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -178,6 +191,7 @@ def resource_groups(self):
* 2016-02-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ResourceGroupsOperations>`
* 2016-09-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ResourceGroupsOperations>`
* 2017-05-10: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2017_05_10.operations.ResourceGroupsOperations>`
* 2018-02-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2018_02_01.operations.ResourceGroupsOperations>`
"""
api_version = self._get_api_version('resource_groups')
if api_version == '2016-02-01':
Expand All @@ -186,6 +200,8 @@ def resource_groups(self):
from .v2016_09_01.operations import ResourceGroupsOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import ResourceGroupsOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import ResourceGroupsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -197,6 +213,7 @@ def resources(self):
* 2016-02-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ResourcesOperations>`
* 2016-09-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ResourcesOperations>`
* 2017-05-10: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2017_05_10.operations.ResourcesOperations>`
* 2018-02-01: :class:`ResourcesOperations<azure.mgmt.resource.resources.v2018_02_01.operations.ResourcesOperations>`
"""
api_version = self._get_api_version('resources')
if api_version == '2016-02-01':
Expand All @@ -205,6 +222,8 @@ def resources(self):
from .v2016_09_01.operations import ResourcesOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import ResourcesOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import ResourcesOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -216,6 +235,7 @@ def tags(self):
* 2016-02-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.TagsOperations>`
* 2016-09-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.TagsOperations>`
* 2017-05-10: :class:`TagsOperations<azure.mgmt.resource.resources.v2017_05_10.operations.TagsOperations>`
* 2018-02-01: :class:`TagsOperations<azure.mgmt.resource.resources.v2018_02_01.operations.TagsOperations>`
"""
api_version = self._get_api_version('tags')
if api_version == '2016-02-01':
Expand All @@ -224,6 +244,8 @@ def tags(self):
from .v2016_09_01.operations import TagsOperations as OperationClass
elif api_version == '2017-05-10':
from .v2017_05_10.operations import TagsOperations as OperationClass
elif api_version == '2018-02-01':
from .v2018_02_01.operations import TagsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
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 .resource_management_client import ResourceManagementClient
from .version import VERSION

__all__ = ['ResourceManagementClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# 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_extended_filter import DeploymentExtendedFilter
from .generic_resource_filter import GenericResourceFilter
from .resource_group_filter import ResourceGroupFilter
from .template_link import TemplateLink
from .parameters_link import ParametersLink
from .debug_setting import DebugSetting
from .on_error_deployment import OnErrorDeployment
from .deployment_properties import DeploymentProperties
from .deployment import Deployment
from .deployment_export_result import DeploymentExportResult
from .resource_management_error_with_details import ResourceManagementErrorWithDetails
from .alias_path_type import AliasPathType
from .alias_type import AliasType
from .provider_resource_type import ProviderResourceType
from .provider import Provider
from .basic_dependency import BasicDependency
from .dependency import Dependency
from .on_error_deployment_extended import OnErrorDeploymentExtended
from .deployment_properties_extended import DeploymentPropertiesExtended
from .deployment_validate_result import DeploymentValidateResult
from .deployment_extended import DeploymentExtended
from .plan import Plan
from .sku import Sku
from .identity import Identity
from .generic_resource import GenericResource
from .resource_group_properties import ResourceGroupProperties
from .resource_group import ResourceGroup
from .resource_group_patchable import ResourceGroupPatchable
from .resources_move_info import ResourcesMoveInfo
from .export_template_request import ExportTemplateRequest
from .tag_count import TagCount
from .tag_value import TagValue
from .tag_details import TagDetails
from .target_resource import TargetResource
from .http_message import HttpMessage
from .deployment_operation_properties import DeploymentOperationProperties
from .deployment_operation import DeploymentOperation
from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties
from .resource import Resource
from .sub_resource import SubResource
from .resource_group_export_result import ResourceGroupExportResult
from .deployment_extended_paged import DeploymentExtendedPaged
from .provider_paged import ProviderPaged
from .generic_resource_paged import GenericResourcePaged
from .resource_group_paged import ResourceGroupPaged
from .tag_details_paged import TagDetailsPaged
from .deployment_operation_paged import DeploymentOperationPaged
from .resource_management_client_enums import (
DeploymentMode,
OnErrorDeploymentType,
ResourceIdentityType,
)

__all__ = [
'DeploymentExtendedFilter',
'GenericResourceFilter',
'ResourceGroupFilter',
'TemplateLink',
'ParametersLink',
'DebugSetting',
'OnErrorDeployment',
'DeploymentProperties',
'Deployment',
'DeploymentExportResult',
'ResourceManagementErrorWithDetails',
'AliasPathType',
'AliasType',
'ProviderResourceType',
'Provider',
'BasicDependency',
'Dependency',
'OnErrorDeploymentExtended',
'DeploymentPropertiesExtended',
'DeploymentValidateResult',
'DeploymentExtended',
'Plan',
'Sku',
'Identity',
'GenericResource',
'ResourceGroupProperties',
'ResourceGroup',
'ResourceGroupPatchable',
'ResourcesMoveInfo',
'ExportTemplateRequest',
'TagCount',
'TagValue',
'TagDetails',
'TargetResource',
'HttpMessage',
'DeploymentOperationProperties',
'DeploymentOperation',
'ResourceProviderOperationDisplayProperties',
'Resource',
'SubResource',
'ResourceGroupExportResult',
'DeploymentExtendedPaged',
'ProviderPaged',
'GenericResourcePaged',
'ResourceGroupPaged',
'TagDetailsPaged',
'DeploymentOperationPaged',
'DeploymentMode',
'OnErrorDeploymentType',
'ResourceIdentityType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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.serialization import Model


class AliasPathType(Model):
"""The type of the paths for alias. .
:param path: The path of an alias.
:type path: str
:param api_versions: The API versions.
:type api_versions: list[str]
"""

_attribute_map = {
'path': {'key': 'path', 'type': 'str'},
'api_versions': {'key': 'apiVersions', 'type': '[str]'},
}

def __init__(self, path=None, api_versions=None):
super(AliasPathType, self).__init__()
self.path = path
self.api_versions = api_versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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.serialization import Model


class AliasType(Model):
"""The alias type. .
:param name: The alias name.
:type name: str
:param paths: The paths for an alias.
:type paths:
list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasPathType]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'paths': {'key': 'paths', 'type': '[AliasPathType]'},
}

def __init__(self, name=None, paths=None):
super(AliasType, self).__init__()
self.name = name
self.paths = paths
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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.serialization import Model


class BasicDependency(Model):
"""Deployment dependency information.
:param id: The ID of the dependency.
:type id: str
:param resource_type: The dependency resource type.
:type resource_type: str
:param resource_name: The dependency resource name.
:type resource_name: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_name': {'key': 'resourceName', 'type': 'str'},
}

def __init__(self, id=None, resource_type=None, resource_name=None):
super(BasicDependency, self).__init__()
self.id = id
self.resource_type = resource_type
self.resource_name = resource_name
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.serialization import Model


class DebugSetting(Model):
"""DebugSetting.
:param detail_level: Specifies the type of information to log for
debugging. The permitted values are none, requestContent, responseContent,
or both requestContent and responseContent separated by a comma. The
default is none. When setting this value, carefully consider the type of
information you are passing in during deployment. By logging information
about the request or response, you could potentially expose sensitive data
that is retrieved through the deployment operations.
:type detail_level: str
"""

_attribute_map = {
'detail_level': {'key': 'detailLevel', 'type': 'str'},
}

def __init__(self, detail_level=None):
super(DebugSetting, self).__init__()
self.detail_level = detail_level
Loading

0 comments on commit da9b2df

Please sign in to comment.