huaweicloudsdkdns 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.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.
- huaweicloudsdkdns/v2/__init__.py +20 -5
- huaweicloudsdkdns/v2/dns_async_client.py +299 -11
- huaweicloudsdkdns/v2/dns_client.py +299 -11
- huaweicloudsdkdns/v2/model/__init__.py +20 -5
- huaweicloudsdkdns/v2/model/associate_router_response.py +6 -6
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +4 -4
- huaweicloudsdkdns/v2/model/{batch_update_record_set_with_line_req.py → batch_update_record_set_with_line_request_body.py} +7 -7
- huaweicloudsdkdns/v2/model/create_custom_line_request.py +4 -4
- huaweicloudsdkdns/v2/model/{create_custom_lines.py → create_custom_line_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/create_eip_record_set_request.py +3 -3
- huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_private_zone_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/create_public_zone_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/create_record_set_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/delete_custom_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_private_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/delete_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/disassociate_router_response.py +6 -6
- huaweicloudsdkdns/v2/model/link.py +115 -0
- huaweicloudsdkdns/v2/model/list_custom_line_request.py +64 -6
- huaweicloudsdkdns/v2/model/list_line_groups_request.py +3 -3
- huaweicloudsdkdns/v2/model/list_private_zones_request.py +125 -9
- huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_request.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_public_zones_request.py +100 -13
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +6 -6
- huaweicloudsdkdns/v2/model/list_record_sets_request.py +6 -6
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +36 -7
- huaweicloudsdkdns/v2/model/private_zone_resp.py +9 -9
- huaweicloudsdkdns/v2/model/public_zone_resp.py +6 -6
- huaweicloudsdkdns/v2/model/recordset_data.py +600 -0
- huaweicloudsdkdns/v2/model/restore_ptr_record_request.py +3 -3
- huaweicloudsdkdns/v2/model/router.py +6 -6
- huaweicloudsdkdns/v2/model/router_with_status.py +6 -6
- huaweicloudsdkdns/v2/model/set_record_sets_status_request.py +4 -4
- huaweicloudsdkdns/v2/model/{set_record_sets_status_req.py → set_record_sets_status_request_body.py} +7 -7
- huaweicloudsdkdns/v2/model/show_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/show_ptr_record_set_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +35 -35
- huaweicloudsdkdns/v2/model/show_resource_tag_response.py +3 -32
- huaweicloudsdkdns/v2/model/tag_values.py +6 -6
- huaweicloudsdkdns/v2/model/update_custom_line_request.py +7 -7
- huaweicloudsdkdns/v2/model/{update_customs_line_req.py → update_custom_line_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/update_line_groups_request.py +7 -7
- huaweicloudsdkdns/v2/model/{update_line_groups_body.py → update_line_groups_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +3 -3
- huaweicloudsdkdns/v2/model/update_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/update_ptr_record_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_ptr_record_response.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_info.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +6 -6
- huaweicloudsdkdns/v2/model/update_record_set_req.py +4 -2
- huaweicloudsdkdns/v2/model/zone_data.py +517 -0
- huaweicloudsdkdns/v2/region/dns_region.py +21 -0
- {huaweicloudsdkdns-3.1.86.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdns-3.1.86.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/RECORD +81 -66
- {huaweicloudsdkdns-3.1.86.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdns-3.1.86.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.1.86.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchSetRecordSetsStatusRequest:
|
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
|
+
'body': 'BatchSetRecordSetsStatusRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""BatchSetRecordSetsStatusRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the BatchSetRecordSetsStatusRequest
|
33
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchSetRecordSetsStatusRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
"""Gets the body of this BatchSetRecordSetsStatusRequest.
|
47
|
+
|
48
|
+
:return: The body of this BatchSetRecordSetsStatusRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkdns.v2.BatchSetRecordSetsStatusRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this BatchSetRecordSetsStatusRequest.
|
56
|
+
|
57
|
+
:param body: The body of this BatchSetRecordSetsStatusRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchSetRecordSetsStatusRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, BatchSetRecordSetsStatusRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchSetRecordSetsStatusRequestBody:
|
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
|
+
'status': 'str',
|
21
|
+
'recordset_ids': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'status': 'status',
|
26
|
+
'recordset_ids': 'recordset_ids'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, status=None, recordset_ids=None):
|
30
|
+
"""BatchSetRecordSetsStatusRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param status: 待设置Record Set状态,当前仅支持DISABLE或ENABLE。
|
35
|
+
:type status: str
|
36
|
+
:param recordset_ids: 待设置Record Set ID列表。 最多支持50个。
|
37
|
+
:type recordset_ids: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._status = None
|
43
|
+
self._recordset_ids = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.status = status
|
47
|
+
self.recordset_ids = recordset_ids
|
48
|
+
|
49
|
+
@property
|
50
|
+
def status(self):
|
51
|
+
"""Gets the status of this BatchSetRecordSetsStatusRequestBody.
|
52
|
+
|
53
|
+
待设置Record Set状态,当前仅支持DISABLE或ENABLE。
|
54
|
+
|
55
|
+
:return: The status of this BatchSetRecordSetsStatusRequestBody.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._status
|
59
|
+
|
60
|
+
@status.setter
|
61
|
+
def status(self, status):
|
62
|
+
"""Sets the status of this BatchSetRecordSetsStatusRequestBody.
|
63
|
+
|
64
|
+
待设置Record Set状态,当前仅支持DISABLE或ENABLE。
|
65
|
+
|
66
|
+
:param status: The status of this BatchSetRecordSetsStatusRequestBody.
|
67
|
+
:type status: str
|
68
|
+
"""
|
69
|
+
self._status = status
|
70
|
+
|
71
|
+
@property
|
72
|
+
def recordset_ids(self):
|
73
|
+
"""Gets the recordset_ids of this BatchSetRecordSetsStatusRequestBody.
|
74
|
+
|
75
|
+
待设置Record Set ID列表。 最多支持50个。
|
76
|
+
|
77
|
+
:return: The recordset_ids of this BatchSetRecordSetsStatusRequestBody.
|
78
|
+
:rtype: list[str]
|
79
|
+
"""
|
80
|
+
return self._recordset_ids
|
81
|
+
|
82
|
+
@recordset_ids.setter
|
83
|
+
def recordset_ids(self, recordset_ids):
|
84
|
+
"""Sets the recordset_ids of this BatchSetRecordSetsStatusRequestBody.
|
85
|
+
|
86
|
+
待设置Record Set ID列表。 最多支持50个。
|
87
|
+
|
88
|
+
:param recordset_ids: The recordset_ids of this BatchSetRecordSetsStatusRequestBody.
|
89
|
+
:type recordset_ids: list[str]
|
90
|
+
"""
|
91
|
+
self._recordset_ids = recordset_ids
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, BatchSetRecordSetsStatusRequestBody):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,166 @@
|
|
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 BatchSetRecordSetsStatusResponse(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
|
+
'links': 'Link',
|
22
|
+
'recordsets': 'list[RecordsetData]',
|
23
|
+
'metadata': 'Metadata'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'links': 'links',
|
28
|
+
'recordsets': 'recordsets',
|
29
|
+
'metadata': 'metadata'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, links=None, recordsets=None, metadata=None):
|
33
|
+
"""BatchSetRecordSetsStatusResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param links:
|
38
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
39
|
+
:param recordsets: 设置record set的列表响应。
|
40
|
+
:type recordsets: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
41
|
+
:param metadata:
|
42
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(BatchSetRecordSetsStatusResponse, self).__init__()
|
46
|
+
|
47
|
+
self._links = None
|
48
|
+
self._recordsets = None
|
49
|
+
self._metadata = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if links is not None:
|
53
|
+
self.links = links
|
54
|
+
if recordsets is not None:
|
55
|
+
self.recordsets = recordsets
|
56
|
+
if metadata is not None:
|
57
|
+
self.metadata = metadata
|
58
|
+
|
59
|
+
@property
|
60
|
+
def links(self):
|
61
|
+
"""Gets the links of this BatchSetRecordSetsStatusResponse.
|
62
|
+
|
63
|
+
:return: The links of this BatchSetRecordSetsStatusResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Link`
|
65
|
+
"""
|
66
|
+
return self._links
|
67
|
+
|
68
|
+
@links.setter
|
69
|
+
def links(self, links):
|
70
|
+
"""Sets the links of this BatchSetRecordSetsStatusResponse.
|
71
|
+
|
72
|
+
:param links: The links of this BatchSetRecordSetsStatusResponse.
|
73
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
74
|
+
"""
|
75
|
+
self._links = links
|
76
|
+
|
77
|
+
@property
|
78
|
+
def recordsets(self):
|
79
|
+
"""Gets the recordsets of this BatchSetRecordSetsStatusResponse.
|
80
|
+
|
81
|
+
设置record set的列表响应。
|
82
|
+
|
83
|
+
:return: The recordsets of this BatchSetRecordSetsStatusResponse.
|
84
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
85
|
+
"""
|
86
|
+
return self._recordsets
|
87
|
+
|
88
|
+
@recordsets.setter
|
89
|
+
def recordsets(self, recordsets):
|
90
|
+
"""Sets the recordsets of this BatchSetRecordSetsStatusResponse.
|
91
|
+
|
92
|
+
设置record set的列表响应。
|
93
|
+
|
94
|
+
:param recordsets: The recordsets of this BatchSetRecordSetsStatusResponse.
|
95
|
+
:type recordsets: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
96
|
+
"""
|
97
|
+
self._recordsets = recordsets
|
98
|
+
|
99
|
+
@property
|
100
|
+
def metadata(self):
|
101
|
+
"""Gets the metadata of this BatchSetRecordSetsStatusResponse.
|
102
|
+
|
103
|
+
:return: The metadata of this BatchSetRecordSetsStatusResponse.
|
104
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Metadata`
|
105
|
+
"""
|
106
|
+
return self._metadata
|
107
|
+
|
108
|
+
@metadata.setter
|
109
|
+
def metadata(self, metadata):
|
110
|
+
"""Sets the metadata of this BatchSetRecordSetsStatusResponse.
|
111
|
+
|
112
|
+
:param metadata: The metadata of this BatchSetRecordSetsStatusResponse.
|
113
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
114
|
+
"""
|
115
|
+
self._metadata = metadata
|
116
|
+
|
117
|
+
def to_dict(self):
|
118
|
+
"""Returns the model properties as a dict"""
|
119
|
+
result = {}
|
120
|
+
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
122
|
+
value = getattr(self, attr)
|
123
|
+
if isinstance(value, list):
|
124
|
+
result[attr] = list(map(
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
126
|
+
value
|
127
|
+
))
|
128
|
+
elif hasattr(value, "to_dict"):
|
129
|
+
result[attr] = value.to_dict()
|
130
|
+
elif isinstance(value, dict):
|
131
|
+
result[attr] = dict(map(
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
134
|
+
value.items()
|
135
|
+
))
|
136
|
+
else:
|
137
|
+
if attr in self.sensitive_list:
|
138
|
+
result[attr] = "****"
|
139
|
+
else:
|
140
|
+
result[attr] = value
|
141
|
+
|
142
|
+
return result
|
143
|
+
|
144
|
+
def to_str(self):
|
145
|
+
"""Returns the string representation of the model"""
|
146
|
+
import simplejson as json
|
147
|
+
if six.PY2:
|
148
|
+
import sys
|
149
|
+
reload(sys)
|
150
|
+
sys.setdefaultencoding("utf-8")
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
152
|
+
|
153
|
+
def __repr__(self):
|
154
|
+
"""For `print`"""
|
155
|
+
return self.to_str()
|
156
|
+
|
157
|
+
def __eq__(self, other):
|
158
|
+
"""Returns true if both objects are equal"""
|
159
|
+
if not isinstance(other, BatchSetRecordSetsStatusResponse):
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
"""Returns true if both objects are not equal"""
|
166
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchSetZonesStatusRequest:
|
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
|
+
'body': 'BatchSetZonesStatusRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""BatchSetZonesStatusRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the BatchSetZonesStatusRequest
|
33
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchSetZonesStatusRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
"""Gets the body of this BatchSetZonesStatusRequest.
|
47
|
+
|
48
|
+
:return: The body of this BatchSetZonesStatusRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkdns.v2.BatchSetZonesStatusRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this BatchSetZonesStatusRequest.
|
56
|
+
|
57
|
+
:param body: The body of this BatchSetZonesStatusRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchSetZonesStatusRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, BatchSetZonesStatusRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchSetZonesStatusRequestBody:
|
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
|
+
'status': 'str',
|
21
|
+
'zone_ids': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'status': 'status',
|
26
|
+
'zone_ids': 'zone_ids'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, status=None, zone_ids=None):
|
30
|
+
"""BatchSetZonesStatusRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param status: 待设置Zone状态,当前仅支持DISABLE或ENABLE。
|
35
|
+
:type status: str
|
36
|
+
:param zone_ids: 待设置Zone ID列表。 最多支持50个。
|
37
|
+
:type zone_ids: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._status = None
|
43
|
+
self._zone_ids = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.status = status
|
47
|
+
self.zone_ids = zone_ids
|
48
|
+
|
49
|
+
@property
|
50
|
+
def status(self):
|
51
|
+
"""Gets the status of this BatchSetZonesStatusRequestBody.
|
52
|
+
|
53
|
+
待设置Zone状态,当前仅支持DISABLE或ENABLE。
|
54
|
+
|
55
|
+
:return: The status of this BatchSetZonesStatusRequestBody.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._status
|
59
|
+
|
60
|
+
@status.setter
|
61
|
+
def status(self, status):
|
62
|
+
"""Sets the status of this BatchSetZonesStatusRequestBody.
|
63
|
+
|
64
|
+
待设置Zone状态,当前仅支持DISABLE或ENABLE。
|
65
|
+
|
66
|
+
:param status: The status of this BatchSetZonesStatusRequestBody.
|
67
|
+
:type status: str
|
68
|
+
"""
|
69
|
+
self._status = status
|
70
|
+
|
71
|
+
@property
|
72
|
+
def zone_ids(self):
|
73
|
+
"""Gets the zone_ids of this BatchSetZonesStatusRequestBody.
|
74
|
+
|
75
|
+
待设置Zone ID列表。 最多支持50个。
|
76
|
+
|
77
|
+
:return: The zone_ids of this BatchSetZonesStatusRequestBody.
|
78
|
+
:rtype: list[str]
|
79
|
+
"""
|
80
|
+
return self._zone_ids
|
81
|
+
|
82
|
+
@zone_ids.setter
|
83
|
+
def zone_ids(self, zone_ids):
|
84
|
+
"""Sets the zone_ids of this BatchSetZonesStatusRequestBody.
|
85
|
+
|
86
|
+
待设置Zone ID列表。 最多支持50个。
|
87
|
+
|
88
|
+
:param zone_ids: The zone_ids of this BatchSetZonesStatusRequestBody.
|
89
|
+
:type zone_ids: list[str]
|
90
|
+
"""
|
91
|
+
self._zone_ids = zone_ids
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, BatchSetZonesStatusRequestBody):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|