# 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 .proxy_resource_py3 import ProxyResource
[docs]class Variable(ProxyResource):
"""Definition of the variable.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param value: Gets or sets the value of the variable.
:type value: str
:param is_encrypted: Gets or sets the encrypted flag of the variable.
:type is_encrypted: bool
:param creation_time: Gets or sets the creation time.
:type creation_time: datetime
:param last_modified_time: Gets or sets the last modified time.
:type last_modified_time: datetime
:param description: Gets or sets the description.
:type description: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'value': {'key': 'properties.value', 'type': 'str'},
'is_encrypted': {'key': 'properties.isEncrypted', 'type': 'bool'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
'description': {'key': 'properties.description', 'type': 'str'},
}
def __init__(self, *, value: str=None, is_encrypted: bool=None, creation_time=None, last_modified_time=None, description: str=None, **kwargs) -> None:
super(Variable, self).__init__(**kwargs)
self.value = value
self.is_encrypted = is_encrypted
self.creation_time = creation_time
self.last_modified_time = last_modified_time
self.description = description