463 lines
16 KiB
Python
463 lines
16 KiB
Python
![]() |
# coding: utf-8
|
|||
|
|
|||
|
import re
|
|||
|
import six
|
|||
|
|
|||
|
|
|||
|
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|||
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|||
|
|
|||
|
|
|||
|
class DescribeExecutionPlanResponse(SdkResponse):
|
|||
|
|
|||
|
"""
|
|||
|
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 = {
|
|||
|
'stack_id': 'str',
|
|||
|
'stack_name': 'str',
|
|||
|
'execution_plan_id': 'str',
|
|||
|
'execution_plan_name': 'str',
|
|||
|
'description': 'str',
|
|||
|
'vars_structure': 'list[VarsStructure]',
|
|||
|
'vars_uri_content': 'str',
|
|||
|
'vars_body': 'str',
|
|||
|
'create_time': 'str',
|
|||
|
'apply_time': 'str',
|
|||
|
'status': 'str',
|
|||
|
'status_message': 'str',
|
|||
|
'summary': 'ExecutionPlanSummary'
|
|||
|
}
|
|||
|
|
|||
|
attribute_map = {
|
|||
|
'stack_id': 'stack_id',
|
|||
|
'stack_name': 'stack_name',
|
|||
|
'execution_plan_id': 'execution_plan_id',
|
|||
|
'execution_plan_name': 'execution_plan_name',
|
|||
|
'description': 'description',
|
|||
|
'vars_structure': 'vars_structure',
|
|||
|
'vars_uri_content': 'vars_uri_content',
|
|||
|
'vars_body': 'vars_body',
|
|||
|
'create_time': 'create_time',
|
|||
|
'apply_time': 'apply_time',
|
|||
|
'status': 'status',
|
|||
|
'status_message': 'status_message',
|
|||
|
'summary': 'summary'
|
|||
|
}
|
|||
|
|
|||
|
def __init__(self, stack_id=None, stack_name=None, execution_plan_id=None, execution_plan_name=None, description=None, vars_structure=None, vars_uri_content=None, vars_body=None, create_time=None, apply_time=None, status=None, status_message=None, summary=None):
|
|||
|
"""DescribeExecutionPlanResponse
|
|||
|
|
|||
|
The model defined in huaweicloud sdk
|
|||
|
|
|||
|
:param stack_id: 栈的唯一Id,为uuid
|
|||
|
:type stack_id: str
|
|||
|
:param stack_name: 栈的名字
|
|||
|
:type stack_name: str
|
|||
|
:param execution_plan_id: 执行计划的唯一Id,由资源编排服务随机生成,为uuid
|
|||
|
:type execution_plan_id: str
|
|||
|
:param execution_plan_name: 执行计划的名字
|
|||
|
:type execution_plan_name: str
|
|||
|
:param description: 执行计划的描述,此描述为用户在创建执行计划时指定
|
|||
|
:type description: str
|
|||
|
:param vars_structure: 参数列表
|
|||
|
:type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`]
|
|||
|
:param vars_uri_content: 创建该执行计划时,给出的vars文件中的内容
|
|||
|
:type vars_uri_content: str
|
|||
|
:param vars_body: 创建该执行计划时,请求Body体中的tfvars文件内容
|
|||
|
:type vars_body: str
|
|||
|
:param create_time: 执行计划的生成时间
|
|||
|
:type create_time: str
|
|||
|
:param apply_time: 执行时间
|
|||
|
:type apply_time: str
|
|||
|
:param status: 执行计划的执行状态,只有当AVAILABLE的时候才可以使用apply执行 * `CREATION_IN_PROGRESS` - 正在生成 * `CREATION_FAILED` - 生成失败 * `AVAILABLE` - 执行计划已经生成完成。可以使用apply进行执行 * `APPLY_IN_PROGRESS` - 执行计划正在执行 * `APPLIED` - 执行完成
|
|||
|
:type status: str
|
|||
|
:param status_message: 展示执行计划状态更多细节的信息
|
|||
|
:type status_message: str
|
|||
|
:param summary:
|
|||
|
:type summary: :class:`huaweicloudsdkaos.v1.ExecutionPlanSummary`
|
|||
|
"""
|
|||
|
|
|||
|
super(DescribeExecutionPlanResponse, self).__init__()
|
|||
|
|
|||
|
self._stack_id = None
|
|||
|
self._stack_name = None
|
|||
|
self._execution_plan_id = None
|
|||
|
self._execution_plan_name = None
|
|||
|
self._description = None
|
|||
|
self._vars_structure = None
|
|||
|
self._vars_uri_content = None
|
|||
|
self._vars_body = None
|
|||
|
self._create_time = None
|
|||
|
self._apply_time = None
|
|||
|
self._status = None
|
|||
|
self._status_message = None
|
|||
|
self._summary = None
|
|||
|
self.discriminator = None
|
|||
|
|
|||
|
if stack_id is not None:
|
|||
|
self.stack_id = stack_id
|
|||
|
if stack_name is not None:
|
|||
|
self.stack_name = stack_name
|
|||
|
if execution_plan_id is not None:
|
|||
|
self.execution_plan_id = execution_plan_id
|
|||
|
if execution_plan_name is not None:
|
|||
|
self.execution_plan_name = execution_plan_name
|
|||
|
if description is not None:
|
|||
|
self.description = description
|
|||
|
if vars_structure is not None:
|
|||
|
self.vars_structure = vars_structure
|
|||
|
if vars_uri_content is not None:
|
|||
|
self.vars_uri_content = vars_uri_content
|
|||
|
if vars_body is not None:
|
|||
|
self.vars_body = vars_body
|
|||
|
if create_time is not None:
|
|||
|
self.create_time = create_time
|
|||
|
if apply_time is not None:
|
|||
|
self.apply_time = apply_time
|
|||
|
if status is not None:
|
|||
|
self.status = status
|
|||
|
if status_message is not None:
|
|||
|
self.status_message = status_message
|
|||
|
if summary is not None:
|
|||
|
self.summary = summary
|
|||
|
|
|||
|
@property
|
|||
|
def stack_id(self):
|
|||
|
"""Gets the stack_id of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
栈的唯一Id,为uuid
|
|||
|
|
|||
|
:return: The stack_id of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._stack_id
|
|||
|
|
|||
|
@stack_id.setter
|
|||
|
def stack_id(self, stack_id):
|
|||
|
"""Sets the stack_id of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
栈的唯一Id,为uuid
|
|||
|
|
|||
|
:param stack_id: The stack_id of this DescribeExecutionPlanResponse.
|
|||
|
:type stack_id: str
|
|||
|
"""
|
|||
|
self._stack_id = stack_id
|
|||
|
|
|||
|
@property
|
|||
|
def stack_name(self):
|
|||
|
"""Gets the stack_name of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
栈的名字
|
|||
|
|
|||
|
:return: The stack_name of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._stack_name
|
|||
|
|
|||
|
@stack_name.setter
|
|||
|
def stack_name(self, stack_name):
|
|||
|
"""Sets the stack_name of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
栈的名字
|
|||
|
|
|||
|
:param stack_name: The stack_name of this DescribeExecutionPlanResponse.
|
|||
|
:type stack_name: str
|
|||
|
"""
|
|||
|
self._stack_name = stack_name
|
|||
|
|
|||
|
@property
|
|||
|
def execution_plan_id(self):
|
|||
|
"""Gets the execution_plan_id of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的唯一Id,由资源编排服务随机生成,为uuid
|
|||
|
|
|||
|
:return: The execution_plan_id of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._execution_plan_id
|
|||
|
|
|||
|
@execution_plan_id.setter
|
|||
|
def execution_plan_id(self, execution_plan_id):
|
|||
|
"""Sets the execution_plan_id of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的唯一Id,由资源编排服务随机生成,为uuid
|
|||
|
|
|||
|
:param execution_plan_id: The execution_plan_id of this DescribeExecutionPlanResponse.
|
|||
|
:type execution_plan_id: str
|
|||
|
"""
|
|||
|
self._execution_plan_id = execution_plan_id
|
|||
|
|
|||
|
@property
|
|||
|
def execution_plan_name(self):
|
|||
|
"""Gets the execution_plan_name of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的名字
|
|||
|
|
|||
|
:return: The execution_plan_name of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._execution_plan_name
|
|||
|
|
|||
|
@execution_plan_name.setter
|
|||
|
def execution_plan_name(self, execution_plan_name):
|
|||
|
"""Sets the execution_plan_name of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的名字
|
|||
|
|
|||
|
:param execution_plan_name: The execution_plan_name of this DescribeExecutionPlanResponse.
|
|||
|
:type execution_plan_name: str
|
|||
|
"""
|
|||
|
self._execution_plan_name = execution_plan_name
|
|||
|
|
|||
|
@property
|
|||
|
def description(self):
|
|||
|
"""Gets the description of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的描述,此描述为用户在创建执行计划时指定
|
|||
|
|
|||
|
:return: The description of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._description
|
|||
|
|
|||
|
@description.setter
|
|||
|
def description(self, description):
|
|||
|
"""Sets the description of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的描述,此描述为用户在创建执行计划时指定
|
|||
|
|
|||
|
:param description: The description of this DescribeExecutionPlanResponse.
|
|||
|
:type description: str
|
|||
|
"""
|
|||
|
self._description = description
|
|||
|
|
|||
|
@property
|
|||
|
def vars_structure(self):
|
|||
|
"""Gets the vars_structure of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
参数列表
|
|||
|
|
|||
|
:return: The vars_structure of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: list[:class:`huaweicloudsdkaos.v1.VarsStructure`]
|
|||
|
"""
|
|||
|
return self._vars_structure
|
|||
|
|
|||
|
@vars_structure.setter
|
|||
|
def vars_structure(self, vars_structure):
|
|||
|
"""Sets the vars_structure of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
参数列表
|
|||
|
|
|||
|
:param vars_structure: The vars_structure of this DescribeExecutionPlanResponse.
|
|||
|
:type vars_structure: list[:class:`huaweicloudsdkaos.v1.VarsStructure`]
|
|||
|
"""
|
|||
|
self._vars_structure = vars_structure
|
|||
|
|
|||
|
@property
|
|||
|
def vars_uri_content(self):
|
|||
|
"""Gets the vars_uri_content of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
创建该执行计划时,给出的vars文件中的内容
|
|||
|
|
|||
|
:return: The vars_uri_content of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._vars_uri_content
|
|||
|
|
|||
|
@vars_uri_content.setter
|
|||
|
def vars_uri_content(self, vars_uri_content):
|
|||
|
"""Sets the vars_uri_content of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
创建该执行计划时,给出的vars文件中的内容
|
|||
|
|
|||
|
:param vars_uri_content: The vars_uri_content of this DescribeExecutionPlanResponse.
|
|||
|
:type vars_uri_content: str
|
|||
|
"""
|
|||
|
self._vars_uri_content = vars_uri_content
|
|||
|
|
|||
|
@property
|
|||
|
def vars_body(self):
|
|||
|
"""Gets the vars_body of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
创建该执行计划时,请求Body体中的tfvars文件内容
|
|||
|
|
|||
|
:return: The vars_body of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._vars_body
|
|||
|
|
|||
|
@vars_body.setter
|
|||
|
def vars_body(self, vars_body):
|
|||
|
"""Sets the vars_body of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
创建该执行计划时,请求Body体中的tfvars文件内容
|
|||
|
|
|||
|
:param vars_body: The vars_body of this DescribeExecutionPlanResponse.
|
|||
|
:type vars_body: str
|
|||
|
"""
|
|||
|
self._vars_body = vars_body
|
|||
|
|
|||
|
@property
|
|||
|
def create_time(self):
|
|||
|
"""Gets the create_time of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的生成时间
|
|||
|
|
|||
|
:return: The create_time of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._create_time
|
|||
|
|
|||
|
@create_time.setter
|
|||
|
def create_time(self, create_time):
|
|||
|
"""Sets the create_time of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的生成时间
|
|||
|
|
|||
|
:param create_time: The create_time of this DescribeExecutionPlanResponse.
|
|||
|
:type create_time: str
|
|||
|
"""
|
|||
|
self._create_time = create_time
|
|||
|
|
|||
|
@property
|
|||
|
def apply_time(self):
|
|||
|
"""Gets the apply_time of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行时间
|
|||
|
|
|||
|
:return: The apply_time of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._apply_time
|
|||
|
|
|||
|
@apply_time.setter
|
|||
|
def apply_time(self, apply_time):
|
|||
|
"""Sets the apply_time of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行时间
|
|||
|
|
|||
|
:param apply_time: The apply_time of this DescribeExecutionPlanResponse.
|
|||
|
:type apply_time: str
|
|||
|
"""
|
|||
|
self._apply_time = apply_time
|
|||
|
|
|||
|
@property
|
|||
|
def status(self):
|
|||
|
"""Gets the status of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的执行状态,只有当AVAILABLE的时候才可以使用apply执行 * `CREATION_IN_PROGRESS` - 正在生成 * `CREATION_FAILED` - 生成失败 * `AVAILABLE` - 执行计划已经生成完成。可以使用apply进行执行 * `APPLY_IN_PROGRESS` - 执行计划正在执行 * `APPLIED` - 执行完成
|
|||
|
|
|||
|
:return: The status of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._status
|
|||
|
|
|||
|
@status.setter
|
|||
|
def status(self, status):
|
|||
|
"""Sets the status of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
执行计划的执行状态,只有当AVAILABLE的时候才可以使用apply执行 * `CREATION_IN_PROGRESS` - 正在生成 * `CREATION_FAILED` - 生成失败 * `AVAILABLE` - 执行计划已经生成完成。可以使用apply进行执行 * `APPLY_IN_PROGRESS` - 执行计划正在执行 * `APPLIED` - 执行完成
|
|||
|
|
|||
|
:param status: The status of this DescribeExecutionPlanResponse.
|
|||
|
:type status: str
|
|||
|
"""
|
|||
|
self._status = status
|
|||
|
|
|||
|
@property
|
|||
|
def status_message(self):
|
|||
|
"""Gets the status_message of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
展示执行计划状态更多细节的信息
|
|||
|
|
|||
|
:return: The status_message of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: str
|
|||
|
"""
|
|||
|
return self._status_message
|
|||
|
|
|||
|
@status_message.setter
|
|||
|
def status_message(self, status_message):
|
|||
|
"""Sets the status_message of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
展示执行计划状态更多细节的信息
|
|||
|
|
|||
|
:param status_message: The status_message of this DescribeExecutionPlanResponse.
|
|||
|
:type status_message: str
|
|||
|
"""
|
|||
|
self._status_message = status_message
|
|||
|
|
|||
|
@property
|
|||
|
def summary(self):
|
|||
|
"""Gets the summary of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
:return: The summary of this DescribeExecutionPlanResponse.
|
|||
|
:rtype: :class:`huaweicloudsdkaos.v1.ExecutionPlanSummary`
|
|||
|
"""
|
|||
|
return self._summary
|
|||
|
|
|||
|
@summary.setter
|
|||
|
def summary(self, summary):
|
|||
|
"""Sets the summary of this DescribeExecutionPlanResponse.
|
|||
|
|
|||
|
:param summary: The summary of this DescribeExecutionPlanResponse.
|
|||
|
:type summary: :class:`huaweicloudsdkaos.v1.ExecutionPlanSummary`
|
|||
|
"""
|
|||
|
self._summary = summary
|
|||
|
|
|||
|
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"""
|
|||
|
import simplejson as json
|
|||
|
if six.PY2:
|
|||
|
import sys
|
|||
|
reload(sys)
|
|||
|
sys.setdefaultencoding("utf-8")
|
|||
|
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|||
|
|
|||
|
def __repr__(self):
|
|||
|
"""For `print`"""
|
|||
|
return self.to_str()
|
|||
|
|
|||
|
def __eq__(self, other):
|
|||
|
"""Returns true if both objects are equal"""
|
|||
|
if not isinstance(other, DescribeExecutionPlanResponse):
|
|||
|
return False
|
|||
|
|
|||
|
return self.__dict__ == other.__dict__
|
|||
|
|
|||
|
def __ne__(self, other):
|
|||
|
"""Returns true if both objects are not equal"""
|
|||
|
return not self == other
|