Skip to content
Merged
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 @@ -15,20 +15,28 @@
class ManagementLockObject(Model):
"""Management lock information.

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

:param level: The lock level of the management lock. Possible values
include: 'NotSpecified', 'CanNotDelete', 'ReadOnly'
:type level: str or
~azure.mgmt.resource.locks.v2015_01_01.models.LockLevel
:param notes: The notes of the management lock.
:type notes: str
:param id: The Id of the lock.
:type id: str
:param type: The type of the lock.
:type type: str
:ivar id: The Id of the lock.
:vartype id: str
:ivar type: The type of the lock.
:vartype type: str
:param name: The name of the lock.
:type name: str
"""

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

_attribute_map = {
'level': {'key': 'properties.level', 'type': 'str'},
'notes': {'key': 'properties.notes', 'type': 'str'},
Expand All @@ -37,10 +45,10 @@ class ManagementLockObject(Model):
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, level=None, notes=None, id=None, type=None, name=None):
def __init__(self, level=None, notes=None, name=None):
super(ManagementLockObject, self).__init__()
self.level = level
self.notes = notes
self.id = id
self.type = type
self.id = None
self.type = None
self.name = name
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class PolicyDefinition(Model):
"""The policy definition.

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

:param policy_type: The type of policy definition. Possible values are
NotSpecified, BuiltIn, and Custom. Possible values include:
'NotSpecified', 'BuiltIn', 'Custom'
Expand All @@ -26,14 +29,18 @@ class PolicyDefinition(Model):
:type description: str
:param policy_rule: The policy rule.
:type policy_rule: object
:param id: The ID of the policy definition.
:type id: str
:ivar id: The ID of the policy definition.
:vartype id: str
:param name: The name of the policy definition. If you do not specify a
value for name, the value is inferred from the name value in the request
URI.
:type name: str
"""

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

_attribute_map = {
'policy_type': {'key': 'properties.policyType', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
Expand All @@ -43,11 +50,11 @@ class PolicyDefinition(Model):
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, policy_type=None, display_name=None, description=None, policy_rule=None, id=None, name=None):
def __init__(self, policy_type=None, display_name=None, description=None, policy_rule=None, name=None):
super(PolicyDefinition, self).__init__()
self.policy_type = policy_type
self.display_name = display_name
self.description = description
self.policy_rule = policy_rule
self.id = id
self.id = None
self.name = name
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class PolicyDefinition(Model):
"""The policy definition.

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

:param policy_type: The type of policy definition. Possible values are
NotSpecified, BuiltIn, and Custom. Possible values include:
'NotSpecified', 'BuiltIn', 'Custom'
Expand All @@ -26,14 +29,18 @@ class PolicyDefinition(Model):
:type description: str
:param policy_rule: The policy rule.
:type policy_rule: object
:param id: The ID of the policy definition.
:type id: str
:ivar id: The ID of the policy definition.
:vartype id: str
:param name: The name of the policy definition. If you do not specify a
value for name, the value is inferred from the name value in the request
URI.
:type name: str
"""

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

_attribute_map = {
'policy_type': {'key': 'properties.policyType', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
Expand All @@ -43,11 +50,11 @@ class PolicyDefinition(Model):
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, policy_type=None, display_name=None, description=None, policy_rule=None, id=None, name=None):
def __init__(self, policy_type=None, display_name=None, description=None, policy_rule=None, name=None):
super(PolicyDefinition, self).__init__()
self.policy_type = policy_type
self.display_name = display_name
self.description = description
self.policy_rule = policy_rule
self.id = id
self.id = None
self.name = name
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
class DeploymentExtended(Model):
"""Deployment information.

:param id: The ID of the deployment.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The ID of the deployment.
:vartype id: str
:param name: The name of the deployment.
:type name: str
:param properties: Deployment properties.
Expand All @@ -25,6 +28,7 @@ class DeploymentExtended(Model):
"""

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

Expand All @@ -34,8 +38,8 @@ class DeploymentExtended(Model):
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
}

def __init__(self, name, id=None, properties=None):
def __init__(self, name, properties=None):
super(DeploymentExtended, self).__init__()
self.id = id
self.id = None
self.name = name
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
class TagDetails(Model):
"""Tag details.

:param id: The tag ID.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:vartype id: str
:param tag_name: The tag name.
:type tag_name: str
:param count: The tag count.
Expand All @@ -26,16 +29,20 @@ class TagDetails(Model):
list[~azure.mgmt.resource.resources.v2016_02_01.models.TagValue]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'tag_name': {'key': 'tagName', 'type': 'str'},
'count': {'key': 'count', 'type': 'TagCount'},
'values': {'key': 'values', 'type': '[TagValue]'},
}

def __init__(self, id=None, tag_name=None, count=None, values=None):
def __init__(self, tag_name=None, count=None, values=None):
super(TagDetails, self).__init__()
self.id = id
self.id = None
self.tag_name = tag_name
self.count = count
self.values = values
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,29 @@
class TagValue(Model):
"""Tag information.

:param id: The tag ID.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:vartype id: str
:param tag_value: The tag value.
:type tag_value: str
:param count: The tag value count.
:type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'tag_value': {'key': 'tagValue', 'type': 'str'},
'count': {'key': 'count', 'type': 'TagCount'},
}

