baiducloud-python-sdk-dns 0.0.1__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.
- baiducloud_python_sdk_dns/__init__.py +5 -0
- baiducloud_python_sdk_dns/api/__init__.py +0 -0
- baiducloud_python_sdk_dns/api/dns_client.py +534 -0
- baiducloud_python_sdk_dns/models/__init__.py +31 -0
- baiducloud_python_sdk_dns/models/add_domain_name_request.py +66 -0
- baiducloud_python_sdk_dns/models/add_line_group_request.py +74 -0
- baiducloud_python_sdk_dns/models/add_parsing_records_request.py +122 -0
- baiducloud_python_sdk_dns/models/billing.py +68 -0
- baiducloud_python_sdk_dns/models/billing_for_renew.py +60 -0
- baiducloud_python_sdk_dns/models/delete_line_group_request.py +64 -0
- baiducloud_python_sdk_dns/models/delete_parsing_records_request.py +70 -0
- baiducloud_python_sdk_dns/models/domain_name_renewal_request.py +79 -0
- baiducloud_python_sdk_dns/models/line.py +90 -0
- baiducloud_python_sdk_dns/models/modify_parsing_records_request.py +120 -0
- baiducloud_python_sdk_dns/models/modify_the_parsing_record_status_request.py +76 -0
- baiducloud_python_sdk_dns/models/public_record.py +133 -0
- baiducloud_python_sdk_dns/models/public_zone.py +110 -0
- baiducloud_python_sdk_dns/models/purchase_a_paid_domain_name_request.py +83 -0
- baiducloud_python_sdk_dns/models/query_and_parse_record_list_request.py +82 -0
- baiducloud_python_sdk_dns/models/query_and_parse_record_list_response.py +94 -0
- baiducloud_python_sdk_dns/models/query_domain_name_list_request.py +70 -0
- baiducloud_python_sdk_dns/models/query_domain_name_list_response.py +94 -0
- baiducloud_python_sdk_dns/models/query_the_list_of_line_groups_request.py +64 -0
- baiducloud_python_sdk_dns/models/query_the_list_of_line_groups_response.py +94 -0
- baiducloud_python_sdk_dns/models/remove_domain_name_request.py +64 -0
- baiducloud_python_sdk_dns/models/reservation.py +58 -0
- baiducloud_python_sdk_dns/models/tag_model.py +66 -0
- baiducloud_python_sdk_dns/models/update_line_group_request.py +80 -0
- baiducloud_python_sdk_dns/models/upgrade_the_free_domain_name_to_the_universal_version_request.py +81 -0
- baiducloud_python_sdk_dns-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_dns-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_dns-0.0.1.dist-info/RECORD +34 -0
- baiducloud_python_sdk_dns-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_dns-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for AddLineGroupRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AddLineGroupRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for AddLineGroupRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, name, lines, client_token=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize AddLineGroupRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param client_token: client_token parameter
|
|
20
|
+
:type client_token: str (optional)
|
|
21
|
+
|
|
22
|
+
:param name: 线路组名称,长度不超过12个字符。
|
|
23
|
+
:type name: str (required)
|
|
24
|
+
|
|
25
|
+
:param lines: 解析线路。
|
|
26
|
+
:type lines: List[str] (required)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.client_token = client_token
|
|
30
|
+
self.name = name
|
|
31
|
+
self.lines = lines
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.name is not None:
|
|
47
|
+
result['name'] = self.name
|
|
48
|
+
if self.lines is not None:
|
|
49
|
+
result['lines'] = self.lines
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def from_dict(self, m):
|
|
53
|
+
"""
|
|
54
|
+
Populate the request entity from a dictionary.
|
|
55
|
+
|
|
56
|
+
Nested dictionaries are recursively converted to model objects.
|
|
57
|
+
|
|
58
|
+
:param m: Dictionary containing request data
|
|
59
|
+
:type m: dict
|
|
60
|
+
|
|
61
|
+
:return: Self reference for method chaining
|
|
62
|
+
:rtype: AddLineGroupRequest
|
|
63
|
+
|
|
64
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
65
|
+
:raises ValueError: If nested model conversion fails
|
|
66
|
+
"""
|
|
67
|
+
m = m or dict()
|
|
68
|
+
if m.get('clientToken') is not None:
|
|
69
|
+
self.client_token = m.get('clientToken')
|
|
70
|
+
if m.get('name') is not None:
|
|
71
|
+
self.name = m.get('name')
|
|
72
|
+
if m.get('lines') is not None:
|
|
73
|
+
self.lines = m.get('lines')
|
|
74
|
+
return self
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for AddParsingRecordsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AddParsingRecordsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for AddParsingRecordsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self, zone_name, rr, type, value, client_token=None, ttl=None, line=None, description=None, priority=None
|
|
17
|
+
):
|
|
18
|
+
"""
|
|
19
|
+
Initialize AddParsingRecordsRequest request entity.
|
|
20
|
+
|
|
21
|
+
:param zone_name: zone_name parameter
|
|
22
|
+
:type zone_name: str (required)
|
|
23
|
+
|
|
24
|
+
:param client_token: client_token parameter
|
|
25
|
+
:type client_token: str (optional)
|
|
26
|
+
|
|
27
|
+
:param rr: 主机记录,例如“www”。记录值和zone的name长度加在一起不能超过255字符。
|
|
28
|
+
:type rr: str (required)
|
|
29
|
+
|
|
30
|
+
:param type: 解析记录类型,包含:“A”, “CNAME”, “MX”, “TXT”, “NS”, “AAAA”, “SRV”。
|
|
31
|
+
:type type: str (required)
|
|
32
|
+
|
|
33
|
+
:param value: value parameter
|
|
34
|
+
:type value: str (required)
|
|
35
|
+
|
|
36
|
+
:param ttl: 解析记录在本地DNS服务器的缓存时间(单位:秒),基础版默认300秒,普惠版默认120秒,企业版默认1秒。取值为正整数。
|
|
37
|
+
:type ttl: int (optional)
|
|
38
|
+
|
|
39
|
+
:param line: line parameter
|
|
40
|
+
:type line: str (optional)
|
|
41
|
+
|
|
42
|
+
:param description: 描述,长度不超过255个字符。
|
|
43
|
+
:type description: str (optional)
|
|
44
|
+
|
|
45
|
+
:param priority: MX记录的优先级,取值范围:[0,50]。记录类型为MX记录时,此参数必选。
|
|
46
|
+
:type priority: int (optional)
|
|
47
|
+
"""
|
|
48
|
+
super().__init__()
|
|
49
|
+
self.zone_name = zone_name
|
|
50
|
+
self.client_token = client_token
|
|
51
|
+
self.rr = rr
|
|
52
|
+
self.type = type
|
|
53
|
+
self.value = value
|
|
54
|
+
self.ttl = ttl
|
|
55
|
+
self.line = line
|
|
56
|
+
self.description = description
|
|
57
|
+
self.priority = priority
|
|
58
|
+
|
|
59
|
+
def to_dict(self):
|
|
60
|
+
"""
|
|
61
|
+
Convert the request entity to a dictionary representation.
|
|
62
|
+
|
|
63
|
+
Nested model objects are recursively converted to dictionaries.
|
|
64
|
+
|
|
65
|
+
:return: Dictionary representation of the request
|
|
66
|
+
:rtype: dict
|
|
67
|
+
"""
|
|
68
|
+
_map = super().to_dict()
|
|
69
|
+
if _map is not None:
|
|
70
|
+
return _map
|
|
71
|
+
result = dict()
|
|
72
|
+
if self.rr is not None:
|
|
73
|
+
result['rr'] = self.rr
|
|
74
|
+
if self.type is not None:
|
|
75
|
+
result['type'] = self.type
|
|
76
|
+
if self.value is not None:
|
|
77
|
+
result['value'] = self.value
|
|
78
|
+
if self.ttl is not None:
|
|
79
|
+
result['ttl'] = self.ttl
|
|
80
|
+
if self.line is not None:
|
|
81
|
+
result['line'] = self.line
|
|
82
|
+
if self.description is not None:
|
|
83
|
+
result['description'] = self.description
|
|
84
|
+
if self.priority is not None:
|
|
85
|
+
result['priority'] = self.priority
|
|
86
|
+
return result
|
|
87
|
+
|
|
88
|
+
def from_dict(self, m):
|
|
89
|
+
"""
|
|
90
|
+
Populate the request entity from a dictionary.
|
|
91
|
+
|
|
92
|
+
Nested dictionaries are recursively converted to model objects.
|
|
93
|
+
|
|
94
|
+
:param m: Dictionary containing request data
|
|
95
|
+
:type m: dict
|
|
96
|
+
|
|
97
|
+
:return: Self reference for method chaining
|
|
98
|
+
:rtype: AddParsingRecordsRequest
|
|
99
|
+
|
|
100
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
101
|
+
:raises ValueError: If nested model conversion fails
|
|
102
|
+
"""
|
|
103
|
+
m = m or dict()
|
|
104
|
+
if m.get('zoneName') is not None:
|
|
105
|
+
self.zone_name = m.get('zoneName')
|
|
106
|
+
if m.get('clientToken') is not None:
|
|
107
|
+
self.client_token = m.get('clientToken')
|
|
108
|
+
if m.get('rr') is not None:
|
|
109
|
+
self.rr = m.get('rr')
|
|
110
|
+
if m.get('type') is not None:
|
|
111
|
+
self.type = m.get('type')
|
|
112
|
+
if m.get('value') is not None:
|
|
113
|
+
self.value = m.get('value')
|
|
114
|
+
if m.get('ttl') is not None:
|
|
115
|
+
self.ttl = m.get('ttl')
|
|
116
|
+
if m.get('line') is not None:
|
|
117
|
+
self.line = m.get('line')
|
|
118
|
+
if m.get('description') is not None:
|
|
119
|
+
self.description = m.get('description')
|
|
120
|
+
if m.get('priority') is not None:
|
|
121
|
+
self.priority = m.get('priority')
|
|
122
|
+
return self
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Billing information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_dns.models.reservation import Reservation
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Billing(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
Billing
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, payment_timing=None, reservation=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize Billing instance.
|
|
18
|
+
|
|
19
|
+
:param payment_timing: 付款时间,预支付(Prepaid)和后支付(Postpaid),目前只支持预支付。
|
|
20
|
+
:type payment_timing: str (optional)
|
|
21
|
+
|
|
22
|
+
:param reservation: reservation attribute
|
|
23
|
+
:type reservation: Reservation (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.payment_timing = payment_timing
|
|
27
|
+
self.reservation = reservation
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the model instance to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the model
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.payment_timing is not None:
|
|
43
|
+
result['paymentTiming'] = self.payment_timing
|
|
44
|
+
if self.reservation is not None:
|
|
45
|
+
result['reservation'] = self.reservation.to_dict()
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the model instance from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing model data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: Billing
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary type
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('paymentTiming') is not None:
|
|
65
|
+
self.payment_timing = m.get('paymentTiming')
|
|
66
|
+
if m.get('reservation') is not None:
|
|
67
|
+
self.reservation = Reservation().from_dict(m.get('reservation'))
|
|
68
|
+
return self
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
BillingForRenew information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_dns.models.reservation import Reservation
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BillingForRenew(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
BillingForRenew
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, reservation=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize BillingForRenew instance.
|
|
18
|
+
|
|
19
|
+
:param reservation: reservation attribute
|
|
20
|
+
:type reservation: Reservation (optional)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.reservation = reservation
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the model instance to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the model
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
if self.reservation is not None:
|
|
39
|
+
result['reservation'] = self.reservation.to_dict()
|
|
40
|
+
return result
|
|
41
|
+
|
|
42
|
+
def from_dict(self, m):
|
|
43
|
+
"""
|
|
44
|
+
Populate the model instance from a dictionary.
|
|
45
|
+
|
|
46
|
+
Nested dictionaries are recursively converted to model objects.
|
|
47
|
+
|
|
48
|
+
:param m: Dictionary containing model data
|
|
49
|
+
:type m: dict
|
|
50
|
+
|
|
51
|
+
:return: Self reference for method chaining
|
|
52
|
+
:rtype: BillingForRenew
|
|
53
|
+
|
|
54
|
+
:raises TypeError: If input is not a dictionary type
|
|
55
|
+
:raises ValueError: If nested model conversion fails
|
|
56
|
+
"""
|
|
57
|
+
m = m or dict()
|
|
58
|
+
if m.get('reservation') is not None:
|
|
59
|
+
self.reservation = Reservation().from_dict(m.get('reservation'))
|
|
60
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteLineGroupRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteLineGroupRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteLineGroupRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, line_id, client_token=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteLineGroupRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param line_id: line_id parameter
|
|
20
|
+
:type line_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param client_token: client_token parameter
|
|
23
|
+
:type client_token: str (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.line_id = line_id
|
|
27
|
+
self.client_token = client_token
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: DeleteLineGroupRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('lineId') is not None:
|
|
61
|
+
self.line_id = m.get('lineId')
|
|
62
|
+
if m.get('clientToken') is not None:
|
|
63
|
+
self.client_token = m.get('clientToken')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteParsingRecordsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteParsingRecordsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteParsingRecordsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, zone_name, record_id, client_token=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteParsingRecordsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param zone_name: zone_name parameter
|
|
20
|
+
:type zone_name: str (required)
|
|
21
|
+
|
|
22
|
+
:param record_id: record_id parameter
|
|
23
|
+
:type record_id: str (required)
|
|
24
|
+
|
|
25
|
+
:param client_token: client_token parameter
|
|
26
|
+
:type client_token: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.zone_name = zone_name
|
|
30
|
+
self.record_id = record_id
|
|
31
|
+
self.client_token = client_token
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeleteParsingRecordsRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('zoneName') is not None:
|
|
65
|
+
self.zone_name = m.get('zoneName')
|
|
66
|
+
if m.get('recordId') is not None:
|
|
67
|
+
self.record_id = m.get('recordId')
|
|
68
|
+
if m.get('clientToken') is not None:
|
|
69
|
+
self.client_token = m.get('clientToken')
|
|
70
|
+
return self
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DomainNameRenewalRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_dns.models.billing_for_renew import BillingForRenew
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DomainNameRenewalRequest(AbstractModel):
|
|
10
|
+
"""
|
|
11
|
+
Request entity for DomainNameRenewalRequest operation.
|
|
12
|
+
|
|
13
|
+
This class encapsulates all parameters for the API request.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(self, name, action, billing, client_token=None):
|
|
17
|
+
"""
|
|
18
|
+
Initialize DomainNameRenewalRequest request entity.
|
|
19
|
+
|
|
20
|
+
:param name: name parameter
|
|
21
|
+
:type name: str (required)
|
|
22
|
+
|
|
23
|
+
:param action: action parameter
|
|
24
|
+
:type action: str (required)
|
|
25
|
+
|
|
26
|
+
:param client_token: client_token parameter
|
|
27
|
+
:type client_token: str (optional)
|
|
28
|
+
|
|
29
|
+
:param billing: 计费信息。
|
|
30
|
+
:type billing: BillingForRenew (required)
|
|
31
|
+
"""
|
|
32
|
+
super().__init__()
|
|
33
|
+
self.name = name
|
|
34
|
+
self.action = action
|
|
35
|
+
self.client_token = client_token
|
|
36
|
+
self.billing = billing
|
|
37
|
+
|
|
38
|
+
def to_dict(self):
|
|
39
|
+
"""
|
|
40
|
+
Convert the request entity to a dictionary representation.
|
|
41
|
+
|
|
42
|
+
Nested model objects are recursively converted to dictionaries.
|
|
43
|
+
|
|
44
|
+
:return: Dictionary representation of the request
|
|
45
|
+
:rtype: dict
|
|
46
|
+
"""
|
|
47
|
+
_map = super().to_dict()
|
|
48
|
+
if _map is not None:
|
|
49
|
+
return _map
|
|
50
|
+
result = dict()
|
|
51
|
+
if self.billing is not None:
|
|
52
|
+
result['billing'] = self.billing.to_dict()
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_dict(self, m):
|
|
56
|
+
"""
|
|
57
|
+
Populate the request entity from a dictionary.
|
|
58
|
+
|
|
59
|
+
Nested dictionaries are recursively converted to model objects.
|
|
60
|
+
|
|
61
|
+
:param m: Dictionary containing request data
|
|
62
|
+
:type m: dict
|
|
63
|
+
|
|
64
|
+
:return: Self reference for method chaining
|
|
65
|
+
:rtype: DomainNameRenewalRequest
|
|
66
|
+
|
|
67
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
68
|
+
:raises ValueError: If nested model conversion fails
|
|
69
|
+
"""
|
|
70
|
+
m = m or dict()
|
|
71
|
+
if m.get('name') is not None:
|
|
72
|
+
self.name = m.get('name')
|
|
73
|
+
if m.get('action') is not None:
|
|
74
|
+
self.action = m.get('action')
|
|
75
|
+
if m.get('clientToken') is not None:
|
|
76
|
+
self.client_token = m.get('clientToken')
|
|
77
|
+
if m.get('billing') is not None:
|
|
78
|
+
self.billing = BillingForRenew().from_dict(m.get('billing'))
|
|
79
|
+
return self
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Line information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Line(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Line
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, id=None, name=None, lines=None, related_zone_count=None, related_record_count=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize Line instance.
|
|
16
|
+
|
|
17
|
+
:param id: 线路组id。
|
|
18
|
+
:type id: str (optional)
|
|
19
|
+
|
|
20
|
+
:param name: 线路组名称。
|
|
21
|
+
:type name: str (optional)
|
|
22
|
+
|
|
23
|
+
:param lines: 线路名称,取值见[LineName](#LineName)。
|
|
24
|
+
:type lines: List[str] (optional)
|
|
25
|
+
|
|
26
|
+
:param related_zone_count: 关联的zone数量。
|
|
27
|
+
:type related_zone_count: int (optional)
|
|
28
|
+
|
|
29
|
+
:param related_record_count: 关联的解析记录数量。
|
|
30
|
+
:type related_record_count: int (optional)
|
|
31
|
+
"""
|
|
32
|
+
super().__init__()
|
|
33
|
+
self.id = id
|
|
34
|
+
self.name = name
|
|
35
|
+
self.lines = lines
|
|
36
|
+
self.related_zone_count = related_zone_count
|
|
37
|
+
self.related_record_count = related_record_count
|
|
38
|
+
|
|
39
|
+
def to_dict(self):
|
|
40
|
+
"""
|
|
41
|
+
Convert the model instance to a dictionary representation.
|
|
42
|
+
|
|
43
|
+
Nested model objects are recursively converted to dictionaries.
|
|
44
|
+
|
|
45
|
+
:return: Dictionary representation of the model
|
|
46
|
+
:rtype: dict
|
|
47
|
+
"""
|
|
48
|
+
_map = super().to_dict()
|
|
49
|
+
if _map is not None:
|
|
50
|
+
return _map
|
|
51
|
+
result = dict()
|
|
52
|
+
if self.id is not None:
|
|
53
|
+
result['id'] = self.id
|
|
54
|
+
if self.name is not None:
|
|
55
|
+
result['name'] = self.name
|
|
56
|
+
if self.lines is not None:
|
|
57
|
+
result['lines'] = self.lines
|
|
58
|
+
if self.related_zone_count is not None:
|
|
59
|
+
result['relatedZoneCount'] = self.related_zone_count
|
|
60
|
+
if self.related_record_count is not None:
|
|
61
|
+
result['relatedRecordCount'] = self.related_record_count
|
|
62
|
+
return result
|
|
63
|
+
|
|
64
|
+
def from_dict(self, m):
|
|
65
|
+
"""
|
|
66
|
+
Populate the model instance from a dictionary.
|
|
67
|
+
|
|
68
|
+
Nested dictionaries are recursively converted to model objects.
|
|
69
|
+
|
|
70
|
+
:param m: Dictionary containing model data
|
|
71
|
+
:type m: dict
|
|
72
|
+
|
|
73
|
+
:return: Self reference for method chaining
|
|
74
|
+
:rtype: Line
|
|
75
|
+
|
|
76
|
+
:raises TypeError: If input is not a dictionary type
|
|
77
|
+
:raises ValueError: If nested model conversion fails
|
|
78
|
+
"""
|
|
79
|
+
m = m or dict()
|
|
80
|
+
if m.get('id') is not None:
|
|
81
|
+
self.id = m.get('id')
|
|
82
|
+
if m.get('name') is not None:
|
|
83
|
+
self.name = m.get('name')
|
|
84
|
+
if m.get('lines') is not None:
|
|
85
|
+
self.lines = m.get('lines')
|
|
86
|
+
if m.get('relatedZoneCount') is not None:
|
|
87
|
+
self.related_zone_count = m.get('relatedZoneCount')
|
|
88
|
+
if m.get('relatedRecordCount') is not None:
|
|
89
|
+
self.related_record_count = m.get('relatedRecordCount')
|
|
90
|
+
return self
|