huaweicloudsdkdns 3.1.131__py2.py3-none-any.whl → 3.1.133__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 +298 -10
- huaweicloudsdkdns/v2/dns_client.py +298 -10
- huaweicloudsdkdns/v2/model/__init__.py +20 -5
- 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_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_private_zone_req.py +3 -3
- huaweicloudsdkdns/v2/model/create_private_zone_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_public_zone_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_public_zone_response.py +3 -3
- 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 +3 -3
- huaweicloudsdkdns/v2/model/delete_public_zone_response.py +3 -3
- 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 +97 -10
- 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 +3 -3
- huaweicloudsdkdns/v2/model/public_zone_resp.py +3 -3
- huaweicloudsdkdns/v2/model/recordset_data.py +600 -0
- 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 +3 -3
- huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_response.py +3 -3
- 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/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 +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 +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +3 -3
- huaweicloudsdkdns/v2/model/zone_data.py +517 -0
- {huaweicloudsdkdns-3.1.131.dist-info → huaweicloudsdkdns-3.1.133.dist-info}/METADATA +2 -2
- {huaweicloudsdkdns-3.1.131.dist-info → huaweicloudsdkdns-3.1.133.dist-info}/RECORD +69 -54
- {huaweicloudsdkdns-3.1.131.dist-info → huaweicloudsdkdns-3.1.133.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.1.131.dist-info → huaweicloudsdkdns-3.1.133.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdns-3.1.131.dist-info → huaweicloudsdkdns-3.1.133.dist-info}/top_level.txt +0 -0
@@ -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 BatchDeleteRecordSetsRequestBody:
|
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
|
+
'zone_type': 'str',
|
21
|
+
'recordset_ids': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'zone_type': 'zone_type',
|
26
|
+
'recordset_ids': 'recordset_ids'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, zone_type=None, recordset_ids=None):
|
30
|
+
"""BatchDeleteRecordSetsRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param zone_type: Zone的类型,取值为public或private。
|
35
|
+
:type zone_type: str
|
36
|
+
:param recordset_ids: 待删除的Record Set ID列表。 最多支持100个。
|
37
|
+
:type recordset_ids: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._zone_type = None
|
43
|
+
self._recordset_ids = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.zone_type = zone_type
|
47
|
+
self.recordset_ids = recordset_ids
|
48
|
+
|
49
|
+
@property
|
50
|
+
def zone_type(self):
|
51
|
+
"""Gets the zone_type of this BatchDeleteRecordSetsRequestBody.
|
52
|
+
|
53
|
+
Zone的类型,取值为public或private。
|
54
|
+
|
55
|
+
:return: The zone_type of this BatchDeleteRecordSetsRequestBody.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._zone_type
|
59
|
+
|
60
|
+
@zone_type.setter
|
61
|
+
def zone_type(self, zone_type):
|
62
|
+
"""Sets the zone_type of this BatchDeleteRecordSetsRequestBody.
|
63
|
+
|
64
|
+
Zone的类型,取值为public或private。
|
65
|
+
|
66
|
+
:param zone_type: The zone_type of this BatchDeleteRecordSetsRequestBody.
|
67
|
+
:type zone_type: str
|
68
|
+
"""
|
69
|
+
self._zone_type = zone_type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def recordset_ids(self):
|
73
|
+
"""Gets the recordset_ids of this BatchDeleteRecordSetsRequestBody.
|
74
|
+
|
75
|
+
待删除的Record Set ID列表。 最多支持100个。
|
76
|
+
|
77
|
+
:return: The recordset_ids of this BatchDeleteRecordSetsRequestBody.
|
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 BatchDeleteRecordSetsRequestBody.
|
85
|
+
|
86
|
+
待删除的Record Set ID列表。 最多支持100个。
|
87
|
+
|
88
|
+
:param recordset_ids: The recordset_ids of this BatchDeleteRecordSetsRequestBody.
|
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, BatchDeleteRecordSetsRequestBody):
|
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,141 @@
|
|
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 BatchDeleteRecordSetsResponse(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
|
+
'recordsets': 'list[RecordsetData]',
|
22
|
+
'metadata': 'Metadata'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'recordsets': 'recordsets',
|
27
|
+
'metadata': 'metadata'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, recordsets=None, metadata=None):
|
31
|
+
"""BatchDeleteRecordSetsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param recordsets: 删除record set的列表响应。
|
36
|
+
:type recordsets: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
37
|
+
:param metadata:
|
38
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(BatchDeleteRecordSetsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._recordsets = None
|
44
|
+
self._metadata = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if recordsets is not None:
|
48
|
+
self.recordsets = recordsets
|
49
|
+
if metadata is not None:
|
50
|
+
self.metadata = metadata
|
51
|
+
|
52
|
+
@property
|
53
|
+
def recordsets(self):
|
54
|
+
"""Gets the recordsets of this BatchDeleteRecordSetsResponse.
|
55
|
+
|
56
|
+
删除record set的列表响应。
|
57
|
+
|
58
|
+
:return: The recordsets of this BatchDeleteRecordSetsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
60
|
+
"""
|
61
|
+
return self._recordsets
|
62
|
+
|
63
|
+
@recordsets.setter
|
64
|
+
def recordsets(self, recordsets):
|
65
|
+
"""Sets the recordsets of this BatchDeleteRecordSetsResponse.
|
66
|
+
|
67
|
+
删除record set的列表响应。
|
68
|
+
|
69
|
+
:param recordsets: The recordsets of this BatchDeleteRecordSetsResponse.
|
70
|
+
:type recordsets: list[:class:`huaweicloudsdkdns.v2.RecordsetData`]
|
71
|
+
"""
|
72
|
+
self._recordsets = recordsets
|
73
|
+
|
74
|
+
@property
|
75
|
+
def metadata(self):
|
76
|
+
"""Gets the metadata of this BatchDeleteRecordSetsResponse.
|
77
|
+
|
78
|
+
:return: The metadata of this BatchDeleteRecordSetsResponse.
|
79
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Metadata`
|
80
|
+
"""
|
81
|
+
return self._metadata
|
82
|
+
|
83
|
+
@metadata.setter
|
84
|
+
def metadata(self, metadata):
|
85
|
+
"""Sets the metadata of this BatchDeleteRecordSetsResponse.
|
86
|
+
|
87
|
+
:param metadata: The metadata of this BatchDeleteRecordSetsResponse.
|
88
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
89
|
+
"""
|
90
|
+
self._metadata = metadata
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, BatchDeleteRecordSetsResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
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 BatchDeleteZonesRequest:
|
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': 'BatchDeleteZonesRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""BatchDeleteZonesRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the BatchDeleteZonesRequest
|
33
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchDeleteZonesRequestBody`
|
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 BatchDeleteZonesRequest.
|
47
|
+
|
48
|
+
:return: The body of this BatchDeleteZonesRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkdns.v2.BatchDeleteZonesRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this BatchDeleteZonesRequest.
|
56
|
+
|
57
|
+
:param body: The body of this BatchDeleteZonesRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkdns.v2.BatchDeleteZonesRequestBody`
|
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, BatchDeleteZonesRequest):
|
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 BatchDeleteZonesRequestBody:
|
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
|
+
'zone_type': 'str',
|
21
|
+
'zone_ids': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'zone_type': 'zone_type',
|
26
|
+
'zone_ids': 'zone_ids'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, zone_type=None, zone_ids=None):
|
30
|
+
"""BatchDeleteZonesRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param zone_type: 待删除zone类型,当前仅支持 public 或 private。
|
35
|
+
:type zone_type: str
|
36
|
+
:param zone_ids: 待删除Zone ID列表。 最多支持50个。
|
37
|
+
:type zone_ids: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._zone_type = None
|
43
|
+
self._zone_ids = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.zone_type = zone_type
|
47
|
+
self.zone_ids = zone_ids
|
48
|
+
|
49
|
+
@property
|
50
|
+
def zone_type(self):
|
51
|
+
"""Gets the zone_type of this BatchDeleteZonesRequestBody.
|
52
|
+
|
53
|
+
待删除zone类型,当前仅支持 public 或 private。
|
54
|
+
|
55
|
+
:return: The zone_type of this BatchDeleteZonesRequestBody.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._zone_type
|
59
|
+
|
60
|
+
@zone_type.setter
|
61
|
+
def zone_type(self, zone_type):
|
62
|
+
"""Sets the zone_type of this BatchDeleteZonesRequestBody.
|
63
|
+
|
64
|
+
待删除zone类型,当前仅支持 public 或 private。
|
65
|
+
|
66
|
+
:param zone_type: The zone_type of this BatchDeleteZonesRequestBody.
|
67
|
+
:type zone_type: str
|
68
|
+
"""
|
69
|
+
self._zone_type = zone_type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def zone_ids(self):
|
73
|
+
"""Gets the zone_ids of this BatchDeleteZonesRequestBody.
|
74
|
+
|
75
|
+
待删除Zone ID列表。 最多支持50个。
|
76
|
+
|
77
|
+
:return: The zone_ids of this BatchDeleteZonesRequestBody.
|
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 BatchDeleteZonesRequestBody.
|
85
|
+
|
86
|
+
待删除Zone ID列表。 最多支持50个。
|
87
|
+
|
88
|
+
:param zone_ids: The zone_ids of this BatchDeleteZonesRequestBody.
|
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, BatchDeleteZonesRequestBody):
|
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,141 @@
|
|
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 BatchDeleteZonesResponse(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
|
+
'zones': 'list[ZoneData]',
|
22
|
+
'metadata': 'Metadata'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'zones': 'zones',
|
27
|
+
'metadata': 'metadata'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, zones=None, metadata=None):
|
31
|
+
"""BatchDeleteZonesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param zones: 删除zone的列表响应。
|
36
|
+
:type zones: list[:class:`huaweicloudsdkdns.v2.ZoneData`]
|
37
|
+
:param metadata:
|
38
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(BatchDeleteZonesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._zones = None
|
44
|
+
self._metadata = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if zones is not None:
|
48
|
+
self.zones = zones
|
49
|
+
if metadata is not None:
|
50
|
+
self.metadata = metadata
|
51
|
+
|
52
|
+
@property
|
53
|
+
def zones(self):
|
54
|
+
"""Gets the zones of this BatchDeleteZonesResponse.
|
55
|
+
|
56
|
+
删除zone的列表响应。
|
57
|
+
|
58
|
+
:return: The zones of this BatchDeleteZonesResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkdns.v2.ZoneData`]
|
60
|
+
"""
|
61
|
+
return self._zones
|
62
|
+
|
63
|
+
@zones.setter
|
64
|
+
def zones(self, zones):
|
65
|
+
"""Sets the zones of this BatchDeleteZonesResponse.
|
66
|
+
|
67
|
+
删除zone的列表响应。
|
68
|
+
|
69
|
+
:param zones: The zones of this BatchDeleteZonesResponse.
|
70
|
+
:type zones: list[:class:`huaweicloudsdkdns.v2.ZoneData`]
|
71
|
+
"""
|
72
|
+
self._zones = zones
|
73
|
+
|
74
|
+
@property
|
75
|
+
def metadata(self):
|
76
|
+
"""Gets the metadata of this BatchDeleteZonesResponse.
|
77
|
+
|
78
|
+
:return: The metadata of this BatchDeleteZonesResponse.
|
79
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Metadata`
|
80
|
+
"""
|
81
|
+
return self._metadata
|
82
|
+
|
83
|
+
@metadata.setter
|
84
|
+
def metadata(self, metadata):
|
85
|
+
"""Sets the metadata of this BatchDeleteZonesResponse.
|
86
|
+
|
87
|
+
:param metadata: The metadata of this BatchDeleteZonesResponse.
|
88
|
+
:type metadata: :class:`huaweicloudsdkdns.v2.Metadata`
|
89
|
+
"""
|
90
|
+
self._metadata = metadata
|
91
|
+
|
92
|
+
def to_dict(self):
|
93
|
+
"""Returns the model properties as a dict"""
|
94
|
+
result = {}
|
95
|
+
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
97
|
+
value = getattr(self, attr)
|
98
|
+
if isinstance(value, list):
|
99
|
+
result[attr] = list(map(
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
101
|
+
value
|
102
|
+
))
|
103
|
+
elif hasattr(value, "to_dict"):
|
104
|
+
result[attr] = value.to_dict()
|
105
|
+
elif isinstance(value, dict):
|
106
|
+
result[attr] = dict(map(
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
109
|
+
value.items()
|
110
|
+
))
|
111
|
+
else:
|
112
|
+
if attr in self.sensitive_list:
|
113
|
+
result[attr] = "****"
|
114
|
+
else:
|
115
|
+
result[attr] = value
|
116
|
+
|
117
|
+
return result
|
118
|
+
|
119
|
+
def to_str(self):
|
120
|
+
"""Returns the string representation of the model"""
|
121
|
+
import simplejson as json
|
122
|
+
if six.PY2:
|
123
|
+
import sys
|
124
|
+
reload(sys)
|
125
|
+
sys.setdefaultencoding("utf-8")
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
127
|
+
|
128
|
+
def __repr__(self):
|
129
|
+
"""For `print`"""
|
130
|
+
return self.to_str()
|
131
|
+
|
132
|
+
def __eq__(self, other):
|
133
|
+
"""Returns true if both objects are equal"""
|
134
|
+
if not isinstance(other, BatchDeleteZonesResponse):
|
135
|
+
return False
|
136
|
+
|
137
|
+
return self.__dict__ == other.__dict__
|
138
|
+
|
139
|
+
def __ne__(self, other):
|
140
|
+
"""Returns true if both objects are not equal"""
|
141
|
+
return not self == other
|