def __init__(self, id=None, tag_value=None, count=None):
def __init__(self, tag_value=None, count=None):
super(TagValue, self).__init__()
self.id = id
self.id = None
self.tag_value = tag_value
self.count = count
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
class DeploymentExtended(Model):
"""Deployment information.

:param id: The ID of the deployment.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The ID of the deployment.
:vartype id: str
:param name: The name of the deployment.
:type name: str
:param properties: Deployment properties.
Expand All @@ -25,6 +28,7 @@ class DeploymentExtended(Model):
"""

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

Expand All @@ -34,8 +38,8 @@ class DeploymentExtended(Model):
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
}

def __init__(self, name, id=None, properties=None):
def __init__(self, name, properties=None):
super(DeploymentExtended, self).__init__()
self.id = id
self.id = None
self.name = name
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
class TagDetails(Model):
"""Tag details.

:param id: The tag ID.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:vartype id: str
:param tag_name: The tag name.
:type tag_name: str
:param count: The total number of resources that use the resource tag.
Expand All @@ -28,16 +31,20 @@ class TagDetails(Model):
list[~azure.mgmt.resource.resources.v2016_09_01.models.TagValue]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'tag_name': {'key': 'tagName', 'type': 'str'},
'count': {'key': 'count', 'type': 'TagCount'},
'values': {'key': 'values', 'type': '[TagValue]'},
}

def __init__(self, id=None, tag_name=None, count=None, values=None):
def __init__(self, tag_name=None, count=None, values=None):
super(TagDetails, self).__init__()
self.id = id
self.id = None
self.tag_name = tag_name
self.count = count
self.values = values
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,29 @@
class TagValue(Model):
"""Tag information.

:param id: The tag ID.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The tag ID.
:vartype id: str
:param tag_value: The tag value.
:type tag_value: str
:param count: The tag value count.
:type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'tag_value': {'key': 'tagValue', 'type': 'str'},
'count': {'key': 'count', 'type': 'TagCount'},
}

def __init__(self, id=None, tag_value=None, count=None):
def __init__(self, tag_value=None, count=None):
super(TagValue, self).__init__()
self.id = id
self.id = None
self.tag_value = tag_value
self.count = count
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
class DeploymentExtended(Model):
"""Deployment information.

:param id: The ID of the deployment.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The ID of the deployment.
:vartype id: str
:param name: The name of the deployment.
:type name: str
:param properties: Deployment properties.
Expand All @@ -25,6 +28,7 @@ class DeploymentExtended(Model):
"""

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

Expand All @@ -34,8 +38,8 @@ class DeploymentExtended(Model):
'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'},
}

def __init__(self, name, id=None, properties=None):
def __init__(self, name, properties=None):
super(DeploymentExtended, self).__init__()
self.id = id
self.id = None
self.name = name
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class Resource(Model):
"""Resource.
"""Basic set of the resource properties.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ResourceProviderOperationDisplayProperties(Model):
:type provider: str
:param resource: Operation resource.
:type resource: str
:param operation: Operation.
:param operation: The operation name.
:type operation: str
:param description: Operation description.
:type description: str
Expand Down
Loading