Skip to content

Commit e8e7c3a

Browse files
author
金山云SDK
authored
Merge pull request KscSDK#22 from liuyichen/master
1.0.8版本更新
2 parents ef8405e + ca48f16 commit e8e7c3a

File tree

5 files changed

+82
-24
lines changed

5 files changed

+82
-24
lines changed

README.rst

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Install 安装
99
----------------
1010

1111
+ pip 安装
12-
+ pip install kscore
12+
+ pip install ksc-sdk-python
1313

1414
+ github 安装
1515
+ 通过 `GitHub <https://github.com/liuyichen/kscore>`__ 下载
@@ -62,27 +62,33 @@ Service 服务
6262
| cn-shanghai-2 | 上海2区 |
6363
+-------------------+------------+
6464

65-
+ 服务列表 service_name, `详情参考API手册 <http://docs.ksyun.com>`__
6665

67-
+-------------------+------------+
68-
| service_name | 服务名 |
69-
+===================+============+
70-
| iam | |
71-
+-------------------+------------+
72-
| eip | |
73-
+-------------------+------------+
74-
| kec | |
75-
+-------------------+------------+
76-
| slb | |
77-
+-------------------+------------+
78-
| vpc | |
79-
+-------------------+------------+
80-
| monitor | |
81-
+-------------------+------------+
82-
| offline | |
83-
+-------------------+------------+
84-
| cdn | |
85-
+-------------------+------------+
66+
+ 已支持服务列表 service_name,具体方法与API的Action对应,如kec服务RunInstances对应为run_instances方法。 `详情参考API手册 <http://docs.ksyun.com>`__
67+
68+
+-------------------+----------------+
69+
| service | 服务名 |
70+
+===================+================+
71+
| iam | 身份与访问控制 |
72+
+-------------------+----------------+
73+
| eip | 弹性IP |
74+
+-------------------+----------------+
75+
| kec | 云服务器 |
76+
+-------------------+----------------+
77+
| tag | 标签服务 |
78+
+-------------------+----------------+
79+
| slb | 负载均衡 |
80+
+-------------------+----------------+
81+
| kcs | REDIS |
82+
+-------------------+----------------+
83+
| vpc | 虚拟私有网络 |
84+
+-------------------+----------------+
85+
| cdn | 内容分发网络 |
86+
+-------------------+----------------+
87+
| monitor | 云监控 |
88+
+-------------------+----------------+
89+
| offline | 视频转码 |
90+
+-------------------+----------------+
91+
8692

8793
----------------
8894
Method 方法

examples/tag.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- encoding:utf-8 -*-
2+
3+
from kscore.session import get_session
4+
5+
if __name__ == "__main__":
6+
7+
s = get_session()
8+
9+
client = s.create_client("tag", region_name="cn-beijing-6", use_ssl=True)
10+
11+
print client.describe_tags()

kscore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re
1717
import logging
1818

19-
__version__ = '1.0.7'
19+
__version__ = '1.0.8'
2020

2121

2222
class NullHandler(logging.Handler):

kscore/data/endpoints.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ partitions:
7272
defaults:
7373
credentialScope:
7474
service: kec
75-
EndpointRegion: cn-beijing-6
7675
endpoints:
7776
cn-beijing-6:
7877
protocols:
@@ -134,6 +133,20 @@ partitions:
134133
protocols:
135134
- http
136135

136+
tag:
137+
defaults:
138+
credentialScope:
139+
service: tag
140+
endpoints:
141+
cn-beijing-6:
142+
protocols:
143+
- http
144+
- https
145+
cn-shanghai-2:
146+
protocols:
147+
- http
148+
- https
149+
137150
cdn:
138151
defaults:
139152
protocols:
@@ -144,4 +157,5 @@ partitions:
144157
partitionEndpoint: cn-shanghai-1
145158
endpoints:
146159
cn-shanghai-1:
147-
hostname: cdn.api.ksyun.com
160+
hostname: cdn.api.ksyun.com
161+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
version: '2.0'
3+
metadata:
4+
apiVersion: '2016-03-04'
5+
endpointPrefix: tag
6+
jsonVersion: '1.1'
7+
serviceFullName: Tag Service
8+
signatureVersion: v4
9+
targetPrefix: tag
10+
protocol: query-json
11+
12+
operations:
13+
CreateTags:
14+
http:
15+
method: GET
16+
DeleteTags:
17+
http:
18+
method: GET
19+
DescribeTags:
20+
http:
21+
method: GET
22+
DescribeTagValues:
23+
http:
24+
method: GET
25+
DescribeTagKeys:
26+
http:
27+
method: GET

0 commit comments

Comments
 (0)