huaweicloud-sdk-python-v3/huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/each_encrypt_rsp.py

296 lines
8.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding: utf-8
import pprint
import re
import six
class EachEncryptRsp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
sensitive_list = []
openapi_types = {
'task_id': 'str',
'status': 'str',
'create_time': 'str',
'end_time': 'str',
'input': 'ObsObjInfo',
'output': 'ObsObjInfo',
'output_file_name': 'list[str]',
'description': 'str'
}
attribute_map = {
'task_id': 'task_id',
'status': 'status',
'create_time': 'create_time',
'end_time': 'end_time',
'input': 'input',
'output': 'output',
'output_file_name': 'output_file_name',
'description': 'description'
}
def __init__(self, task_id=None, status=None, create_time=None, end_time=None, input=None, output=None, output_file_name=None, description=None):
"""EachEncryptRsp - a model defined in huaweicloud sdk"""
self._task_id = None
self._status = None
self._create_time = None
self._end_time = None
self._input = None
self._output = None
self._output_file_name = None
self._description = None
self.discriminator = None
if task_id is not None:
self.task_id = task_id
if status is not None:
self.status = status
if create_time is not None:
self.create_time = create_time
if end_time is not None:
self.end_time = end_time
if input is not None:
self.input = input
if output is not None:
self.output = output
if output_file_name is not None:
self.output_file_name = output_file_name
if description is not None:
self.description = description
@property
def task_id(self):
"""Gets the task_id of this EachEncryptRsp.
任务Id
:return: The task_id of this EachEncryptRsp.
:rtype: str
"""
return self._task_id
@task_id.setter
def task_id(self, task_id):
"""Sets the task_id of this EachEncryptRsp.
任务Id
:param task_id: The task_id of this EachEncryptRsp.
:type: str
"""
self._task_id = task_id
@property
def status(self):
"""Gets the status of this EachEncryptRsp.
任务执行状态。 取值如下: - NO_TASK无任务 - WAITING等待启动 - PROCESSING加密中 - SUCCEEDED加密成功 - FAILED加密失败 - CANCELED已删除
:return: The status of this EachEncryptRsp.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this EachEncryptRsp.
任务执行状态。 取值如下: - NO_TASK无任务 - WAITING等待启动 - PROCESSING加密中 - SUCCEEDED加密成功 - FAILED加密失败 - CANCELED已删除
:param status: The status of this EachEncryptRsp.
:type: str
"""
self._status = status
@property
def create_time(self):
"""Gets the create_time of this EachEncryptRsp.
加密任务启动时间。
:return: The create_time of this EachEncryptRsp.
:rtype: str
"""
return self._create_time
@create_time.setter
def create_time(self, create_time):
"""Sets the create_time of this EachEncryptRsp.
加密任务启动时间。
:param create_time: The create_time of this EachEncryptRsp.
:type: str
"""
self._create_time = create_time
@property
def end_time(self):
"""Gets the end_time of this EachEncryptRsp.
加密任务结束时间。
:return: The end_time of this EachEncryptRsp.
:rtype: str
"""
return self._end_time
@end_time.setter
def end_time(self, end_time):
"""Sets the end_time of this EachEncryptRsp.
加密任务结束时间。
:param end_time: The end_time of this EachEncryptRsp.
:type: str
"""
self._end_time = end_time
@property
def input(self):
"""Gets the input of this EachEncryptRsp.
:return: The input of this EachEncryptRsp.
:rtype: ObsObjInfo
"""
return self._input
@input.setter
def input(self, input):
"""Sets the input of this EachEncryptRsp.
:param input: The input of this EachEncryptRsp.
:type: ObsObjInfo
"""
self._input = input
@property
def output(self):
"""Gets the output of this EachEncryptRsp.
:return: The output of this EachEncryptRsp.
:rtype: ObsObjInfo
"""
return self._output
@output.setter
def output(self, output):
"""Sets the output of this EachEncryptRsp.
:param output: The output of this EachEncryptRsp.
:type: ObsObjInfo
"""
self._output = output
@property
def output_file_name(self):
"""Gets the output_file_name of this EachEncryptRsp.
加密生成的文件名,数组类型,可能包含多个,包含加密文件名。
:return: The output_file_name of this EachEncryptRsp.
:rtype: list[str]
"""
return self._output_file_name
@output_file_name.setter
def output_file_name(self, output_file_name):
"""Sets the output_file_name of this EachEncryptRsp.
加密生成的文件名,数组类型,可能包含多个,包含加密文件名。
:param output_file_name: The output_file_name of this EachEncryptRsp.
:type: list[str]
"""
self._output_file_name = output_file_name
@property
def description(self):
"""Gets the description of this EachEncryptRsp.
加密任务描述,当加密出现异常时,此字段为异常的原因。
:return: The description of this EachEncryptRsp.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this EachEncryptRsp.
加密任务描述,当加密出现异常时,此字段为异常的原因。
:param description: The description of this EachEncryptRsp.
:type: str
"""
self._description = description
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, EachEncryptRsp):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other