huaweicloudsdkmsgsms 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkmsgsms/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/__init__.py +60 -0
- huaweicloudsdkmsgsms/v2/model/__init__.py +57 -0
- huaweicloudsdkmsgsms/v2/model/api_template_variable.py +289 -0
- huaweicloudsdkmsgsms/v2/model/create_app_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_app_response.py +203 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/create_template_request.py +111 -0
- huaweicloudsdkmsgsms/v2/model/create_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/delete_template_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/enable_signature_response.py +85 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_request.py +347 -0
- huaweicloudsdkmsgsms/v2/model/list_app_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_request.py +144 -0
- huaweicloudsdkmsgsms/v2/model/list_send_country_details_response.py +112 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_request.py +434 -0
- huaweicloudsdkmsgsms/v2/model/list_signature_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_request.py +521 -0
- huaweicloudsdkmsgsms/v2/model/list_template_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/list_template_varilable_details_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_count_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/show_app_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_app_response.py +721 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_file_response.py +348 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_signature_response.py +837 -0
- huaweicloudsdkmsgsms/v2/model/show_template_request.py +114 -0
- huaweicloudsdkmsgsms/v2/model/show_template_response.py +953 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_add_req.py +287 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_query_resp.py +720 -0
- huaweicloudsdkmsgsms/v2/model/sms_app_update_req.py +258 -0
- huaweicloudsdkmsgsms/v2/model/sms_country_resp.py +173 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_req.py +371 -0
- huaweicloudsdkmsgsms/v2/model/sms_signature_resp.py +836 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_req.py +429 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_resp.py +952 -0
- huaweicloudsdkmsgsms/v2/model/sms_template_variable_attr_req.py +171 -0
- huaweicloudsdkmsgsms/v2/model/tenant_basic.py +173 -0
- huaweicloudsdkmsgsms/v2/model/update_app_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_app_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_signature_response.py +174 -0
- huaweicloudsdkmsgsms/v2/model/update_template_request.py +139 -0
- huaweicloudsdkmsgsms/v2/model/update_template_response.py +145 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request.py +140 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_request_body.py +114 -0
- huaweicloudsdkmsgsms/v2/model/upload_signature_file_response.py +116 -0
- huaweicloudsdkmsgsms/v2/msgsms_async_client.py +1461 -0
- huaweicloudsdkmsgsms/v2/msgsms_client.py +1458 -0
- huaweicloudsdkmsgsms/v2/region/__init__.py +0 -0
- huaweicloudsdkmsgsms/v2/region/msgsms_region.py +34 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/RECORD +64 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkmsgsms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateTemplateResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'id': 'str',
|
22
|
+
'template_name': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'template_name': 'template_name'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, id=None, template_name=None):
|
31
|
+
r"""CreateTemplateResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param id: 模板主键ID
|
36
|
+
:type id: str
|
37
|
+
:param template_name: 模板名称
|
38
|
+
:type template_name: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(CreateTemplateResponse, self).__init__()
|
42
|
+
|
43
|
+
self._id = None
|
44
|
+
self._template_name = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if id is not None:
|
48
|
+
self.id = id
|
49
|
+
if template_name is not None:
|
50
|
+
self.template_name = template_name
|
51
|
+
|
52
|
+
@property
|
53
|
+
def id(self):
|
54
|
+
r"""Gets the id of this CreateTemplateResponse.
|
55
|
+
|
56
|
+
模板主键ID
|
57
|
+
|
58
|
+
:return: The id of this CreateTemplateResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._id
|
62
|
+
|
63
|
+
@id.setter
|
64
|
+
def id(self, id):
|
65
|
+
r"""Sets the id of this CreateTemplateResponse.
|
66
|
+
|
67
|
+
模板主键ID
|
68
|
+
|
69
|
+
:param id: The id of this CreateTemplateResponse.
|
70
|
+
:type id: str
|
71
|
+
"""
|
72
|
+
self._id = id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def template_name(self):
|
76
|
+
r"""Gets the template_name of this CreateTemplateResponse.
|
77
|
+
|
78
|
+
模板名称
|
79
|
+
|
80
|
+
:return: The template_name of this CreateTemplateResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._template_name
|
84
|
+
|
85
|
+
@template_name.setter
|
86
|
+
def template_name(self, template_name):
|
87
|
+
r"""Sets the template_name of this CreateTemplateResponse.
|
88
|
+
|
89
|
+
模板名称
|
90
|
+
|
91
|
+
:param template_name: The template_name of this CreateTemplateResponse.
|
92
|
+
:type template_name: str
|
93
|
+
"""
|
94
|
+
self._template_name = template_name
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, CreateTemplateResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteSignatureRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""DeleteSignatureRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: 签名ID
|
33
|
+
:type id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.id = id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def id(self):
|
45
|
+
r"""Gets the id of this DeleteSignatureRequest.
|
46
|
+
|
47
|
+
签名ID
|
48
|
+
|
49
|
+
:return: The id of this DeleteSignatureRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this DeleteSignatureRequest.
|
57
|
+
|
58
|
+
签名ID
|
59
|
+
|
60
|
+
:param id: The id of this DeleteSignatureRequest.
|
61
|
+
:type id: str
|
62
|
+
"""
|
63
|
+
self._id = id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, DeleteSignatureRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DeleteSignatureResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""DeleteSignatureResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteSignatureResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteSignatureResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteTemplateRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""DeleteTemplateRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: 模板ID
|
33
|
+
:type id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.id = id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def id(self):
|
45
|
+
r"""Gets the id of this DeleteTemplateRequest.
|
46
|
+
|
47
|
+
模板ID
|
48
|
+
|
49
|
+
:return: The id of this DeleteTemplateRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this DeleteTemplateRequest.
|
57
|
+
|
58
|
+
模板ID
|
59
|
+
|
60
|
+
:param id: The id of this DeleteTemplateRequest.
|
61
|
+
:type id: str
|
62
|
+
"""
|
63
|
+
self._id = id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, DeleteTemplateRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class DeleteTemplateResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""DeleteTemplateResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteTemplateResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteTemplateResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class EnableSignatureRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'id': 'id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, id=None):
|
28
|
+
r"""EnableSignatureRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: 签名ID
|
33
|
+
:type id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.id = id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def id(self):
|
45
|
+
r"""Gets the id of this EnableSignatureRequest.
|
46
|
+
|
47
|
+
签名ID
|
48
|
+
|
49
|
+
:return: The id of this EnableSignatureRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this EnableSignatureRequest.
|
57
|
+
|
58
|
+
签名ID
|
59
|
+
|
60
|
+
:param id: The id of this EnableSignatureRequest.
|
61
|
+
:type id: str
|
62
|
+
"""
|
63
|
+
self._id = id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, EnableSignatureRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|