Skip to content
Closed
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
Expand Up @@ -50,14 +50,15 @@
from ._models_py3 import ResourceGroupPatchable
from ._models_py3 import ResourceGroupProperties
from ._models_py3 import ResourceProviderOperationDisplayProperties
from ._models_py3 import ResourceReference
from ._models_py3 import ResourcesMoveInfo
from ._models_py3 import ScopedDeployment
from ._models_py3 import Sku
from ._models_py3 import SubResource
from ._models_py3 import TagCount
from ._models_py3 import TagDetails
from ._models_py3 import TagPatchRequest
from ._models_py3 import Tags
from ._models_py3 import TagsPatchResource
from ._models_py3 import TagsResource
from ._models_py3 import TagValue
from ._models_py3 import TargetResource
Expand Down Expand Up @@ -107,14 +108,15 @@
from ._models import ResourceGroupPatchable
from ._models import ResourceGroupProperties
from ._models import ResourceProviderOperationDisplayProperties
from ._models import ResourceReference
from ._models import ResourcesMoveInfo
from ._models import ScopedDeployment
from ._models import Sku
from ._models import SubResource
from ._models import TagCount
from ._models import TagDetails
from ._models import TagPatchRequest
from ._models import Tags
from ._models import TagsPatchResource
from ._models import TagsResource
from ._models import TagValue
from ._models import TargetResource
Expand Down Expand Up @@ -180,14 +182,15 @@
'ResourceGroupPatchable',
'ResourceGroupProperties',
'ResourceProviderOperationDisplayProperties',
'ResourceReference',
'ResourcesMoveInfo',
'ScopedDeployment',
'Sku',
'SubResource',
'TagCount',
'TagDetails',
'TagPatchRequest',
'Tags',
'TagsPatchResource',
'TagsResource',
'TagValue',
'TargetResource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,46 +441,63 @@ class DeploymentPropertiesExtended(Model):
:vartype timestamp: datetime
:ivar duration: The duration of the template deployment.
:vartype duration: str
:param outputs: Key/value pairs that represent deployment output.
:type outputs: object
:param providers: The list of resource providers needed for the
deployment.
:type providers:
:ivar outputs: Key/value pairs that represent deployment output.
:vartype outputs: object
:ivar providers: The list of resource providers needed for the deployment.
:vartype providers:
list[~azure.mgmt.resource.resources.v2019_10_01.models.Provider]
:param dependencies: The list of deployment dependencies.
:type dependencies:
:ivar dependencies: The list of deployment dependencies.
:vartype dependencies:
list[~azure.mgmt.resource.resources.v2019_10_01.models.Dependency]
:param template: The template content. Use only one of Template or
TemplateLink.
:type template: object
:param template_link: The URI referencing the template. Use only one of
Template or TemplateLink.
:type template_link:
:ivar template_link: The URI referencing the template.
:vartype template_link:
~azure.mgmt.resource.resources.v2019_10_01.models.TemplateLink
:param parameters: Deployment parameters. Use only one of Parameters or
ParametersLink.
:type parameters: object
:param parameters_link: The URI referencing the parameters. Use only one
of Parameters or ParametersLink.
:type parameters_link:
:ivar parameters: Deployment parameters.
:vartype parameters: object
:ivar parameters_link: The URI referencing the parameters.
:vartype parameters_link:
~azure.mgmt.resource.resources.v2019_10_01.models.ParametersLink
:param mode: The deployment mode. Possible values are Incremental and
:ivar mode: The deployment mode. Possible values are Incremental and
Complete. Possible values include: 'Incremental', 'Complete'
:type mode: str or
:vartype mode: str or
~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentMode
:param debug_setting: The debug setting of the deployment.
:type debug_setting:
:ivar debug_setting: The debug setting of the deployment.
:vartype debug_setting:
~azure.mgmt.resource.resources.v2019_10_01.models.DebugSetting
:param on_error_deployment: The deployment on error behavior.
:type on_error_deployment:
:ivar on_error_deployment: The deployment on error behavior.
:vartype on_error_deployment:
~azure.mgmt.resource.resources.v2019_10_01.models.OnErrorDeploymentExtended
:ivar template_hash: The hash produced for the template.
:vartype template_hash: str
:ivar output_resources: Array of provisioned resources.
:vartype output_resources:
list[~azure.mgmt.resource.resources.v2019_10_01.models.ResourceReference]
:ivar validated_resources: Array of validated resources.
:vartype validated_resources:
list[~azure.mgmt.resource.resources.v2019_10_01.models.ResourceReference]
:ivar error: The deployment error.
:vartype error:
~azure.mgmt.resource.resources.v2019_10_01.models.ErrorResponse
"""

_validation = {
'provisioning_state': {'readonly': True},
'correlation_id': {'readonly': True},
'timestamp': {'readonly': True},
'duration': {'readonly': True},
'outputs': {'readonly': True},
'providers': {'readonly': True},
'dependencies': {'readonly': True},
'template_link': {'readonly': True},
'parameters': {'readonly': True},
'parameters_link': {'readonly': True},
'mode': {'readonly': True},
'debug_setting': {'readonly': True},
'on_error_deployment': {'readonly': True},
'template_hash': {'readonly': True},
'output_resources': {'readonly': True},
'validated_resources': {'readonly': True},
'error': {'readonly': True},
}

_attribute_map = {
Expand All @@ -491,13 +508,16 @@ class DeploymentPropertiesExtended(Model):
'outputs': {'key': 'outputs', 'type': 'object'},
'providers': {'key': 'providers', 'type': '[Provider]'},
'dependencies': {'key': 'dependencies', 'type': '[Dependency]'},
'template': {'key': 'template', 'type': 'object'},
'template_link': {'key': 'templateLink', 'type': 'TemplateLink'},
'parameters': {'key': 'parameters', 'type': 'object'},
'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'},
'mode': {'key': 'mode', 'type': 'DeploymentMode'},
'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'},
'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'},
'template_hash': {'key': 'templateHash', 'type': 'str'},
'output_resources': {'key': 'outputResources', 'type': '[ResourceReference]'},
'validated_resources': {'key': 'validatedResources', 'type': '[ResourceReference]'},
'error': {'key': 'error', 'type': 'ErrorResponse'},
}

def __init__(self, **kwargs):
Expand All @@ -506,37 +526,47 @@ def __init__(self, **kwargs):
self.correlation_id = None
self.timestamp = None
self.duration = None
self.outputs = kwargs.get('outputs', None)
self.providers = kwargs.get('providers', None)
self.dependencies = kwargs.get('dependencies', None)
self.template = kwargs.get('template', None)
self.template_link = kwargs.get('template_link', None)
self.parameters = kwargs.get('parameters', None)
self.parameters_link = kwargs.get('parameters_link', None)
self.mode = kwargs.get('mode', None)
self.debug_setting = kwargs.get('debug_setting', None)
self.on_error_deployment = kwargs.get('on_error_deployment', None)
self.outputs = None
self.providers = None
self.dependencies = None
self.template_link = None
self.parameters = None
self.parameters_link = None
self.mode = None
self.debug_setting = None
self.on_error_deployment = None
self.template_hash = None
self.output_resources = None
self.validated_resources = None
self.error = None


class DeploymentValidateResult(Model):
"""Information from validate template deployment response.

