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 @@ -56,8 +56,8 @@
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 @@ -113,8 +113,8 @@
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 @@ -186,8 +186,8 @@
'SubResource',
'TagCount',
'TagDetails',
'TagPatchRequest',
'Tags',
'TagsPatchResource',
'TagsResource',
'TagValue',
'TargetResource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,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 +1551,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 +1618,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 +1635,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
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,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,14 +1551,30 @@ def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) ->
self.values = values


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

:param tags:
:type tags: dict[str, str]
"""

:param operation: The operation type for the patch api. Possible values
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, tags=None, **kwargs) -> None:
super(Tags, self).__init__(**kwargs)
self.tags = tags


class TagsPatchResource(Model):
"""Wrapper resource for tags patch API request only.

: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.
:param properties: The set of tags.
:type properties: ~azure.mgmt.resource.resources.v2019_10_01.models.Tags
"""

Expand All @@ -1568,46 +1584,26 @@ class TagPatchRequest(Model):
}

def __init__(self, *, operation=None, properties=None, **kwargs) -> None:
super(TagPatchRequest, self).__init__(**kwargs)
super(TagsPatchResource, self).__init__(**kwargs)
self.operation = operation
self.properties = properties


class Tags(Model):
"""key and value pairs for tags.

:param tags:
:type tags: dict[str, str]
"""

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

def __init__(self, *, tags=None, **kwargs) -> None:
super(Tags, self).__init__(**kwargs)
self.tags = tags


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 +1618,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, *, properties, location: str=None, tags=None, **kwargs) -> None:
super(TagsResource, self).__init__(location=location, tags=tags, **kwargs)
def __init__(self, *, properties, **kwargs) -> None:
super(TagsResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.properties = properties


Expand All @@ -1638,7 +1635,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