Skip to content

Commit 9bf2253

Browse files
publish jdcloud-sdk-python 1.6.306
1 parent 2cdd6be commit 9bf2253

3 files changed

Lines changed: 55 additions & 2 deletions

File tree

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 CreateCustomEventsOnResourceRequest(JDCloudRequest):
23+
"""
24+
创建自定义运维事件,仅支持实例资源。
25+
仅灰度用户可用(元数据 vm_submithost=1)。
26+
27+
"""
28+
29+
def __init__(self, parameters, header=None, version="v1"):
30+
super(CreateCustomEventsOnResourceRequest, self).__init__(
31+
'/regions/{regionId}/maintenanceEvents', 'POST', header, version)
32+
self.parameters = parameters
33+
34+
35+
class CreateCustomEventsOnResourceParameters(object):
36+
37+
def __init__(self,regionId, resourceId, ):
38+
"""
39+
:param regionId: 地域ID。
40+
:param resourceId: 资源ID(实例ID)
41+
"""
42+
43+
self.regionId = regionId
44+
self.resourceId = resourceId
45+
self.description = None
46+
47+
def setDescription(self, description):
48+
"""
49+
:param description: (Optional) 描述信息,最长256个字符
50+
51+
"""
52+
self.description = description
53+

jdcloud_sdk/services/cmp/client/CmpClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('cmp.jdcloud-api.com')
2828

29-
super(CmpClient, self).__init__(credential, config, 'cmp', '0.2.1', logger)
29+
super(CmpClient, self).__init__(credential, config, 'cmp', '0.2.2', logger)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.305",
12+
version="1.6.306",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)