Skip to content

Commit 03e8c43

Browse files
authored
Merge pull request #117 from Tanc009/master
publish jdcloud-sdk-python 1.6.82
2 parents 0f18daa + 8a92f00 commit 03e8c43

113 files changed

Lines changed: 3644 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 更新历史 #
2+
API版本:1.0.0
3+
4+
|发布时间|版本号|更新|说明|
5+
|---|---|---|---|
6+
2020-10-26 |0.1.0 |新增接口 | * 增加基本操作
7+
2020-10-26 |0.1.1 |修改接口title | * 改为英文名称 空格用横线替换;拆分template返回对象
8+
2020-10-26 |0.1.1 |修改接口 | * 修改查询转入状态接口
9+
2020-11-16 |1.0.0 |修改版本号 | * 准备上线,版本号修改为1.0.0

jdcloud_sdk/services/domain/__init__.py

Whitespace-only changes.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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 CertificateTemplateRequest(JDCloudRequest):
23+
"""
24+
域名信息模板实名认证
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CertificateTemplateRequest, self).__init__(
29+
'/regions/{regionId}/template/{templateId}/certificate', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CertificateTemplateParameters(object):
34+
35+
def __init__(self, regionId, templateId, identityNo, identityType, file):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param templateId: 模板ID
39+
:param identityNo: 所有人证件号码
40+
:param identityType: 注册人证件类型
41+
1.个人
42+
(1)身份证 SFZ
43+
2.企业
44+
(1)组织机构代码证 ORG
45+
(2)工商营业执照 YYZZ
46+
(3)统一社会信用代码证书 TYDMZ
47+
(4)部队代号 BDDH
48+
(5)军队单位对外有偿服务许可证 JDXKZ
49+
(6)事业单位法人证书 SYZS
50+
(7)社会团体法人登记证书 STDJZ
51+
(8)宗教活动场所登记证 ZJDJZ
52+
(9)民办非企业单位登记证书 MBDJZ
53+
(10)基金会法人登记证书 JJDJZ
54+
(11)律师事务所执业许可证 LSXKZ
55+
(12)登记证 GWLYDJZ
56+
(13)司法鉴定许可证 SFXKZ
57+
(14)社会服务机构登记证书 SHFWJGZ
58+
(15)民办学校办学许可证 MBXXXKZ
59+
(16)医疗机构执业许可证 YLJGXKZ
60+
61+
:param file: 所有人证件,jpg 图片的 base64 编码,必填(大小 55KB~1MB)
62+
"""
63+
64+
self.regionId = regionId
65+
self.templateId = templateId
66+
self.identityNo = identityNo
67+
self.identityType = identityType
68+
self.file = file
69+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CertificateTemplateStateRequest(JDCloudRequest):
23+
"""
24+
查询域名信息模板实名认证状态
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CertificateTemplateStateRequest, self).__init__(
29+
'/regions/{regionId}/template/{templateId}/certificate', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CertificateTemplateStateParameters(object):
34+
35+
def __init__(self, regionId, templateId, ):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param templateId: 模板ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.templateId = templateId
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 CheckDomainRequest(JDCloudRequest):
23+
"""
24+
检查域名是否可以注册
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CheckDomainRequest, self).__init__(
29+
'/regions/{regionId}/domain:check', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CheckDomainParameters(object):
34+
35+
def __init__(self, regionId, domainName):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param domainName: 要检查的域名
39+
"""
40+
41+
self.regionId = regionId
42+
self.domainName = domainName
43+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 CreateDomainRequest(JDCloudRequest):
23+
"""
24+
域名注册
25+
域名注册前,请确保用户的京东云账户有足够的资金支付,Openapi接口回返回订单号,可以用此订单号向计费系统查阅详情
26+
27+
"""
28+
29+
def __init__(self, parameters, header=None, version="v1"):
30+
super(CreateDomainRequest, self).__init__(
31+
'/regions/{regionId}/domain', 'POST', header, version)
32+
self.parameters = parameters
33+
34+
35+
class CreateDomainParameters(object):
36+
37+
def __init__(self, regionId, domainName, term, templateId):
38+
"""
39+
:param regionId: 实例所属的地域ID
40+
:param domainName: 域名
41+
:param term: 注册年限,最多10年
42+
:param templateId: 模板ID
43+
"""
44+
45+
self.regionId = regionId
46+
self.domainName = domainName
47+
self.term = term
48+
self.templateId = templateId
49+
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
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 CreateTemplateRequest(JDCloudRequest):
23+
"""
24+
创建域名信息模板
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateTemplateRequest, self).__init__(
29+
'/regions/{regionId}/template', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateTemplateParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
"""
39+
40+
self.regionId = regionId
41+
self.userNameCh = None
42+
self.userNameEn1 = None
43+
self.userNameEn2 = None
44+
self.ownerNameCh = None
45+
self.ownerNameEn = None
46+
self.nationCodeCh = None
47+
self.nationCodeEn = None
48+
self.provinceCodeCh = None
49+
self.provinceCodeEn = None
50+
self.cityCodeCh = None
51+
self.cityCodeEn = None
52+
self.addressCh = None
53+
self.addressEn = None
54+
self.zipCode = None
55+
self.phone = None
56+
self.fax = None
57+
self.email = None
58+
self.ownerType = None
59+
60+
def setUserNameCh(self, userNameCh):
61+
"""
62+
:param userNameCh: (Optional) 联系人姓名(中文),必填,必须含有中文,只允许输入特殊字符(.,、·()()-""“”/\'),最多可输入64 字符
63+
"""
64+
self.userNameCh = userNameCh
65+
66+
def setUserNameEn1(self, userNameEn1):
67+
"""
68+
:param userNameEn1: (Optional) 联系人姓(英文),必填,必须含有英文,只允许输入特殊字符(.,、·()()-""“”/\'),最多可输入64 字符
69+
"""
70+
self.userNameEn1 = userNameEn1
71+
72+
def setUserNameEn2(self, userNameEn2):
73+
"""
74+
:param userNameEn2: (Optional) 联系人名(英文),必填,必须含有英文,只允许输入特殊字符(.,、·()()-""“”/\'),最多可输入64 字符
75+
"""
76+
self.userNameEn2 = userNameEn2
77+
78+
def setOwnerNameCh(self, ownerNameCh):
79+
"""
80+
:param ownerNameCh: (Optional) 域名所有者或所有者单位名称(中文),必填,必须含有中文,只允许输入特殊字符(.,、·()()-""“”/\'),最多可输入64 字符
81+
"""
82+
self.ownerNameCh = ownerNameCh
83+
84+
def setOwnerNameEn(self, ownerNameEn):
85+
"""
86+
:param ownerNameEn: (Optional) 域名所有者或所有者单位名称(英文),必填,必须含有中文,只允许输入特殊字符(.,、·()()-""“”/\'),最多可输入64 字符
87+
"""
88+
self.ownerNameEn = ownerNameEn
89+
90+
def setNationCodeCh(self, nationCodeCh):
91+
"""
92+
:param nationCodeCh: (Optional) 国家及地区(中文)
93+
"""
94+
self.nationCodeCh = nationCodeCh
95+
96+
def setNationCodeEn(self, nationCodeEn):
97+
"""
98+
:param nationCodeEn: (Optional) 国家及地区(英文)
99+
"""
100+
self.nationCodeEn = nationCodeEn
101+
102+
def setProvinceCodeCh(self, provinceCodeCh):
103+
"""
104+
:param provinceCodeCh: (Optional) 省份(中文)
105+
"""
106+
self.provinceCodeCh = provinceCodeCh
107+
108+
def setProvinceCodeEn(self, provinceCodeEn):
109+
"""
110+
:param provinceCodeEn: (Optional) 省份(英文)
111+
"""
112+
self.provinceCodeEn = provinceCodeEn
113+
114+
def setCityCodeCh(self, cityCodeCh):
115+
"""
116+
:param cityCodeCh: (Optional) 城市(中文)
117+
"""
118+
self.cityCodeCh = cityCodeCh
119+
120+
def setCityCodeEn(self, cityCodeEn):
121+
"""
122+
:param cityCodeEn: (Optional) 城市(英文)
123+
"""
124+
self.cityCodeEn = cityCodeEn
125+
126+
def setAddressCh(self, addressCh):
127+
"""
128+
:param addressCh: (Optional) 通信地址(中文)
129+
"""
130+
self.addressCh = addressCh
131+
132+
def setAddressEn(self, addressEn):
133+
"""
134+
:param addressEn: (Optional) 通信地址(英文)
135+
"""
136+
self.addressEn = addressEn
137+
138+
def setZipCode(self, zipCode):
139+
"""
140+
:param zipCode: (Optional) 邮编 6位数字
141+
"""
142+
self.zipCode = zipCode
143+
144+
def setPhone(self, phone):
145+
"""
146+
:param phone: (Optional) 联系电话,国家区号-地区区号(或手机号码前3位)-电话号码(或手机号码后8位) 例:86-138-12345678
147+
"""
148+
self.phone = phone
149+
150+
def setFax(self, fax):
151+
"""
152+
:param fax: (Optional) 传真,国家区号-地区区号(或手机号码前3位)-电话号码(或手机号码后8位) 例:86-138-12345678
153+
"""
154+
self.fax = fax
155+
156+
def setEmail(self, email):
157+
"""
158+
:param email: (Optional) 邮件
159+
"""
160+
self.email = email
161+
162+
def setOwnerType(self, ownerType):
163+
"""
164+
:param ownerType: (Optional) 所有者类型 1个人 2企业
165+
"""
166+
self.ownerType = ownerType
167+

0 commit comments

Comments
 (0)