Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions demo/vm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def testCreateAndDeleteInstance(self):
imageId='98d44a0f-88c1-451a-8971-f1f769073b6c',
primaryNetworkInterface=network, systemDisk=sysDisk,
dataDisks=None, keyNames=None, description='python-sdk-vm')
param = CreateInstancesParameters('cn-north-1')
param.setInstanceSpec(instanceSpec)
param = CreateInstancesParameters('cn-north-1', instanceSpec)
param.setMaxCount(1)
request = CreateInstancesRequest(param)
create_resp = self.client.send(request)
Expand Down
8 changes: 8 additions & 0 deletions jdcloud_sdk/services/asset/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 更新历史 #
API版本:0.0.2

| 发布时间 | 版本号 | 更新 | 说明 |
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2020-07-07 | 0.0.2 | 完善返回字段描述信息 | 开放查询余额openAPI接口,完善返回字段描述信息 | |
| 2019-04-30 | 0.0.1 | 接口新增与更新 |初始版本,提供控制台以下功能接口:<br>1、控制台查询余额、充值状态、余额预警信息<br>2、消费/充值/提现列表<br>3、设置余额预警(开关/金额<br>4、充值、提现 | |

Empty file.
41 changes: 41 additions & 0 deletions jdcloud_sdk/services/asset/apis/DescribeAccountAmountRequest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class DescribeAccountAmountRequest(JDCloudRequest):
"""
查询账户金额(总金额、可用金额、冻结金额、可提现金额、提现中金额)
"""

def __init__(self, parameters, header=None, version="v1"):
super(DescribeAccountAmountRequest, self).__init__(
'/regions/{regionId}/assets:describeAccountAmount', 'GET', header, version)
self.parameters = parameters


class DescribeAccountAmountParameters(object):

def __init__(self, regionId, ):
"""
:param regionId: Region ID
"""

self.regionId = regionId

43 changes: 43 additions & 0 deletions jdcloud_sdk/services/asset/apis/ModifyBalanceWarningInfoRequest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class ModifyBalanceWarningInfoRequest(JDCloudRequest):
"""
设置余额预警信息
"""

def __init__(self, parameters, header=None, version="v1"):
super(ModifyBalanceWarningInfoRequest, self).__init__(
'/regions/{regionId}/assets:modifyBalanceWarningInfo', 'POST', header, version)
self.parameters = parameters


class ModifyBalanceWarningInfoParameters(object):

def __init__(self, regionId, balanceWarningInfoVo):
"""
:param regionId: Region ID
:param balanceWarningInfoVo:
"""

self.regionId = regionId
self.balanceWarningInfoVo = balanceWarningInfoVo

Empty file.
29 changes: 29 additions & 0 deletions jdcloud_sdk/services/asset/client/AssetClient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudclient import JDCloudClient
from jdcloud_sdk.core.config import Config


class AssetClient(JDCloudClient):

def __init__(self, credential, config=None, logger=None):
if config is None:
config = Config('asset.jdcloud-api.com')

super(AssetClient, self).__init__(credential, config, 'asset', '0.0.2', logger)
Empty file.
29 changes: 29 additions & 0 deletions jdcloud_sdk/services/asset/models/BalanceWarningInfoVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class BalanceWarningInfoVo(object):

def __init__(self, status=None, threshold=None):
"""
:param status: (Optional) 余额预警状态:1-启用;2-停用(状态不为空时修改状态)
:param threshold: (Optional) 余额预警阈值
"""

self.status = status
self.threshold = threshold
27 changes: 27 additions & 0 deletions jdcloud_sdk/services/asset/models/BalanceWarningStatusVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class BalanceWarningStatusVo(object):

def __init__(self, status=None):
"""
:param status: (Optional) 余额预警状态
"""

self.status = status
27 changes: 27 additions & 0 deletions jdcloud_sdk/services/asset/models/BalanceWarningThresholdVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class BalanceWarningThresholdVo(object):

def __init__(self, threshold=None):
"""
:param threshold: (Optional) 余额预警阈值
"""

self.threshold = threshold
31 changes: 31 additions & 0 deletions jdcloud_sdk/services/asset/models/BankInfoVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class BankInfoVo(object):

def __init__(self, key=None, value=None, description=None):
"""
:param key: (Optional) 银行代码
:param value: (Optional) 是否可用:1-可用;0-不可用
:param description: (Optional) 银行描述
"""

self.key = key
self.value = value
self.description = description
57 changes: 57 additions & 0 deletions jdcloud_sdk/services/asset/models/OffLineRemittanceBillInfo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class OffLineRemittanceBillInfo(object):

def __init__(self, id=None, pin=None, remittorAccount=None, remittorBankAccount=None, remitAmount=None, remitBankName=None, remitTime=None, contactsPhone=None, status=None, remitPicture=None, createTime=None, updateTime=None, claId=None, erpOrderId=None, createBeginTime=None, createEndTime=None):
"""
:param id: (Optional) 当前id
:param pin: (Optional) 用户pin
:param remittorAccount: (Optional) 汇款人账号名称
:param remittorBankAccount: (Optional) 汇款人银行账号
:param remitAmount: (Optional) 汇款金额
:param remitBankName: (Optional) 汇款银行名称
:param remitTime: (Optional) 汇款时间
:param contactsPhone: (Optional) 联系人手机
:param status: (Optional) 状态
:param remitPicture: (Optional) 汇款底单扫描件
:param createTime: (Optional) 创建时间
:param updateTime: (Optional) 更新时间
:param claId: (Optional) 备查id
:param erpOrderId: (Optional) 充值单号
:param createBeginTime: (Optional) 提交起始时间
:param createEndTime: (Optional) 提交截止时间
"""

self.id = id
self.pin = pin
self.remittorAccount = remittorAccount
self.remittorBankAccount = remittorBankAccount
self.remitAmount = remitAmount
self.remitBankName = remitBankName
self.remitTime = remitTime
self.contactsPhone = contactsPhone
self.status = status
self.remitPicture = remitPicture
self.createTime = createTime
self.updateTime = updateTime
self.claId = claId
self.erpOrderId = erpOrderId
self.createBeginTime = createBeginTime
self.createEndTime = createEndTime
41 changes: 41 additions & 0 deletions jdcloud_sdk/services/asset/models/OperatingStatement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class OperatingStatement(object):

def __init__(self, pin=None, tradeNumber=None, tradeType=None, tradeAmount=None, tradeStatus=None, createTime=None, updateTime=None, availableAmount=None):
"""
:param pin: (Optional) 用户pin
:param tradeNumber: (Optional) 流水单号
:param tradeType: (Optional) 交易类型:1-充值(11.在线充值 12.退单充值 13.线下汇款非人工认领 14.线下汇款人工认领 15.补单充值 16.退款充值);2-消费;3-提现
:param tradeAmount: (Optional) 交易额
:param tradeStatus: (Optional) 交易状态:1-成功 2-失败 31-提现全部成功 32-提现全部失败 33-提现部分成功 34-运营待审核 35-运营通过 36-运营驳回 37-处理中 38-预占充值单失败
:param createTime: (Optional) 创建时间
:param updateTime: (Optional) 更新时间
:param availableAmount: (Optional) 可用金额
"""

self.pin = pin
self.tradeNumber = tradeNumber
self.tradeType = tradeType
self.tradeAmount = tradeAmount
self.tradeStatus = tradeStatus
self.createTime = createTime
self.updateTime = updateTime
self.availableAmount = availableAmount
37 changes: 37 additions & 0 deletions jdcloud_sdk/services/asset/models/OperatingStatementVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class OperatingStatementVo(object):

def __init__(self, tradeType=None, tradeStatus=None, beginTime=None, endTime=None, pageIndex=None, pageSize=None):
"""
:param tradeType: (Optional) 交易类型:1-充值(11.在线充值 12.退单充值 13.线下汇款非人工认领 14.线下汇款人工认领 15.补单充值 16.退款充值);2-消费;3-提现
:param tradeStatus: (Optional) 交易状态:1-成功 2-失败 31-提现全部成功 32-提现全部失败 33-提现部分成功 34-运营待审核 35-运营通过 36-运营驳回 37-处理中 38-预占充值单失败
:param beginTime: (Optional) 开始时间
:param endTime: (Optional) 结束时间
:param pageIndex: (Optional) 当前页码
:param pageSize: (Optional) 每页条数
"""

self.tradeType = tradeType
self.tradeStatus = tradeStatus
self.beginTime = beginTime
self.endTime = endTime
self.pageIndex = pageIndex
self.pageSize = pageSize
Loading