:param error: The deployment validation error.
:type error:
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar error: The deployment validation error.
:vartype error:
~azure.mgmt.resource.resources.v2019_10_01.models.ErrorResponse
:param properties: The template deployment properties.
:type properties:
~azure.mgmt.resource.resources.v2019_10_01.models.DeploymentPropertiesExtended
"""

_validation = {
'error': {'readonly': True},
}

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorResponse'},
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
}

def __init__(self, **kwargs):
super(DeploymentValidateResult, self).__init__(**kwargs)
self.error = kwargs.get('error', None)
self.error = None
self.properties = kwargs.get('properties', None)


Expand Down Expand Up @@ -1393,6 +1423,29 @@ def __init__(self, **kwargs):
self.description = kwargs.get('description', None)


class ResourceReference(Model):
"""The resource Id model.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The fully qualified resource Id.
:vartype id: str
"""

_validation = {
'id': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ResourceReference, self).__init__(**kwargs)
self.id = None


class ResourcesMoveInfo(Model):
"""Parameters of move resources.

Expand Down Expand Up @@ -1519,7 +1572,7 @@ class TagDetails(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:ivar id: The tag name ID.
:vartype id: str
:param tag_name: The tag name.
:type tag_name: str
Expand Down Expand Up @@ -1551,63 +1604,59 @@ def __init__(self, **kwargs):
self.values = kwargs.get('values', None)


class TagPatchRequest(Model):
"""Tag Request for Patch operation.
class Tags(Model):
"""A dictionary of name and value pairs.

:param operation: The operation type for the patch api. Possible values
include: 'Replace', 'Merge', 'Delete'
:type operation: str or
~azure.mgmt.resource.resources.v2019_10_01.models.enum
:param properties: tags object passing in the request.
:type properties: ~azure.mgmt.resource.resources.v2019_10_01.models.Tags
:param tags:
:type tags: dict[str, str]
"""

_attribute_map = {
'operation': {'key': 'operation', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'Tags'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(TagPatchRequest, self).__init__(**kwargs)
self.operation = kwargs.get('operation', None)
self.properties = kwargs.get('properties', None)
super(Tags, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)


class Tags(Model):
"""key and value pairs for tags.
class TagsPatchResource(Model):
"""Wrapper resource for tags patch API request only.

:param tags:
:type tags: dict[str, str]
:param operation: The operation type for the patch API. Possible values
include: 'Replace', 'Merge', 'Delete'
:type operation: str or
~azure.mgmt.resource.resources.v2019_10_01.models.enum
:param properties: The set of tags.
:type properties: ~azure.mgmt.resource.resources.v2019_10_01.models.Tags
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'operation': {'key': 'operation', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'Tags'},
}

def __init__(self, **kwargs):
super(Tags, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
super(TagsPatchResource, self).__init__(**kwargs)
self.operation = kwargs.get('operation', None)
self.properties = kwargs.get('properties', None)


class TagsResource(Resource):
"""Tags for the resource.
class TagsResource(Model):
"""Wrapper resource for tags API requests and responses.

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: Resource ID
:ivar id: The ID of the tags wrapper resource.
:vartype id: str
:ivar name: Resource name
:ivar name: The name of the tags wrapper resource.
:vartype name: str
:ivar type: Resource type
:ivar type: The type of the tags wrapper resource.
:vartype type: str
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:param properties: Required. tags property.
:param properties: Required. The set of tags.
:type properties: ~azure.mgmt.resource.resources.v2019_10_01.models.Tags
"""

Expand All @@ -1622,13 +1671,14 @@ class TagsResource(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'Tags'},
}

def __init__(self, **kwargs):
super(TagsResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.properties = kwargs.get('properties', None)


Expand All @@ -1638,7 +1688,7 @@ class TagValue(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:ivar id: The tag value ID.
:vartype id: str
:param tag_value: The tag value.
:type tag_value: str
Expand Down
Loading