Skip to content

Commit 77df1d9

Browse files
publish jdcloud-sdk-python 1.6.121
1 parent b2989e5 commit 77df1d9

31 files changed

Lines changed: 1364 additions & 1 deletion
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:0.0.1
3+
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
| ---------- | ------ | ------------- | -------------- |
6+
| 2020-06-18 | 0.0.1 | privatezone | * 初始版本 |

jdcloud_sdk/services/privatezone/__init__.py

Whitespace-only changes.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class BindVpcRequest(JDCloudRequest):
23+
"""
24+
绑定vpc
25+
- vpc信息为空时,会将之前的绑定关系全部解除
26+
- 该接口为覆盖类的接口,请将需要的vpc全部进行绑定
27+
28+
"""
29+
30+
def __init__(self, parameters, header=None, version="v1"):
31+
super(BindVpcRequest, self).__init__(
32+
'/regions/{regionId}/zone/{zoneId}/vpc:bind', 'PUT', header, version)
33+
self.parameters = parameters
34+
35+
36+
class BindVpcParameters(object):
37+
38+
def __init__(self, regionId, zoneId, ):
39+
"""
40+
:param regionId: 地域ID
41+
:param zoneId: zone id
42+
"""
43+
44+
self.regionId = regionId
45+
self.zoneId = zoneId
46+
self.bindVpc = None
47+
48+
def setBindVpc(self, bindVpc):
49+
"""
50+
:param bindVpc: (Optional) 绑定的vpc信息
51+
"""
52+
self.bindVpc = bindVpc
53+
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateResourceRecordRequest(JDCloudRequest):
23+
"""
24+
创建解析记录
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(CreateResourceRecordRequest, self).__init__(
30+
'/regions/{regionId}/zone/{zoneId}/resourceRecords', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class CreateResourceRecordParameters(object):
35+
36+
def __init__(self, regionId, zoneId, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param zoneId: zone id
40+
"""
41+
42+
self.regionId = regionId
43+
self.zoneId = zoneId
44+
self.hostRecord = None
45+
self.hostValue = None
46+
self.recordType = None
47+
self.ttl = None
48+
self.priority = None
49+
self.port = None
50+
self.weight = None
51+
52+
def setHostRecord(self, hostRecord):
53+
"""
54+
:param hostRecord: (Optional) 主机记录
55+
"""
56+
self.hostRecord = hostRecord
57+
58+
def setHostValue(self, hostValue):
59+
"""
60+
:param hostValue: (Optional) 主机记录值
61+
"""
62+
self.hostValue = hostValue
63+
64+
def setRecordType(self, recordType):
65+
"""
66+
:param recordType: (Optional) 解析类型,目前支持类型 A AAAA CNAME TXT CAA SRV MX PTR
67+
"""
68+
self.recordType = recordType
69+
70+
def setTtl(self, ttl):
71+
"""
72+
:param ttl: (Optional) TTL值
73+
"""
74+
self.ttl = ttl
75+
76+
def setPriority(self, priority):
77+
"""
78+
:param priority: (Optional) 优先级,只存在于MX, SRV解析记录类型
79+
"""
80+
self.priority = priority
81+
82+
def setPort(self, port):
83+
"""
84+
:param port: (Optional) 端口,只存在于SRV解析记录类型
85+
"""
86+
self.port = port
87+
88+
def setWeight(self, weight):
89+
"""
90+
:param weight: (Optional) 解析记录的权重,目前支持权重的有:A/AAAA/CNAME,A/AAAA权重范围0-100,CNAME权重范围1-100。
91+
"""
92+
self.weight = weight
93+
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateZoneRequest(JDCloudRequest):
23+
"""
24+
- 添加一个私有解析的zone,可添加以下三种类型的zone
25+
- 云内全局zone:zone的后缀是指定的后缀,如:local。该域名在云内自动全局生效,不用关联vpc即可在vpc内解析,该类型全局唯一,不能重复添加
26+
- 反向解析zone:zone的后缀是in-addr.arpa时,我们认为他是一个反向解析的zone,反向解析域名前缀目前支持10/172.16-31/192.168网段,如:10.in-addr.arpa、16.172.in-addr.arpa。反向解析的zone只能添加反向解析的记录
27+
- 私有解析zone:该类型的zone可以时任意符合格式的域名,私有解析zone需要关联vpc后,在vpc内生效解析
28+
29+
"""
30+
31+
def __init__(self, parameters, header=None, version="v1"):
32+
super(CreateZoneRequest, self).__init__(
33+
'/regions/{regionId}/zones', 'POST', header, version)
34+
self.parameters = parameters
35+
36+
37+
class CreateZoneParameters(object):
38+
39+
def __init__(self, regionId, zone, instanceId, zoneType, ):
40+
"""
41+
:param regionId: 地域ID
42+
:param zone: zone
43+
:param instanceId: 购买的套餐实例ID
44+
:param zoneType: 域名类型 LOCAL->云内全局 PTR->反向解析zone PV->私有zone
45+
"""
46+
47+
self.regionId = regionId
48+
self.zone = zone
49+
self.instanceId = instanceId
50+
self.zoneType = zoneType
51+
self.retryRecurse = None
52+
self.bindVpc = None
53+
54+
def setRetryRecurse(self, retryRecurse):
55+
"""
56+
:param retryRecurse: (Optional) 解析失败后是否进行递归解析
57+
"""
58+
self.retryRecurse = retryRecurse
59+
60+
def setBindVpc(self, bindVpc):
61+
"""
62+
:param bindVpc: (Optional) 绑定的vpc信息
63+
"""
64+
self.bindVpc = bindVpc
65+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteResourceRecordsRequest(JDCloudRequest):
23+
"""
24+
删除解析记录。批量删除时多个resourceRecordId用","分隔。批量删除每次最多不超过100个记录
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DeleteResourceRecordsRequest, self).__init__(
30+
'/regions/{regionId}/zone/{zoneId}/resourceRecords/{resourceRecordId}', 'DELETE', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DeleteResourceRecordsParameters(object):
35+
36+
def __init__(self, regionId, zoneId, resourceRecordId, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param zoneId: zone id
40+
:param resourceRecordId: 解析记录ID
41+
"""
42+
43+
self.regionId = regionId
44+
self.zoneId = zoneId
45+
self.resourceRecordId = resourceRecordId
46+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteZoneRequest(JDCloudRequest):
23+
"""
24+
删除zone,该zone下的解析记录和绑定的vpc关联关系将会被删除
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DeleteZoneRequest, self).__init__(
30+
'/regions/{regionId}/zone/{zoneId}', 'DELETE', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DeleteZoneParameters(object):
35+
36+
def __init__(self, regionId, zoneId, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param zoneId: zone id
40+
"""
41+
42+
self.regionId = regionId
43+
self.zoneId = zoneId
44+
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeActionLogsRequest(JDCloudRequest):
23+
"""
24+
查询操作日志
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeActionLogsRequest, self).__init__(
30+
'/regions/{regionId}/actionLogs', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeActionLogsParameters(object):
35+
36+
def __init__(self, regionId, start, end, ):
37+
"""
38+
:param regionId: 地域ID
39+
:param start: 起始时间,格式:UTC时间例如2017-11-10T23:00:00Z
40+
:param end: 结束时间,格式:UTC时间例如2017-11-10T23:00:00Z
41+
"""
42+
43+
self.regionId = regionId
44+
self.pageSize = None
45+
self.pageNumber = None
46+
self.start = start
47+
self.end = end
48+
self.keyWord = None
49+
self.success = None
50+
self.actionType = None
51+
52+
def setPageSize(self, pageSize):
53+
"""
54+
:param pageSize: (Optional) 页容量,默认10,取值范围(1 - 100)
55+
"""
56+
self.pageSize = pageSize
57+
58+
def setPageNumber(self, pageNumber):
59+
"""
60+
:param pageNumber: (Optional) 页序号,默认值1,不能小于1
61+
"""
62+
self.pageNumber = pageNumber
63+
64+
def setKeyWord(self, keyWord):
65+
"""
66+
:param keyWord: (Optional) 日志模糊匹配的关键词
67+
"""
68+
self.keyWord = keyWord
69+
70+
def setSuccess(self, success):
71+
"""
72+
:param success: (Optional) 操作结果 false->失败 true->成功
73+
"""
74+
self.success = success
75+
76+
def setActionType(self, actionType):
77+
"""
78+
:param actionType: (Optional) 日志类型,支持的类型有:CREATE_ZONE、DELETE_ZONE、LOCK_ZONE、CREATE_RR、MODIFY_RR、DELETE_RR、SET_RR_STATUS、RETRY_RECURSE_ZONE
79+
"""
80+
self.actionType = actionType
81+

0 commit comments

Comments
 (0)