Skip to content

Commit 8be2868

Browse files
author
欧林宝
authored
0.8.2 (#28)
1 parent 1609e97 commit 8be2868

75 files changed

Lines changed: 4026 additions & 2238 deletions

Some content is hidden

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

jdcloud_cli/client_factory.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,28 @@
1919
from jdcloud_sdk.core.config import Config
2020
from jdcloud_sdk.core.credential import Credential
2121
from jdcloud_sdk.services.vm.client.VmClient import VmClient
22-
from jdcloud_sdk.services.redis.client.RedisClient import RedisClient
22+
from jdcloud_sdk.services.iam.client.IamClient import IamClient
23+
from jdcloud_sdk.services.disk.client.DiskClient import DiskClient
24+
from jdcloud_sdk.services.mongodb.client.MongodbClient import MongodbClient
25+
from jdcloud_sdk.services.mps.client.MpsClient import MpsClient
26+
from jdcloud_sdk.services.streambus.client.StreambusClient import StreambusClient
27+
from jdcloud_sdk.services.baseanti.client.BaseantiClient import BaseantiClient
28+
from jdcloud_sdk.services.jke.client.JkeClient import JkeClient
29+
from jdcloud_sdk.services.ipanti.client.IpantiClient import IpantiClient
2330
from jdcloud_sdk.services.rds.client.RdsClient import RdsClient
31+
from jdcloud_sdk.services.redis.client.RedisClient import RedisClient
2432
from jdcloud_sdk.services.monitor.client.MonitorClient import MonitorClient
25-
from jdcloud_sdk.services.iam.client.IamClient import IamClient
2633
from jdcloud_sdk.services.cps.client.CpsClient import CpsClient
27-
from jdcloud_sdk.services.disk.client.DiskClient import DiskClient
2834
from jdcloud_sdk.services.datastar.client.DatastarClient import DatastarClient
29-
from jdcloud_sdk.services.mongodb.client.MongodbClient import MongodbClient
3035
from jdcloud_sdk.services.vpc.client.VpcClient import VpcClient
3136
from jdcloud_sdk.services.sop.client.SopClient import SopClient
37+
from jdcloud_sdk.services.iothub.client.IothubClient import IothubClient
3238
from jdcloud_sdk.services.xdata.client.XdataClient import XdataClient
3339
from jdcloud_sdk.services.cr.client.CrClient import CrClient
3440
from jdcloud_sdk.services.nc.client.NcClient import NcClient
3541
from jdcloud_sdk.services.clouddnsservice.client.ClouddnsserviceClient import ClouddnsserviceClient
36-
from jdcloud_sdk.services.mps.client.MpsClient import MpsClient
37-
from jdcloud_sdk.services.streambus.client.StreambusClient import StreambusClient
3842
from jdcloud_sdk.services.oss.client.OssClient import OssClient
39-
from jdcloud_sdk.services.baseanti.client.BaseantiClient import BaseantiClient
4043
from jdcloud_sdk.services.streamcomputer.client.StreamcomputerClient import StreamcomputerClient
41-
from jdcloud_sdk.services.jke.client.JkeClient import JkeClient
42-
from jdcloud_sdk.services.ipanti.client.IpantiClient import IpantiClient
4344
from jdcloud_cli.config import ProfileManager
4445
from jdcloud_cli.logger import get_logger
4546

@@ -52,27 +53,28 @@ def __init__(self, service):
5253
def get(self, app):
5354
client_map = {
5455
'vm': VmClient,
55-
'redis': RedisClient,
56+
'iam': IamClient,
57+
'disk': DiskClient,
58+
'mongodb': MongodbClient,
59+
'mps': MpsClient,
60+
'streambus': StreambusClient,
61+
'baseanti': BaseantiClient,
62+
'jke': JkeClient,
63+
'ipanti': IpantiClient,
5664
'rds': RdsClient,
65+
'redis': RedisClient,
5766
'monitor': MonitorClient,
58-
'iam': IamClient,
5967
'cps': CpsClient,
60-
'disk': DiskClient,
6168
'datastar': DatastarClient,
62-
'mongodb': MongodbClient,
6369
'vpc': VpcClient,
6470
'sop': SopClient,
71+
'iothub': IothubClient,
6572
'xdata': XdataClient,
6673
'cr': CrClient,
6774
'nc': NcClient,
6875
'clouddnsservice': ClouddnsserviceClient,
69-
'mps': MpsClient,
70-
'streambus': StreambusClient,
7176
'oss': OssClient,
72-
'baseanti': BaseantiClient,
7377
'streamcomputer': StreamcomputerClient,
74-
'jke': JkeClient,
75-
'ipanti': IpantiClient,
7678
}
7779

7880
profile_manager = ProfileManager()

jdcloud_cli/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# http:#www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

jdcloud_cli/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# http:#www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

jdcloud_cli/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# http:#www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

jdcloud_cli/controllers/configure_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# you may not use this file except in compliance with the License.
77
# You may obtain a copy of the License at
88
#
9-
# http:#www.apache.org/licenses/LICENSE-2.0
9+
# http://www.apache.org/licenses/LICENSE-2.0
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,

jdcloud_cli/controllers/services/baseanti.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def describe_ip_resources(self):
6565
resp = client.send(req)
6666
Printer.print_result(resp)
6767
except ImportError:
68-
print '{"error":"This api is not supported, please use the newer version"}'
68+
print('{"error":"This api is not supported, please use the newer version"}')
6969
except Exception as e:
70-
print e.message
70+
print(e.message)
7171

7272
@expose(
7373
arguments=[
@@ -98,9 +98,9 @@ def describe_ip_resource_info(self):
9898
resp = client.send(req)
9999
Printer.print_result(resp)
100100
except ImportError:
101-
print '{"error":"This api is not supported, please use the newer version"}'
101+
print('{"error":"This api is not supported, please use the newer version"}')
102102
except Exception as e:
103-
print e.message
103+
print(e.message)
104104

105105
@expose(
106106
arguments=[
@@ -132,9 +132,9 @@ def set_clean_threshold(self):
132132
resp = client.send(req)
133133
Printer.print_result(resp)
134134
except ImportError:
135-
print '{"error":"This api is not supported, please use the newer version"}'
135+
print('{"error":"This api is not supported, please use the newer version"}')
136136
except Exception as e:
137-
print e.message
137+
print(e.message)
138138

139139
@expose(
140140
arguments=[
@@ -167,9 +167,9 @@ def describe_ip_resource_protect_info(self):
167167
resp = client.send(req)
168168
Printer.print_result(resp)
169169
except ImportError:
170-
print '{"error":"This api is not supported, please use the newer version"}'
170+
print('{"error":"This api is not supported, please use the newer version"}')
171171
except Exception as e:
172-
print e.message
172+
print(e.message)
173173

174174
@expose(
175175
arguments=[
@@ -201,9 +201,9 @@ def describe_ip_resource_flow(self):
201201
resp = client.send(req)
202202
Printer.print_result(resp)
203203
except ImportError:
204-
print '{"error":"This api is not supported, please use the newer version"}'
204+
print('{"error":"This api is not supported, please use the newer version"}')
205205
except Exception as e:
206-
print e.message
206+
print(e.message)
207207

208208
@expose(
209209
arguments=[

0 commit comments

Comments
 (0)