Skip to content

Commit fd3b95d

Browse files
release 3.0.6-beta source code for python
1 parent 0b5179a commit fd3b95d

File tree

1,886 files changed

+66353
-18306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,886 files changed

+66353
-18306
lines changed

CHANGELOG.md

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,70 @@
1-
# __3.0.4-beta__ __2020-6-30__
1+
# __3.0.6-beta__ __2020-07-15__
2+
## __HuaweiCloud SDK Core__
3+
- ### Features
4+
- Support file upload and download.
5+
- ### Bug Fix
6+
- None
7+
- ### Change
8+
- None
9+
10+
## __Example__
11+
- ### Features
12+
- None
13+
- ### Bug Fix
14+
- [Issue #1](https://github.com/huaweicloud/huaweicloud-sdk-python-v3/issues/1): Fix test vpc example.
15+
- ### Change
16+
- None
17+
18+
## __HuaweiCloud SDK IAM__
19+
- ### Features
20+
- None
21+
- ### Bug Fix
22+
- Fix parsing failure of response body of interface keystoneListVersions.
23+
- ### Change
24+
- None
25+
26+
## __HuaweiCloud SDK IoTDA__
27+
- ### Features
28+
- None
29+
- ### Bug Fix
30+
- None
31+
- ### Change
32+
- Support related interfaces of application management.
33+
34+
## __HuaweiCloud SDK Meeting__
35+
- ### Features
36+
- Support cloud meeting management and control services.
37+
- ### Bug Fix
38+
- None
39+
- ### Change
40+
- None
41+
42+
## __HuaweiCloud SDK EPS__
43+
- ### Features
44+
- Support Enterprise Project Management Service.
45+
- ### Bug Fix
46+
- None
47+
- ### Change
48+
- None
49+
50+
## __HuaweiCloud SDK EVS__
51+
- ### Features
52+
- None
53+
- ### Bug Fix
54+
- [Issue #3](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/3): Fix call error of interface ShowVolume.
55+
- ### Change
56+
- None
57+
58+
## HuaweiCloud SDK TMS
59+
- ### Features
60+
- Support Tag Management Service.
61+
- ### Bug Fix
62+
- None
63+
- ### Change
64+
- None
65+
66+
67+
# __3.0.5-beta__ __2020-6-30__
268
## __HuaweiCloud SDK Core__
369
- ### Features
470
- None
@@ -52,4 +118,4 @@
52118
- ### Bug Fix
53119
- None
54120
- ### Change
55-
- None
121+
- None

CHANGELOG_CN.md

Lines changed: 78 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,81 @@
1-
# __3.0.4-beta__ __2020-06-30__
1+
# __3.0.6-beta__ __2020-07-15_
2+
## __HuaweiCloud SDK Core__
3+
- ### 新增特性
4+
- 支持上传下载
5+
- ### 解决问题
6+
-
7+
- ### 特性变更
8+
-
9+
10+
## __Examples__
11+
- ### 新增特性
12+
-
13+
- ### 解决问题
14+
- [Issue #1](https://github.com/huaweicloud/huaweicloud-sdk-python-v3/issues/1):修复list vpc示例
15+
- ### 特性变更
16+
-
17+
18+
## __HuaweiCloud SDK IAM__
19+
- ### 新增特性
20+
-
21+
- ### 解决问题
22+
- 修复keystoneListVersions响应体解析失败问题
23+
- ### 特性变更
24+
-
25+
26+
## __HuaweiCloud SDK IoTDA__
27+
- ### 新增特性
28+
-
29+
- ### 解决问题
30+
-
31+
- ### 特性变更
32+
- 支持资源空间相关接口
33+
34+
## __HuaweiCloud SDK Meeting__
35+
- ### 新增特性
36+
- 新增会议控制/会议管理功能
37+
- ### 解决问题
38+
-
39+
- ### 特性变更
40+
-
41+
42+
## __HuaweiCloud SDK EPS__
43+
- ### 新增特性
44+
- 支持企业管理服务
45+
- ### 解决问题
46+
-
47+
- ### 特性变更
48+
-
49+
50+
## __HuaweiCloud SDK EVS__
51+
- ### 新增特性
52+
-
53+
- ### 解决问题
54+
- [Issue #3](https://github.com/huaweicloud/huaweicloud-sdk-java-v3/issues/3):获取单个磁盘详情接口报错问题修复
55+
- ### 特性变更
56+
-
57+
58+
## __HuaweiCloud SDK TMS__
59+
- ### 新增特性
60+
- 支持标签管理服务
61+
- ### 解决问题
62+
-
63+
- ### 特性变更
64+
-
65+
66+
67+
# __3.0.5-beta__ __2020-06-30__
268
## __HuaweiCloud SDK Core__
369
- ### 新增特性
470
-
571
- ### 解决问题
672
-
773
- ### 特性变更
8-
- 使用with_http_handler替代原有的with_enable_http_log开关,支持用户在问题定位场景自定义请求日志输出
74+
- 使用with_http_handler替代原有的with_enable_http_log开关,支持用户在问题定位场景自定义请求日志输出
975

1076
## __HuaweiCloud SDK CTS__
1177
- ### 新增特性
12-
- 支持云审计服务
78+
- 支持云审计服务
1379
- ### 解决问题
1480
-
1581
- ### 特性变更
@@ -21,11 +87,11 @@
2187
- ### 解决问题
2288
-
2389
- ### 特性变更
24-
- 支持全量服务接口
90+
- 支持全量服务接口
2591

2692
## __HuaweiCloud SDK IoTDA__
2793
- ### 新增特性
28-
- 支持设备接入服务
94+
- 支持设备接入服务
2995
- ### 解决问题
3096
-
3197
- ### 特性变更
@@ -35,20 +101,20 @@
35101
# __3.0.3-beta__ __2020-06-15__
36102
## __HuaweiCloud SDK Core__
37103
- ### 新增特性
38-
- 支持异步客户端
39-
- 支持日志
40-
- 问题定位场景,支持打开HTTP日志
104+
- 支持异步客户端
105+
- 支持日志
106+
- 问题定位场景,支持打开HTTP日志
41107
- ### 解决问题
42108
-
43109
- ### 特性变更
44110
-
45111

46112
## __HuaweiCloud SDK DevStar__
47113
- ### 新增特性
48-
- 支持查询模板列表
49-
- 支持查询模板详情
50-
- 支持查询任务状态
51-
- 支持通过DevStar模板创建生成应用代码任务
114+
- 支持查询模板列表
115+
- 支持查询模板详情
116+
- 支持查询任务状态
117+
- 支持通过DevStar模板创建生成应用代码任务
52118
- ### 解决问题
53119
-
54120
- ### 特性变更

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
6565
config = HttpConfig.get_default_config()
6666
```
6767

68-
2.2 Proxy
68+
2.2 Proxy(Optional)
6969

7070
```python
7171
# Use Proxy if needed
@@ -76,14 +76,14 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
7676
config.proxy_password = 'password'
7777
```
7878

79-
2.3 Connection
79+
2.3 Connection(Optional)
8080

8181
```python
8282
# seconds to wait for the server to send data before giving up, as a float, or (connect timeout, read timeout)
8383
config.timeout = 3
8484
```
8585

86-
2.4 SSL Certification
86+
2.4 SSL Certification(Optional)
8787

8888
```python
8989
# Skip ssl certifaction checking while using https protocol if needed

README_CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,28 @@
6868
config = HttpConfig.get_default_config()
6969
```
7070

71-
2.2 代理配置
71+
2.2 代理配置(可选)
7272

7373
```python
74-
# 使用代理服务器
74+
# 使用代理服务器(可选)
7575
config.proxy_protocol = 'http'
7676
config.proxy_host = 'proxy.huaweicloud.com'
7777
config.proxy_port = 80
7878
config.proxy_user = 'username'
7979
config.proxy_password = 'password'
8080
```
8181

82-
2.3 连接配置
82+
2.3 连接配置(可选)
8383

8484
```python
85-
# 配置连接超时,支持统一指定超时时长timeout=timeout,或分别指定超时时长timeout=(connect timeout, read timeout)
85+
# 配置连接超时(可选),支持统一指定超时时长timeout=timeout,或分别指定超时时长timeout=(connect timeout, read timeout)
8686
config.timeout = 3
8787
```
8888

89-
2.4 SSL配置
89+
2.4 SSL配置(可选)
9090

9191
```python
92-
# 配置跳过服务端证书验证
92+
# 配置跳过服务端证书验证(可选)
9393
config.ignore_ssl_verification = True
9494
# 配置服务器端CA证书,用于SDK验证服务端证书合法性
9595
config.ssl_ca_cert = ssl_ca_cert

README_PYPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
6363
config = HttpConfig.get_default_config()
6464
```
6565

66-
2.2 Proxy
66+
2.2 Proxy(Optional)
6767

6868
```python
6969
# Use Proxy if needed
@@ -74,14 +74,14 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
7474
config.proxy_password = 'password'
7575
```
7676

77-
2.3 Connection
77+
2.3 Connection(Optional)
7878

7979
```python
8080
# seconds to wait for the server to send data before giving up, as a float, or (connect timeout, read timeout)
8181
config.timeout = 3
8282
```
8383

84-
2.4 SSL Certification
84+
2.4 SSL Certification(Optional)
8585

8686
```python
8787
# Skip ssl certifaction checking while using https protocol if needed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# coding: utf-8
2+
from huaweicloudsdkcore.http.http_config import HttpConfig
3+
from huaweicloudsdkcore.auth.credentials import BasicCredentials
4+
from huaweicloudsdkcore.exceptions import exceptions
5+
from huaweicloudsdkiotda.v5 import *
6+
7+
8+
def getApplications(client):
9+
try:
10+
request = ShowApplicationsRequest()
11+
response = client.show_applications(request)
12+
print(response)
13+
except exceptions.ClientRequestException as e:
14+
print(e.status_code)
15+
print(e.request_id)
16+
print(e.error_code)
17+
print(e.error_msg)
18+
19+
20+
def deleteApplication(client):
21+
try:
22+
app_id = "e5b55cb2489f40a8af0e0feaae491188"
23+
request = DeleteApplicationRequest(app_id=app_id)
24+
response = client.delete_application(request)
25+
print(response)
26+
except exceptions.ClientRequestException as e:
27+
print(e.status_code)
28+
print(e.request_id)
29+
print(e.error_code)
30+
print(e.error_msg)
31+
32+
def getApplication(client):
33+
try:
34+
app_id = "21f57f68bbe342908a915232fbf88ad9"
35+
request = ShowApplicationRequest(app_id=app_id)
36+
response = client.show_application(request)
37+
print(response)
38+
except exceptions.ClientRequestException as e:
39+
print(e.status_code)
40+
print(e.request_id)
41+
print(e.error_code)
42+
print(e.error_msg)
43+
44+
45+
def addApplication(client):
46+
try:
47+
app_name = "testApp2"
48+
body = AddApplication(app_name=app_name)
49+
request = AddApplicationRequest(body=body)
50+
response = client.add_application(request)
51+
print(response)
52+
except exceptions.ClientRequestException as e:
53+
print(e.status_code)
54+
print(e.request_id)
55+
print(e.error_code)
56+
print(e.error_msg)
57+
58+
if __name__ == '__main__':
59+
ak = "{your ak string}"
60+
sk = "{your sk string}"
61+
endpoint = "{your endpoint}"
62+
project_id = "{your project id}"
63+
64+
config = HttpConfig.get_default_config()
65+
config.ignore_ssl_verification = True
66+
credentials = BasicCredentials(ak, sk, project_id)
67+
68+
iotda_client = IoTDAClient().new_builder(IoTDAClient) \
69+
.with_http_config(config) \
70+
.with_credentials(credentials) \
71+
.with_endpoint(endpoint) \
72+
.build()
73+
74+
getApplications(iotda_client)
75+
getApplication(iotda_client)
76+
deleteApplication(iotda_client)
77+
addApplication(iotda_client)

examples/README_PYPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
6363
config = HttpConfig.get_default_config()
6464
```
6565

66-
2.2 Proxy
66+
2.2 Proxy(Optional)
6767

6868
```python
6969
# Use Proxy if needed
@@ -74,14 +74,14 @@ HuaweiCloud Python SDK supports Python 3 or later. Run ``python --version`` to c
7474
config.proxy_password = 'password'
7575
```
7676

77-
2.3 Connection
77+
2.3 Connection(Optional)
7878

7979
```python
8080
# seconds to wait for the server to send data before giving up, as a float, or (connect timeout, read timeout)
8181
config.timeout = 3
8282
```
8383

84-
2.4 SSL Certification
84+
2.4 SSL Certification(Optional)
8585

8686
```python
8787
# Skip ssl certifaction checking while using https protocol if needed

0 commit comments

Comments
 (0)