huaweicloud-sdk-python-v3/huaweicloud-sdk-vcm/huaweicloudsdkvcm/v2/model/create_video_job_req.py

245 lines
7.5 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 six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateVideoJobReq:
"""
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 = {
'name': 'str',
'description': 'str',
'input': 'CreateVideoJobReqInput',
'output': 'Output',
'service_config': 'ServiceConfig',
'service_version': 'str'
}
attribute_map = {
'name': 'name',
'description': 'description',
'input': 'input',
'output': 'output',
'service_config': 'service_config',
'service_version': 'service_version'
}
def __init__(self, name=None, description=None, input=None, output=None, service_config=None, service_version=None):
"""CreateVideoJobReq
The model defined in huaweicloud sdk
:param name: 作业名称只能由中文、字母azAZ、数字09、中划线-、下划线_组成长度范围为[1100]。
:type name: str
:param description: 作业描述信息最大长度为500字符长度。
:type description: str
:param input:
:type input: :class:`huaweicloudsdkvcm.v2.CreateVideoJobReqInput`
:param output:
:type output: :class:`huaweicloudsdkvcm.v2.Output`
:param service_config:
:type service_config: :class:`huaweicloudsdkvcm.v2.ServiceConfig`
:param service_version: 功能版本为“1.2”。
:type service_version: str
"""
self._name = None
self._description = None
self._input = None
self._output = None
self._service_config = None
self._service_version = None
self.discriminator = None
self.name = name
if description is not None:
self.description = description
self.input = input
self.output = output
if service_config is not None:
self.service_config = service_config
self.service_version = service_version
@property
def name(self):
"""Gets the name of this CreateVideoJobReq.
作业名称只能由中文、字母azAZ、数字09、中划线-、下划线_组成长度范围为[1100]。
:return: The name of this CreateVideoJobReq.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateVideoJobReq.
作业名称只能由中文、字母azAZ、数字09、中划线-、下划线_组成长度范围为[1100]。
:param name: The name of this CreateVideoJobReq.
:type name: str
"""
self._name = name
@property
def description(self):
"""Gets the description of this CreateVideoJobReq.
作业描述信息最大长度为500字符长度。
:return: The description of this CreateVideoJobReq.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this CreateVideoJobReq.
作业描述信息最大长度为500字符长度。
:param description: The description of this CreateVideoJobReq.
:type description: str
"""
self._description = description
@property
def input(self):
"""Gets the input of this CreateVideoJobReq.
:return: The input of this CreateVideoJobReq.
:rtype: :class:`huaweicloudsdkvcm.v2.CreateVideoJobReqInput`
"""
return self._input
@input.setter
def input(self, input):
"""Sets the input of this CreateVideoJobReq.
:param input: The input of this CreateVideoJobReq.
:type input: :class:`huaweicloudsdkvcm.v2.CreateVideoJobReqInput`
"""
self._input = input
@property
def output(self):
"""Gets the output of this CreateVideoJobReq.
:return: The output of this CreateVideoJobReq.
:rtype: :class:`huaweicloudsdkvcm.v2.Output`
"""
return self._output
@output.setter
def output(self, output):
"""Sets the output of this CreateVideoJobReq.
:param output: The output of this CreateVideoJobReq.
:type output: :class:`huaweicloudsdkvcm.v2.Output`
"""
self._output = output
@property
def service_config(self):
"""Gets the service_config of this CreateVideoJobReq.
:return: The service_config of this CreateVideoJobReq.
:rtype: :class:`huaweicloudsdkvcm.v2.ServiceConfig`
"""
return self._service_config
@service_config.setter
def service_config(self, service_config):
"""Sets the service_config of this CreateVideoJobReq.
:param service_config: The service_config of this CreateVideoJobReq.
:type service_config: :class:`huaweicloudsdkvcm.v2.ServiceConfig`
"""
self._service_config = service_config
@property
def service_version(self):
"""Gets the service_version of this CreateVideoJobReq.
功能版本为“1.2”。
:return: The service_version of this CreateVideoJobReq.
:rtype: str
"""
return self._service_version
@service_version.setter
def service_version(self, service_version):
"""Sets the service_version of this CreateVideoJobReq.
功能版本为“1.2”。
:param service_version: The service_version of this CreateVideoJobReq.
:type service_version: str
"""
self._service_version = service_version
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, CreateVideoJobReq):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other