From bef1458422a29efcfaead77a143b22582e82ed23 Mon Sep 17 00:00:00 2001 From: Tanc009 Date: Thu, 9 Jul 2020 06:14:34 +0000 Subject: [PATCH 1/2] publish jdcloud-sdk-python 1.6.68 --- jdcloud_sdk/services/asset/ChangeLog.md | 8 +++ jdcloud_sdk/services/asset/__init__.py | 0 .../apis/DescribeAccountAmountRequest.py | 41 +++++++++++++ .../apis/ModifyBalanceWarningInfoRequest.py | 43 ++++++++++++++ jdcloud_sdk/services/asset/apis/__init__.py | 0 .../services/asset/client/AssetClient.py | 29 ++++++++++ jdcloud_sdk/services/asset/client/__init__.py | 0 .../asset/models/BalanceWarningInfoVo.py | 29 ++++++++++ .../asset/models/BalanceWarningStatusVo.py | 27 +++++++++ .../asset/models/BalanceWarningThresholdVo.py | 27 +++++++++ .../services/asset/models/BankInfoVo.py | 31 ++++++++++ .../asset/models/OffLineRemittanceBillInfo.py | 57 +++++++++++++++++++ .../asset/models/OperatingStatement.py | 41 +++++++++++++ .../asset/models/OperatingStatementVo.py | 37 ++++++++++++ .../services/asset/models/PageInfoVo.py | 33 +++++++++++ .../services/asset/models/PayTypeVo.py | 29 ++++++++++ .../services/asset/models/RechargeVo.py | 31 ++++++++++ .../asset/models/ReduceBalanceParam.py | 33 +++++++++++ jdcloud_sdk/services/asset/models/Voucher.py | 53 +++++++++++++++++ .../services/asset/models/WarnedGroupVo.py | 31 ++++++++++ .../services/asset/models/WarnedUserVo.py | 31 ++++++++++ .../services/asset/models/WarningInfoVo.py | 29 ++++++++++ .../services/asset/models/WithdrawAmountVo.py | 27 +++++++++ .../asset/models/WithdrawalsCondition.py | 37 ++++++++++++ .../services/asset/models/WithdrawalsVo.py | 43 ++++++++++++++ jdcloud_sdk/services/asset/models/__init__.py | 0 setup.py | 2 +- 27 files changed, 748 insertions(+), 1 deletion(-) create mode 100644 jdcloud_sdk/services/asset/ChangeLog.md create mode 100644 jdcloud_sdk/services/asset/__init__.py create mode 100644 jdcloud_sdk/services/asset/apis/DescribeAccountAmountRequest.py create mode 100644 jdcloud_sdk/services/asset/apis/ModifyBalanceWarningInfoRequest.py create mode 100644 jdcloud_sdk/services/asset/apis/__init__.py create mode 100644 jdcloud_sdk/services/asset/client/AssetClient.py create mode 100644 jdcloud_sdk/services/asset/client/__init__.py create mode 100644 jdcloud_sdk/services/asset/models/BalanceWarningInfoVo.py create mode 100644 jdcloud_sdk/services/asset/models/BalanceWarningStatusVo.py create mode 100644 jdcloud_sdk/services/asset/models/BalanceWarningThresholdVo.py create mode 100644 jdcloud_sdk/services/asset/models/BankInfoVo.py create mode 100644 jdcloud_sdk/services/asset/models/OffLineRemittanceBillInfo.py create mode 100644 jdcloud_sdk/services/asset/models/OperatingStatement.py create mode 100644 jdcloud_sdk/services/asset/models/OperatingStatementVo.py create mode 100644 jdcloud_sdk/services/asset/models/PageInfoVo.py create mode 100644 jdcloud_sdk/services/asset/models/PayTypeVo.py create mode 100644 jdcloud_sdk/services/asset/models/RechargeVo.py create mode 100644 jdcloud_sdk/services/asset/models/ReduceBalanceParam.py create mode 100644 jdcloud_sdk/services/asset/models/Voucher.py create mode 100644 jdcloud_sdk/services/asset/models/WarnedGroupVo.py create mode 100644 jdcloud_sdk/services/asset/models/WarnedUserVo.py create mode 100644 jdcloud_sdk/services/asset/models/WarningInfoVo.py create mode 100644 jdcloud_sdk/services/asset/models/WithdrawAmountVo.py create mode 100644 jdcloud_sdk/services/asset/models/WithdrawalsCondition.py create mode 100644 jdcloud_sdk/services/asset/models/WithdrawalsVo.py create mode 100644 jdcloud_sdk/services/asset/models/__init__.py diff --git a/jdcloud_sdk/services/asset/ChangeLog.md b/jdcloud_sdk/services/asset/ChangeLog.md new file mode 100644 index 00000000..b3bbac34 --- /dev/null +++ b/jdcloud_sdk/services/asset/ChangeLog.md @@ -0,0 +1,8 @@ +# 更新历史 # +API版本:0.0.2 + +| 发布时间 | 版本号 | 更新 | 说明 | +| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 2020-07-07 | 0.0.2 | 完善返回字段描述信息 | 开放查询余额openAPI接口,完善返回字段描述信息 | | +| 2019-04-30 | 0.0.1 | 接口新增与更新 |初始版本,提供控制台以下功能接口:
1、控制台查询余额、充值状态、余额预警信息
2、消费/充值/提现列表
3、设置余额预警(开关/金额
4、充值、提现 | | + diff --git a/jdcloud_sdk/services/asset/__init__.py b/jdcloud_sdk/services/asset/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/asset/apis/DescribeAccountAmountRequest.py b/jdcloud_sdk/services/asset/apis/DescribeAccountAmountRequest.py new file mode 100644 index 00000000..85eab0b7 --- /dev/null +++ b/jdcloud_sdk/services/asset/apis/DescribeAccountAmountRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/asset/apis/ModifyBalanceWarningInfoRequest.py b/jdcloud_sdk/services/asset/apis/ModifyBalanceWarningInfoRequest.py new file mode 100644 index 00000000..6e9f4d5c --- /dev/null +++ b/jdcloud_sdk/services/asset/apis/ModifyBalanceWarningInfoRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/asset/apis/__init__.py b/jdcloud_sdk/services/asset/apis/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/asset/client/AssetClient.py b/jdcloud_sdk/services/asset/client/AssetClient.py new file mode 100644 index 00000000..12e28c9d --- /dev/null +++ b/jdcloud_sdk/services/asset/client/AssetClient.py @@ -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) diff --git a/jdcloud_sdk/services/asset/client/__init__.py b/jdcloud_sdk/services/asset/client/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jdcloud_sdk/services/asset/models/BalanceWarningInfoVo.py b/jdcloud_sdk/services/asset/models/BalanceWarningInfoVo.py new file mode 100644 index 00000000..30d1661b --- /dev/null +++ b/jdcloud_sdk/services/asset/models/BalanceWarningInfoVo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/BalanceWarningStatusVo.py b/jdcloud_sdk/services/asset/models/BalanceWarningStatusVo.py new file mode 100644 index 00000000..f34672d5 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/BalanceWarningStatusVo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/BalanceWarningThresholdVo.py b/jdcloud_sdk/services/asset/models/BalanceWarningThresholdVo.py new file mode 100644 index 00000000..714f3182 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/BalanceWarningThresholdVo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/BankInfoVo.py b/jdcloud_sdk/services/asset/models/BankInfoVo.py new file mode 100644 index 00000000..ec41296a --- /dev/null +++ b/jdcloud_sdk/services/asset/models/BankInfoVo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/OffLineRemittanceBillInfo.py b/jdcloud_sdk/services/asset/models/OffLineRemittanceBillInfo.py new file mode 100644 index 00000000..96d5c14c --- /dev/null +++ b/jdcloud_sdk/services/asset/models/OffLineRemittanceBillInfo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/OperatingStatement.py b/jdcloud_sdk/services/asset/models/OperatingStatement.py new file mode 100644 index 00000000..0b4a5755 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/OperatingStatement.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/OperatingStatementVo.py b/jdcloud_sdk/services/asset/models/OperatingStatementVo.py new file mode 100644 index 00000000..a4a374d1 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/OperatingStatementVo.py @@ -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 diff --git a/jdcloud_sdk/services/asset/models/PageInfoVo.py b/jdcloud_sdk/services/asset/models/PageInfoVo.py new file mode 100644 index 00000000..c08a964a --- /dev/null +++ b/jdcloud_sdk/services/asset/models/PageInfoVo.py @@ -0,0 +1,33 @@ +# 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 PageInfoVo(object): + + def __init__(self, currentPage=None, pageSize=None, totalRecord=None, totalPage=None): + """ + :param currentPage: (Optional) 当前页码 + :param pageSize: (Optional) 每页条数 + :param totalRecord: (Optional) 总条数 + :param totalPage: (Optional) 总页数 + """ + + self.currentPage = currentPage + self.pageSize = pageSize + self.totalRecord = totalRecord + self.totalPage = totalPage diff --git a/jdcloud_sdk/services/asset/models/PayTypeVo.py b/jdcloud_sdk/services/asset/models/PayTypeVo.py new file mode 100644 index 00000000..a26fa4cf --- /dev/null +++ b/jdcloud_sdk/services/asset/models/PayTypeVo.py @@ -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 PayTypeVo(object): + + def __init__(self, payType=None, isEnable=None): + """ + :param payType: (Optional) 支付方式 + :param isEnable: (Optional) 是否可用:1-可用;0-不可用 + """ + + self.payType = payType + self.isEnable = isEnable diff --git a/jdcloud_sdk/services/asset/models/RechargeVo.py b/jdcloud_sdk/services/asset/models/RechargeVo.py new file mode 100644 index 00000000..85b0a84c --- /dev/null +++ b/jdcloud_sdk/services/asset/models/RechargeVo.py @@ -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 RechargeVo(object): + + def __init__(self, rechargeType=None, rechargeAmount=None, bankCode=None): + """ + :param rechargeType: (Optional) 充值方式 + :param rechargeAmount: (Optional) 充值金额 + :param bankCode: (Optional) 银行代码 + """ + + self.rechargeType = rechargeType + self.rechargeAmount = rechargeAmount + self.bankCode = bankCode diff --git a/jdcloud_sdk/services/asset/models/ReduceBalanceParam.py b/jdcloud_sdk/services/asset/models/ReduceBalanceParam.py new file mode 100644 index 00000000..d41e3f67 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/ReduceBalanceParam.py @@ -0,0 +1,33 @@ +# 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 ReduceBalanceParam(object): + + def __init__(self, pin, currentBalance, reducedAmount, reducedReason, ): + """ + :param pin: 要扣减余额的pin + :param currentBalance: 当前余额 + :param reducedAmount: 要扣减的金额:不能大于当前余额,不能为0,不能为负数,只支持两位小数 + :param reducedReason: 扣减原因 + """ + + self.pin = pin + self.currentBalance = currentBalance + self.reducedAmount = reducedAmount + self.reducedReason = reducedReason diff --git a/jdcloud_sdk/services/asset/models/Voucher.py b/jdcloud_sdk/services/asset/models/Voucher.py new file mode 100644 index 00000000..6c618156 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/Voucher.py @@ -0,0 +1,53 @@ +# 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 Voucher(object): + + def __init__(self, cashingFee=None, createTime=None, endTime=None, erpOrderId=None, fee=None, id=None, paymentChannel=None, paymentNumber=None, pin=None, rechargeType=None, status=None, updateTime=None, usableFee=None, userAllFee=None): + """ + :param cashingFee: (Optional) + :param createTime: (Optional) + :param endTime: (Optional) + :param erpOrderId: (Optional) + :param fee: (Optional) + :param id: (Optional) + :param paymentChannel: (Optional) + :param paymentNumber: (Optional) + :param pin: (Optional) + :param rechargeType: (Optional) + :param status: (Optional) + :param updateTime: (Optional) + :param usableFee: (Optional) + :param userAllFee: (Optional) + """ + + self.cashingFee = cashingFee + self.createTime = createTime + self.endTime = endTime + self.erpOrderId = erpOrderId + self.fee = fee + self.id = id + self.paymentChannel = paymentChannel + self.paymentNumber = paymentNumber + self.pin = pin + self.rechargeType = rechargeType + self.status = status + self.updateTime = updateTime + self.usableFee = usableFee + self.userAllFee = userAllFee diff --git a/jdcloud_sdk/services/asset/models/WarnedGroupVo.py b/jdcloud_sdk/services/asset/models/WarnedGroupVo.py new file mode 100644 index 00000000..48d45d4b --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WarnedGroupVo.py @@ -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 WarnedGroupVo(object): + + def __init__(self, groupName=None, mobile=None, email=None): + """ + :param groupName: (Optional) 联系组名称 + :param mobile: (Optional) 联系组手机 + :param email: (Optional) 联系组邮箱 + """ + + self.groupName = groupName + self.mobile = mobile + self.email = email diff --git a/jdcloud_sdk/services/asset/models/WarnedUserVo.py b/jdcloud_sdk/services/asset/models/WarnedUserVo.py new file mode 100644 index 00000000..92fa59f7 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WarnedUserVo.py @@ -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 WarnedUserVo(object): + + def __init__(self, userName=None, mobile=None, email=None): + """ + :param userName: (Optional) 联系人名称 + :param mobile: (Optional) 联系人手机 + :param email: (Optional) 联系人邮箱 + """ + + self.userName = userName + self.mobile = mobile + self.email = email diff --git a/jdcloud_sdk/services/asset/models/WarningInfoVo.py b/jdcloud_sdk/services/asset/models/WarningInfoVo.py new file mode 100644 index 00000000..7991f63d --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WarningInfoVo.py @@ -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 WarningInfoVo(object): + + def __init__(self, status=None, threshold=None): + """ + :param status: (Optional) 余额预警状态:1-开启;2-关闭 + :param threshold: (Optional) 余额预警阈值 + """ + + self.status = status + self.threshold = threshold diff --git a/jdcloud_sdk/services/asset/models/WithdrawAmountVo.py b/jdcloud_sdk/services/asset/models/WithdrawAmountVo.py new file mode 100644 index 00000000..def12029 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WithdrawAmountVo.py @@ -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 WithdrawAmountVo(object): + + def __init__(self, amount=None): + """ + :param amount: (Optional) 提现金额 + """ + + self.amount = amount diff --git a/jdcloud_sdk/services/asset/models/WithdrawalsCondition.py b/jdcloud_sdk/services/asset/models/WithdrawalsCondition.py new file mode 100644 index 00000000..f92d3854 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WithdrawalsCondition.py @@ -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 WithdrawalsCondition(object): + + def __init__(self, beginTime=None, endTime=None, pageNum=None, pageSize=None, pin=None, sort=None): + """ + :param beginTime: (Optional) + :param endTime: (Optional) + :param pageNum: (Optional) + :param pageSize: (Optional) + :param pin: (Optional) + :param sort: (Optional) + """ + + self.beginTime = beginTime + self.endTime = endTime + self.pageNum = pageNum + self.pageSize = pageSize + self.pin = pin + self.sort = sort diff --git a/jdcloud_sdk/services/asset/models/WithdrawalsVo.py b/jdcloud_sdk/services/asset/models/WithdrawalsVo.py new file mode 100644 index 00000000..865e57e0 --- /dev/null +++ b/jdcloud_sdk/services/asset/models/WithdrawalsVo.py @@ -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. + + +class WithdrawalsVo(object): + + def __init__(self, createTime=None, fee=None, id=None, pin=None, remark=None, status=None, updateTime=None, usableFee=None, withdrawalsId=None): + """ + :param createTime: (Optional) + :param fee: (Optional) + :param id: (Optional) + :param pin: (Optional) + :param remark: (Optional) + :param status: (Optional) + :param updateTime: (Optional) + :param usableFee: (Optional) + :param withdrawalsId: (Optional) + """ + + self.createTime = createTime + self.fee = fee + self.id = id + self.pin = pin + self.remark = remark + self.status = status + self.updateTime = updateTime + self.usableFee = usableFee + self.withdrawalsId = withdrawalsId diff --git a/jdcloud_sdk/services/asset/models/__init__.py b/jdcloud_sdk/services/asset/models/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/setup.py b/setup.py index 4bb39209..c8dafd2f 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='jdcloud_sdk', - version="1.6.67", + version="1.6.68", long_description=long_description, long_description_content_type="text/markdown", author='JDCloud API Gateway Team', From f67d2f584d7796031b2e17d0c301184e54ad0d92 Mon Sep 17 00:00:00 2001 From: Tanc009 Date: Thu, 9 Jul 2020 14:15:41 +0800 Subject: [PATCH 2/2] Update vm_test.py --- demo/vm_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demo/vm_test.py b/demo/vm_test.py index 20b41161..5b3fcc13 100644 --- a/demo/vm_test.py +++ b/demo/vm_test.py @@ -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)