From aab08f0a43619999ad6146cdf0e2e1a3482055af Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 19 Jul 2019 17:51:25 +0800 Subject: [PATCH] QueryMonthlyBillResponse add roundDownDiscount. --- CHANGELOG | 5 + VERSION | 2 +- .../ChangeResellerConsumeAmountRequest.h | 69 ++++++++++ .../model/ChangeResellerConsumeAmountResult.h | 57 ++++++++ .../bssopenapi/model/CreateAgAccountRequest.h | 72 ++++++++++ .../bssopenapi/model/CreateAgAccountResult.h | 64 +++++++++ .../bssopenapi/model/CreateInstanceRequest.h | 3 + .../model/CreateResellerUserQuotaRequest.h | 57 ++++++++ .../model/CreateResellerUserQuotaResult.h | 57 ++++++++ .../model/GetCustomerAccountInfoRequest.h | 48 +++++++ .../model/GetCustomerAccountInfoResult.h | 66 +++++++++ .../bssopenapi/model/GetCustomerListRequest.h | 45 +++++++ .../bssopenapi/model/GetCustomerListResult.h | 61 +++++++++ .../bssopenapi/model/GetOrderDetailResult.h | 1 + .../bssopenapi/model/ModifyInstanceRequest.h | 3 + .../model/QueryAccountTransactionsRequest.h | 66 +++++++++ .../model/QueryAccountTransactionsResult.h | 81 +++++++++++ .../model/QueryBillOverviewResult.h | 1 + .../bssopenapi/model/QueryBillResult.h | 1 + .../model/QueryInstanceBillResult.h | 11 +- .../bssopenapi/model/QueryOrdersResult.h | 1 + .../QueryResellerAvailableQuotaRequest.h | 51 +++++++ .../model/QueryResellerAvailableQuotaResult.h | 57 ++++++++ .../SetResellerUserAlarmThresholdRequest.h | 54 ++++++++ .../SetResellerUserAlarmThresholdResult.h | 57 ++++++++ .../model/SetResellerUserQuotaRequest.h | 57 ++++++++ .../model/SetResellerUserQuotaResult.h | 57 ++++++++ .../model/SetResellerUserStatusRequest.h | 54 ++++++++ .../model/SetResellerUserStatusResult.h | 57 ++++++++ .../ChangeResellerConsumeAmountRequest.cc | 115 ++++++++++++++++ .../ChangeResellerConsumeAmountResult.cc | 73 ++++++++++ .../src/model/CreateAgAccountRequest.cc | 126 ++++++++++++++++++ bssopenapi/src/model/CreateAgAccountResult.cc | 80 +++++++++++ bssopenapi/src/model/CreateInstanceRequest.cc | 11 ++ .../model/CreateResellerUserQuotaRequest.cc | 71 ++++++++++ .../model/CreateResellerUserQuotaResult.cc | 73 ++++++++++ .../model/GetCustomerAccountInfoRequest.cc | 38 ++++++ .../src/model/GetCustomerAccountInfoResult.cc | 84 ++++++++++++ .../src/model/GetCustomerListRequest.cc | 27 ++++ bssopenapi/src/model/GetCustomerListResult.cc | 75 +++++++++++ bssopenapi/src/model/GetOrderDetailResult.cc | 2 + bssopenapi/src/model/ModifyInstanceRequest.cc | 11 ++ .../model/QueryAccountTransactionsRequest.cc | 104 +++++++++++++++ .../model/QueryAccountTransactionsResult.cc | 112 ++++++++++++++++ .../src/model/QueryBillOverviewResult.cc | 2 + bssopenapi/src/model/QueryBillResult.cc | 2 + .../src/model/QueryInstanceBillResult.cc | 22 ++- bssopenapi/src/model/QueryOrdersResult.cc | 2 + .../QueryResellerAvailableQuotaRequest.cc | 49 +++++++ .../QueryResellerAvailableQuotaResult.cc | 73 ++++++++++ .../SetResellerUserAlarmThresholdRequest.cc | 60 +++++++++ .../SetResellerUserAlarmThresholdResult.cc | 73 ++++++++++ .../src/model/SetResellerUserQuotaRequest.cc | 71 ++++++++++ .../src/model/SetResellerUserQuotaResult.cc | 73 ++++++++++ .../src/model/SetResellerUserStatusRequest.cc | 60 +++++++++ .../src/model/SetResellerUserStatusResult.cc | 73 ++++++++++ 56 files changed, 2773 insertions(+), 4 deletions(-) create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h create mode 100644 bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h create mode 100644 bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc create mode 100644 bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc create mode 100644 bssopenapi/src/model/CreateAgAccountRequest.cc create mode 100644 bssopenapi/src/model/CreateAgAccountResult.cc create mode 100644 bssopenapi/src/model/CreateResellerUserQuotaRequest.cc create mode 100644 bssopenapi/src/model/CreateResellerUserQuotaResult.cc create mode 100644 bssopenapi/src/model/GetCustomerAccountInfoRequest.cc create mode 100644 bssopenapi/src/model/GetCustomerAccountInfoResult.cc create mode 100644 bssopenapi/src/model/GetCustomerListRequest.cc create mode 100644 bssopenapi/src/model/GetCustomerListResult.cc create mode 100644 bssopenapi/src/model/QueryAccountTransactionsRequest.cc create mode 100644 bssopenapi/src/model/QueryAccountTransactionsResult.cc create mode 100644 bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc create mode 100644 bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc create mode 100644 bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc create mode 100644 bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc create mode 100644 bssopenapi/src/model/SetResellerUserQuotaRequest.cc create mode 100644 bssopenapi/src/model/SetResellerUserQuotaResult.cc create mode 100644 bssopenapi/src/model/SetResellerUserStatusRequest.cc create mode 100644 bssopenapi/src/model/SetResellerUserStatusResult.cc diff --git a/CHANGELOG b/CHANGELOG index bc53710e3..52a17cbb0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2019-07-19 Version 1.36.67 +- QueryMonthlyBillResponse add roundDownDiscount. +- QueryBillResponse add roundDownDiscount. +- QueryInstanceBillResponse add item. + 2019-07-18 Version 1.36.66 - Add a new field named Input to SubmitAIJob api request to set the input file of AI job. - Change the field MediaId of SubmitAIJob api to non-mandatory. diff --git a/VERSION b/VERSION index 6d2be3189..8331824f0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.66 \ No newline at end of file +1.36.67 \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h new file mode 100644 index 000000000..2df1b5365 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountRequest : public RpcServiceRequest + { + + public: + ChangeResellerConsumeAmountRequest(); + ~ChangeResellerConsumeAmountRequest(); + + std::string getAdjustType()const; + void setAdjustType(const std::string& adjustType); + std::string getAmount()const; + void setAmount(const std::string& amount); + std::string getOutBizId()const; + void setOutBizId(const std::string& outBizId); + std::string getExtendMap()const; + void setExtendMap(const std::string& extendMap); + std::string getCurrency()const; + void setCurrency(const std::string& currency); + std::string getSource()const; + void setSource(const std::string& source); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getBusinessType()const; + void setBusinessType(const std::string& businessType); + + private: + std::string adjustType_; + std::string amount_; + std::string outBizId_; + std::string extendMap_; + std::string currency_; + std::string source_; + long ownerId_; + std::string businessType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h new file mode 100644 index 000000000..7b5449299 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ChangeResellerConsumeAmountResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT ChangeResellerConsumeAmountResult : public ServiceResult + { + public: + + + ChangeResellerConsumeAmountResult(); + explicit ChangeResellerConsumeAmountResult(const std::string &payload); + ~ChangeResellerConsumeAmountResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGERESELLERCONSUMEAMOUNTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h new file mode 100644 index 000000000..28be3ad62 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountRequest : public RpcServiceRequest + { + + public: + CreateAgAccountRequest(); + ~CreateAgAccountRequest(); + + std::string getFirstName()const; + void setFirstName(const std::string& firstName); + std::string getLoginEmail()const; + void setLoginEmail(const std::string& loginEmail); + std::string getProvinceName()const; + void setProvinceName(const std::string& provinceName); + std::string getCityName()const; + void setCityName(const std::string& cityName); + std::string getAccountAttr()const; + void setAccountAttr(const std::string& accountAttr); + std::string getPostcode()const; + void setPostcode(const std::string& postcode); + std::string getEnterpriseName()const; + void setEnterpriseName(const std::string& enterpriseName); + std::string getNationCode()const; + void setNationCode(const std::string& nationCode); + std::string getLastName()const; + void setLastName(const std::string& lastName); + + private: + std::string firstName_; + std::string loginEmail_; + std::string provinceName_; + std::string cityName_; + std::string accountAttr_; + std::string postcode_; + std::string enterpriseName_; + std::string nationCode_; + std::string lastName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h new file mode 100644 index 000000000..a9085cfcb --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateAgAccountResult : public ServiceResult + { + public: + struct AgRelationDto + { + std::string type; + std::string mpk; + std::string pk; + std::string ramAdminRoleName; + }; + + + CreateAgAccountResult(); + explicit CreateAgAccountResult(const std::string &payload); + ~CreateAgAccountResult(); + std::string getMessage()const; + AgRelationDto getAgRelationDto()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + AgRelationDto agRelationDto_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEAGACCOUNTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h index 4e2c9922c..14034c695 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h @@ -44,6 +44,8 @@ namespace AlibabaCloud void setProductCode(const std::string& productCode); int getPeriod()const; void setPeriod(int period); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getSubscriptionType()const; void setSubscriptionType(const std::string& subscriptionType); int getRenewPeriod()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud private: std::string productCode_; int period_; + std::string clientToken_; std::string subscriptionType_; int renewPeriod_; std::vector parameter_; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h new file mode 100644 index 000000000..c0f588368 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaRequest : public RpcServiceRequest + { + + public: + CreateResellerUserQuotaRequest(); + ~CreateResellerUserQuotaRequest(); + + std::string getAmount()const; + void setAmount(const std::string& amount); + std::string getOutBizId()const; + void setOutBizId(const std::string& outBizId); + std::string getCurrency()const; + void setCurrency(const std::string& currency); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string amount_; + std::string outBizId_; + std::string currency_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h new file mode 100644 index 000000000..5e949eb19 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateResellerUserQuotaResult : public ServiceResult + { + public: + + + CreateResellerUserQuotaResult(); + explicit CreateResellerUserQuotaResult(const std::string &payload); + ~CreateResellerUserQuotaResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATERESELLERUSERQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h new file mode 100644 index 000000000..822216391 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoRequest : public RpcServiceRequest + { + + public: + GetCustomerAccountInfoRequest(); + ~GetCustomerAccountInfoRequest(); + + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFOREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h new file mode 100644 index 000000000..8e1d260e8 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerAccountInfoResult : public ServiceResult + { + public: + struct Data + { + std::string loginEmail; + std::string creditLimitStatus; + std::string hostingStatus; + long mpk; + bool isCertified; + std::string accountType; + }; + + + GetCustomerAccountInfoResult(); + explicit GetCustomerAccountInfoResult(const std::string &payload); + ~GetCustomerAccountInfoResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERACCOUNTINFORESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h new file mode 100644 index 000000000..b15eae737 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListRequest : public RpcServiceRequest + { + + public: + GetCustomerListRequest(); + ~GetCustomerListRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h new file mode 100644 index 000000000..d07ee027e --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetCustomerListResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT GetCustomerListResult : public ServiceResult + { + public: + struct Data + { + std::vector uidList; + }; + + + GetCustomerListResult(); + explicit GetCustomerListResult(const std::string &payload); + ~GetCustomerListResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_GETCUSTOMERLISTRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h index 9f8ff909e..fbd8e3eb2 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud std::string createTime; std::string productType; std::string quantity; + std::string relatedOrderId; std::string paymentTime; std::string tax; std::string paymentCurrency; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h index d98cda42c..b2ba18e99 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h @@ -44,6 +44,8 @@ namespace AlibabaCloud void setProductCode(const std::string& productCode); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); std::string getSubscriptionType()const; void setSubscriptionType(const std::string& subscriptionType); std::string getModifyType()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud private: std::string productCode_; std::string instanceId_; + std::string clientToken_; std::string subscriptionType_; std::string modifyType_; std::vector parameter_; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h new file mode 100644 index 000000000..3137e52b5 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsRequest : public RpcServiceRequest + { + + public: + QueryAccountTransactionsRequest(); + ~QueryAccountTransactionsRequest(); + + std::string getRecordID()const; + void setRecordID(const std::string& recordID); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTransactionChannelSN()const; + void setTransactionChannelSN(const std::string& transactionChannelSN); + std::string getCreateTimeStart()const; + void setCreateTimeStart(const std::string& createTimeStart); + std::string getTransactionNumber()const; + void setTransactionNumber(const std::string& transactionNumber); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getCreateTimeEnd()const; + void setCreateTimeEnd(const std::string& createTimeEnd); + + private: + std::string recordID_; + int pageSize_; + std::string transactionChannelSN_; + std::string createTimeStart_; + std::string transactionNumber_; + int pageNum_; + std::string createTimeEnd_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h new file mode 100644 index 000000000..2cb9c3364 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionsResult : public ServiceResult + { + public: + struct Data + { + struct AccountTransactionsListItem + { + std::string transactionType; + std::string billingCycle; + std::string transactionNumber; + std::string amount; + std::string transactionAccount; + std::string transactionTime; + std::string transactionChannelSN; + std::string remarks; + std::string fundType; + std::string transactionFlow; + std::string recordID; + std::string balance; + std::string transactionChannel; + }; + int totalCount; + int pageNum; + int pageSize; + std::vector accountTransactionsList; + std::string accountName; + }; + + + QueryAccountTransactionsResult(); + explicit QueryAccountTransactionsResult(const std::string &payload); + ~QueryAccountTransactionsResult(); + std::string getMessage()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h index 93ba52f59..e1bcff051 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { float deductedByCoupons; float afterTaxAmount; + std::string roundDownDiscount; std::string productName; std::string productDetail; std::string productCode; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h index f8398f9f5..81e4aba30 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryBillResult.h @@ -54,6 +54,7 @@ namespace AlibabaCloud std::string status; std::string paymentTransactionID; float deductedByCoupons; + std::string roundDownDiscount; std::string productDetail; std::string productCode; std::string productType; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h index 64ed97ffc..00537db12 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct Item { + std::string instanceSpec; std::string productName; std::string instanceID; float deductedByCashCoupons; @@ -45,22 +46,30 @@ namespace AlibabaCloud float deductedByPrepaidCard; float invoiceDiscount; std::string subscriptionType; + std::string item; float pretaxGrossAmount; + std::string instanceConfig; std::string currency; std::string costUnit; + std::string resourceGroup; std::string billingType; float usage; float deductedByCoupons; std::string productDetail; std::string productCode; + std::string zone; std::string productType; float outstandingAmount; std::string billingItem; - float servicePeriod; + std::string nickName; + std::string intranetIP; float deductedByResourcePackage; std::string usageUnit; long ownerID; float pretaxAmount; + std::string internetIP; + std::string region; + std::string tag; }; std::string billingCycle; int totalCount; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h index b67e18255..ae03d23ae 100644 --- a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryOrdersResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string productCode; std::string createTime; std::string productType; + std::string relatedOrderId; std::string paymentTime; std::string tax; std::string paymentCurrency; diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h new file mode 100644 index 000000000..7083aff0e --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaRequest : public RpcServiceRequest + { + + public: + QueryResellerAvailableQuotaRequest(); + ~QueryResellerAvailableQuotaRequest(); + + std::string getItemCodes()const; + void setItemCodes(const std::string& itemCodes); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string itemCodes_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h new file mode 100644 index 000000000..8f8fbc9f9 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryResellerAvailableQuotaResult : public ServiceResult + { + public: + + + QueryResellerAvailableQuotaResult(); + explicit QueryResellerAvailableQuotaResult(const std::string &payload); + ~QueryResellerAvailableQuotaResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRESELLERAVAILABLEQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h new file mode 100644 index 000000000..ae37de8fd --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdRequest : public RpcServiceRequest + { + + public: + SetResellerUserAlarmThresholdRequest(); + ~SetResellerUserAlarmThresholdRequest(); + + std::string getAlarmType()const; + void setAlarmType(const std::string& alarmType); + std::string getAlarmThresholds()const; + void setAlarmThresholds(const std::string& alarmThresholds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string alarmType_; + std::string alarmThresholds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h new file mode 100644 index 000000000..4e6b3cec9 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserAlarmThresholdResult : public ServiceResult + { + public: + + + SetResellerUserAlarmThresholdResult(); + explicit SetResellerUserAlarmThresholdResult(const std::string &payload); + ~SetResellerUserAlarmThresholdResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERALARMTHRESHOLDRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h new file mode 100644 index 000000000..63542b6f2 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaRequest : public RpcServiceRequest + { + + public: + SetResellerUserQuotaRequest(); + ~SetResellerUserQuotaRequest(); + + std::string getAmount()const; + void setAmount(const std::string& amount); + std::string getOutBizId()const; + void setOutBizId(const std::string& outBizId); + std::string getCurrency()const; + void setCurrency(const std::string& currency); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string amount_; + std::string outBizId_; + std::string currency_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTAREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h new file mode 100644 index 000000000..c8e6e9044 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserQuotaResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserQuotaResult : public ServiceResult + { + public: + + + SetResellerUserQuotaResult(); + explicit SetResellerUserQuotaResult(const std::string &payload); + ~SetResellerUserQuotaResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERQUOTARESULT_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h new file mode 100644 index 000000000..8a9b4ac0c --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusRequest : public RpcServiceRequest + { + + public: + SetResellerUserStatusRequest(); + ~SetResellerUserStatusRequest(); + + std::string getOwnerId()const; + void setOwnerId(const std::string& ownerId); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getBusinessType()const; + void setBusinessType(const std::string& businessType); + + private: + std::string ownerId_; + std::string status_; + std::string businessType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSREQUEST_H_ \ No newline at end of file diff --git a/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h new file mode 100644 index 000000000..6fba4c7e7 --- /dev/null +++ b/bssopenapi/include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ +#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace BssOpenApi + { + namespace Model + { + class ALIBABACLOUD_BSSOPENAPI_EXPORT SetResellerUserStatusResult : public ServiceResult + { + public: + + + SetResellerUserStatusResult(); + explicit SetResellerUserStatusResult(const std::string &payload); + ~SetResellerUserStatusResult(); + std::string getMessage()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETRESELLERUSERSTATUSRESULT_H_ \ No newline at end of file diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc new file mode 100644 index 000000000..9c00ab092 --- /dev/null +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::ChangeResellerConsumeAmountRequest; + +ChangeResellerConsumeAmountRequest::ChangeResellerConsumeAmountRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeResellerConsumeAmount") +{} + +ChangeResellerConsumeAmountRequest::~ChangeResellerConsumeAmountRequest() +{} + +std::string ChangeResellerConsumeAmountRequest::getAdjustType()const +{ + return adjustType_; +} + +void ChangeResellerConsumeAmountRequest::setAdjustType(const std::string& adjustType) +{ + adjustType_ = adjustType; + setCoreParameter("AdjustType", adjustType); +} + +std::string ChangeResellerConsumeAmountRequest::getAmount()const +{ + return amount_; +} + +void ChangeResellerConsumeAmountRequest::setAmount(const std::string& amount) +{ + amount_ = amount; + setCoreParameter("Amount", amount); +} + +std::string ChangeResellerConsumeAmountRequest::getOutBizId()const +{ + return outBizId_; +} + +void ChangeResellerConsumeAmountRequest::setOutBizId(const std::string& outBizId) +{ + outBizId_ = outBizId; + setCoreParameter("OutBizId", outBizId); +} + +std::string ChangeResellerConsumeAmountRequest::getExtendMap()const +{ + return extendMap_; +} + +void ChangeResellerConsumeAmountRequest::setExtendMap(const std::string& extendMap) +{ + extendMap_ = extendMap; + setCoreParameter("ExtendMap", extendMap); +} + +std::string ChangeResellerConsumeAmountRequest::getCurrency()const +{ + return currency_; +} + +void ChangeResellerConsumeAmountRequest::setCurrency(const std::string& currency) +{ + currency_ = currency; + setCoreParameter("Currency", currency); +} + +std::string ChangeResellerConsumeAmountRequest::getSource()const +{ + return source_; +} + +void ChangeResellerConsumeAmountRequest::setSource(const std::string& source) +{ + source_ = source; + setCoreParameter("Source", source); +} + +long ChangeResellerConsumeAmountRequest::getOwnerId()const +{ + return ownerId_; +} + +void ChangeResellerConsumeAmountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ChangeResellerConsumeAmountRequest::getBusinessType()const +{ + return businessType_; +} + +void ChangeResellerConsumeAmountRequest::setBusinessType(const std::string& businessType) +{ + businessType_ = businessType; + setCoreParameter("BusinessType", businessType); +} + diff --git a/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc new file mode 100644 index 000000000..3069a191d --- /dev/null +++ b/bssopenapi/src/model/ChangeResellerConsumeAmountResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult() : + ServiceResult() +{} + +ChangeResellerConsumeAmountResult::ChangeResellerConsumeAmountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResellerConsumeAmountResult::~ChangeResellerConsumeAmountResult() +{} + +void ChangeResellerConsumeAmountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string ChangeResellerConsumeAmountResult::getMessage()const +{ + return message_; +} + +std::string ChangeResellerConsumeAmountResult::getData()const +{ + return data_; +} + +std::string ChangeResellerConsumeAmountResult::getCode()const +{ + return code_; +} + +bool ChangeResellerConsumeAmountResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/CreateAgAccountRequest.cc b/bssopenapi/src/model/CreateAgAccountRequest.cc new file mode 100644 index 000000000..f71b5f1c2 --- /dev/null +++ b/bssopenapi/src/model/CreateAgAccountRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateAgAccountRequest; + +CreateAgAccountRequest::CreateAgAccountRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateAgAccount") +{} + +CreateAgAccountRequest::~CreateAgAccountRequest() +{} + +std::string CreateAgAccountRequest::getFirstName()const +{ + return firstName_; +} + +void CreateAgAccountRequest::setFirstName(const std::string& firstName) +{ + firstName_ = firstName; + setCoreParameter("FirstName", firstName); +} + +std::string CreateAgAccountRequest::getLoginEmail()const +{ + return loginEmail_; +} + +void CreateAgAccountRequest::setLoginEmail(const std::string& loginEmail) +{ + loginEmail_ = loginEmail; + setCoreParameter("LoginEmail", loginEmail); +} + +std::string CreateAgAccountRequest::getProvinceName()const +{ + return provinceName_; +} + +void CreateAgAccountRequest::setProvinceName(const std::string& provinceName) +{ + provinceName_ = provinceName; + setCoreParameter("ProvinceName", provinceName); +} + +std::string CreateAgAccountRequest::getCityName()const +{ + return cityName_; +} + +void CreateAgAccountRequest::setCityName(const std::string& cityName) +{ + cityName_ = cityName; + setCoreParameter("CityName", cityName); +} + +std::string CreateAgAccountRequest::getAccountAttr()const +{ + return accountAttr_; +} + +void CreateAgAccountRequest::setAccountAttr(const std::string& accountAttr) +{ + accountAttr_ = accountAttr; + setCoreParameter("AccountAttr", accountAttr); +} + +std::string CreateAgAccountRequest::getPostcode()const +{ + return postcode_; +} + +void CreateAgAccountRequest::setPostcode(const std::string& postcode) +{ + postcode_ = postcode; + setCoreParameter("Postcode", postcode); +} + +std::string CreateAgAccountRequest::getEnterpriseName()const +{ + return enterpriseName_; +} + +void CreateAgAccountRequest::setEnterpriseName(const std::string& enterpriseName) +{ + enterpriseName_ = enterpriseName; + setCoreParameter("EnterpriseName", enterpriseName); +} + +std::string CreateAgAccountRequest::getNationCode()const +{ + return nationCode_; +} + +void CreateAgAccountRequest::setNationCode(const std::string& nationCode) +{ + nationCode_ = nationCode; + setCoreParameter("NationCode", nationCode); +} + +std::string CreateAgAccountRequest::getLastName()const +{ + return lastName_; +} + +void CreateAgAccountRequest::setLastName(const std::string& lastName) +{ + lastName_ = lastName; + setCoreParameter("LastName", lastName); +} + diff --git a/bssopenapi/src/model/CreateAgAccountResult.cc b/bssopenapi/src/model/CreateAgAccountResult.cc new file mode 100644 index 000000000..4d243f47e --- /dev/null +++ b/bssopenapi/src/model/CreateAgAccountResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateAgAccountResult::CreateAgAccountResult() : + ServiceResult() +{} + +CreateAgAccountResult::CreateAgAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAgAccountResult::~CreateAgAccountResult() +{} + +void CreateAgAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto agRelationDtoNode = value["AgRelationDto"]; + if(!agRelationDtoNode["Pk"].isNull()) + agRelationDto_.pk = agRelationDtoNode["Pk"].asString(); + if(!agRelationDtoNode["Type"].isNull()) + agRelationDto_.type = agRelationDtoNode["Type"].asString(); + if(!agRelationDtoNode["Mpk"].isNull()) + agRelationDto_.mpk = agRelationDtoNode["Mpk"].asString(); + if(!agRelationDtoNode["RamAdminRoleName"].isNull()) + agRelationDto_.ramAdminRoleName = agRelationDtoNode["RamAdminRoleName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateAgAccountResult::getMessage()const +{ + return message_; +} + +CreateAgAccountResult::AgRelationDto CreateAgAccountResult::getAgRelationDto()const +{ + return agRelationDto_; +} + +std::string CreateAgAccountResult::getCode()const +{ + return code_; +} + +bool CreateAgAccountResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/CreateInstanceRequest.cc b/bssopenapi/src/model/CreateInstanceRequest.cc index e2a86a14f..dc41f50ce 100644 --- a/bssopenapi/src/model/CreateInstanceRequest.cc +++ b/bssopenapi/src/model/CreateInstanceRequest.cc @@ -47,6 +47,17 @@ void CreateInstanceRequest::setPeriod(int period) setCoreParameter("Period", std::to_string(period)); } +std::string CreateInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + std::string CreateInstanceRequest::getSubscriptionType()const { return subscriptionType_; diff --git a/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc new file mode 100644 index 000000000..1cd5b82d5 --- /dev/null +++ b/bssopenapi/src/model/CreateResellerUserQuotaRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::CreateResellerUserQuotaRequest; + +CreateResellerUserQuotaRequest::CreateResellerUserQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "CreateResellerUserQuota") +{} + +CreateResellerUserQuotaRequest::~CreateResellerUserQuotaRequest() +{} + +std::string CreateResellerUserQuotaRequest::getAmount()const +{ + return amount_; +} + +void CreateResellerUserQuotaRequest::setAmount(const std::string& amount) +{ + amount_ = amount; + setCoreParameter("Amount", amount); +} + +std::string CreateResellerUserQuotaRequest::getOutBizId()const +{ + return outBizId_; +} + +void CreateResellerUserQuotaRequest::setOutBizId(const std::string& outBizId) +{ + outBizId_ = outBizId; + setCoreParameter("OutBizId", outBizId); +} + +std::string CreateResellerUserQuotaRequest::getCurrency()const +{ + return currency_; +} + +void CreateResellerUserQuotaRequest::setCurrency(const std::string& currency) +{ + currency_ = currency; + setCoreParameter("Currency", currency); +} + +long CreateResellerUserQuotaRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateResellerUserQuotaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/bssopenapi/src/model/CreateResellerUserQuotaResult.cc b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc new file mode 100644 index 000000000..62a26a3e2 --- /dev/null +++ b/bssopenapi/src/model/CreateResellerUserQuotaResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +CreateResellerUserQuotaResult::CreateResellerUserQuotaResult() : + ServiceResult() +{} + +CreateResellerUserQuotaResult::CreateResellerUserQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateResellerUserQuotaResult::~CreateResellerUserQuotaResult() +{} + +void CreateResellerUserQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string CreateResellerUserQuotaResult::getMessage()const +{ + return message_; +} + +bool CreateResellerUserQuotaResult::getData()const +{ + return data_; +} + +std::string CreateResellerUserQuotaResult::getCode()const +{ + return code_; +} + +bool CreateResellerUserQuotaResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc new file mode 100644 index 000000000..f0817a862 --- /dev/null +++ b/bssopenapi/src/model/GetCustomerAccountInfoRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetCustomerAccountInfoRequest; + +GetCustomerAccountInfoRequest::GetCustomerAccountInfoRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerAccountInfo") +{} + +GetCustomerAccountInfoRequest::~GetCustomerAccountInfoRequest() +{} + +long GetCustomerAccountInfoRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetCustomerAccountInfoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/bssopenapi/src/model/GetCustomerAccountInfoResult.cc b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc new file mode 100644 index 000000000..d6497a4e5 --- /dev/null +++ b/bssopenapi/src/model/GetCustomerAccountInfoResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetCustomerAccountInfoResult::GetCustomerAccountInfoResult() : + ServiceResult() +{} + +GetCustomerAccountInfoResult::GetCustomerAccountInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomerAccountInfoResult::~GetCustomerAccountInfoResult() +{} + +void GetCustomerAccountInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["LoginEmail"].isNull()) + data_.loginEmail = dataNode["LoginEmail"].asString(); + if(!dataNode["AccountType"].isNull()) + data_.accountType = dataNode["AccountType"].asString(); + if(!dataNode["Mpk"].isNull()) + data_.mpk = std::stol(dataNode["Mpk"].asString()); + if(!dataNode["HostingStatus"].isNull()) + data_.hostingStatus = dataNode["HostingStatus"].asString(); + if(!dataNode["CreditLimitStatus"].isNull()) + data_.creditLimitStatus = dataNode["CreditLimitStatus"].asString(); + if(!dataNode["IsCertified"].isNull()) + data_.isCertified = dataNode["IsCertified"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetCustomerAccountInfoResult::getMessage()const +{ + return message_; +} + +GetCustomerAccountInfoResult::Data GetCustomerAccountInfoResult::getData()const +{ + return data_; +} + +std::string GetCustomerAccountInfoResult::getCode()const +{ + return code_; +} + +bool GetCustomerAccountInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/GetCustomerListRequest.cc b/bssopenapi/src/model/GetCustomerListRequest.cc new file mode 100644 index 000000000..3c84c22c9 --- /dev/null +++ b/bssopenapi/src/model/GetCustomerListRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::GetCustomerListRequest; + +GetCustomerListRequest::GetCustomerListRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "GetCustomerList") +{} + +GetCustomerListRequest::~GetCustomerListRequest() +{} + diff --git a/bssopenapi/src/model/GetCustomerListResult.cc b/bssopenapi/src/model/GetCustomerListResult.cc new file mode 100644 index 000000000..dc903465e --- /dev/null +++ b/bssopenapi/src/model/GetCustomerListResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +GetCustomerListResult::GetCustomerListResult() : + ServiceResult() +{} + +GetCustomerListResult::GetCustomerListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomerListResult::~GetCustomerListResult() +{} + +void GetCustomerListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allUidList = dataNode["UidList"]["Item"]; + for (auto value : allUidList) + data_.uidList.push_back(value.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetCustomerListResult::getMessage()const +{ + return message_; +} + +GetCustomerListResult::Data GetCustomerListResult::getData()const +{ + return data_; +} + +std::string GetCustomerListResult::getCode()const +{ + return code_; +} + +bool GetCustomerListResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/GetOrderDetailResult.cc b/bssopenapi/src/model/GetOrderDetailResult.cc index a74fcd6ea..a74c32209 100644 --- a/bssopenapi/src/model/GetOrderDetailResult.cc +++ b/bssopenapi/src/model/GetOrderDetailResult.cc @@ -99,6 +99,8 @@ void GetOrderDetailResult::parse(const std::string &payload) orderObject.paymentCurrency = value["PaymentCurrency"].asString(); if(!value["Operator"].isNull()) orderObject._operator = value["Operator"].asString(); + if(!value["RelatedOrderId"].isNull()) + orderObject.relatedOrderId = value["RelatedOrderId"].asString(); data_.orderList.push_back(orderObject); } if(!value["Success"].isNull()) diff --git a/bssopenapi/src/model/ModifyInstanceRequest.cc b/bssopenapi/src/model/ModifyInstanceRequest.cc index 0a5c8fa2c..a50834ea8 100644 --- a/bssopenapi/src/model/ModifyInstanceRequest.cc +++ b/bssopenapi/src/model/ModifyInstanceRequest.cc @@ -47,6 +47,17 @@ void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) setCoreParameter("InstanceId", instanceId); } +std::string ModifyInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + std::string ModifyInstanceRequest::getSubscriptionType()const { return subscriptionType_; diff --git a/bssopenapi/src/model/QueryAccountTransactionsRequest.cc b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc new file mode 100644 index 000000000..fb66b65d9 --- /dev/null +++ b/bssopenapi/src/model/QueryAccountTransactionsRequest.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionsRequest; + +QueryAccountTransactionsRequest::QueryAccountTransactionsRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactions") +{} + +QueryAccountTransactionsRequest::~QueryAccountTransactionsRequest() +{} + +std::string QueryAccountTransactionsRequest::getRecordID()const +{ + return recordID_; +} + +void QueryAccountTransactionsRequest::setRecordID(const std::string& recordID) +{ + recordID_ = recordID; + setCoreParameter("RecordID", recordID); +} + +int QueryAccountTransactionsRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryAccountTransactionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryAccountTransactionsRequest::getTransactionChannelSN()const +{ + return transactionChannelSN_; +} + +void QueryAccountTransactionsRequest::setTransactionChannelSN(const std::string& transactionChannelSN) +{ + transactionChannelSN_ = transactionChannelSN; + setCoreParameter("TransactionChannelSN", transactionChannelSN); +} + +std::string QueryAccountTransactionsRequest::getCreateTimeStart()const +{ + return createTimeStart_; +} + +void QueryAccountTransactionsRequest::setCreateTimeStart(const std::string& createTimeStart) +{ + createTimeStart_ = createTimeStart; + setCoreParameter("CreateTimeStart", createTimeStart); +} + +std::string QueryAccountTransactionsRequest::getTransactionNumber()const +{ + return transactionNumber_; +} + +void QueryAccountTransactionsRequest::setTransactionNumber(const std::string& transactionNumber) +{ + transactionNumber_ = transactionNumber; + setCoreParameter("TransactionNumber", transactionNumber); +} + +int QueryAccountTransactionsRequest::getPageNum()const +{ + return pageNum_; +} + +void QueryAccountTransactionsRequest::setPageNum(int pageNum) +{ + pageNum_ = pageNum; + setCoreParameter("PageNum", std::to_string(pageNum)); +} + +std::string QueryAccountTransactionsRequest::getCreateTimeEnd()const +{ + return createTimeEnd_; +} + +void QueryAccountTransactionsRequest::setCreateTimeEnd(const std::string& createTimeEnd) +{ + createTimeEnd_ = createTimeEnd; + setCoreParameter("CreateTimeEnd", createTimeEnd); +} + diff --git a/bssopenapi/src/model/QueryAccountTransactionsResult.cc b/bssopenapi/src/model/QueryAccountTransactionsResult.cc new file mode 100644 index 000000000..5c116f6fd --- /dev/null +++ b/bssopenapi/src/model/QueryAccountTransactionsResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryAccountTransactionsResult::QueryAccountTransactionsResult() : + ServiceResult() +{} + +QueryAccountTransactionsResult::QueryAccountTransactionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryAccountTransactionsResult::~QueryAccountTransactionsResult() +{} + +void QueryAccountTransactionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AccountName"].isNull()) + data_.accountName = dataNode["AccountName"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["PageNum"].isNull()) + data_.pageNum = std::stoi(dataNode["PageNum"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + auto allAccountTransactionsList = value["AccountTransactionsList"]["AccountTransactionsListItem"]; + for (auto value : allAccountTransactionsList) + { + Data::AccountTransactionsListItem accountTransactionsListItemObject; + if(!value["TransactionNumber"].isNull()) + accountTransactionsListItemObject.transactionNumber = value["TransactionNumber"].asString(); + if(!value["TransactionTime"].isNull()) + accountTransactionsListItemObject.transactionTime = value["TransactionTime"].asString(); + if(!value["TransactionFlow"].isNull()) + accountTransactionsListItemObject.transactionFlow = value["TransactionFlow"].asString(); + if(!value["TransactionType"].isNull()) + accountTransactionsListItemObject.transactionType = value["TransactionType"].asString(); + if(!value["TransactionChannel"].isNull()) + accountTransactionsListItemObject.transactionChannel = value["TransactionChannel"].asString(); + if(!value["TransactionChannelSN"].isNull()) + accountTransactionsListItemObject.transactionChannelSN = value["TransactionChannelSN"].asString(); + if(!value["FundType"].isNull()) + accountTransactionsListItemObject.fundType = value["FundType"].asString(); + if(!value["RecordID"].isNull()) + accountTransactionsListItemObject.recordID = value["RecordID"].asString(); + if(!value["Remarks"].isNull()) + accountTransactionsListItemObject.remarks = value["Remarks"].asString(); + if(!value["BillingCycle"].isNull()) + accountTransactionsListItemObject.billingCycle = value["BillingCycle"].asString(); + if(!value["Amount"].isNull()) + accountTransactionsListItemObject.amount = value["Amount"].asString(); + if(!value["Balance"].isNull()) + accountTransactionsListItemObject.balance = value["Balance"].asString(); + if(!value["TransactionAccount"].isNull()) + accountTransactionsListItemObject.transactionAccount = value["TransactionAccount"].asString(); + data_.accountTransactionsList.push_back(accountTransactionsListItemObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryAccountTransactionsResult::getMessage()const +{ + return message_; +} + +QueryAccountTransactionsResult::Data QueryAccountTransactionsResult::getData()const +{ + return data_; +} + +std::string QueryAccountTransactionsResult::getCode()const +{ + return code_; +} + +bool QueryAccountTransactionsResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/QueryBillOverviewResult.cc b/bssopenapi/src/model/QueryBillOverviewResult.cc index b51c25494..611590d61 100644 --- a/bssopenapi/src/model/QueryBillOverviewResult.cc +++ b/bssopenapi/src/model/QueryBillOverviewResult.cc @@ -89,6 +89,8 @@ void QueryBillOverviewResult::parse(const std::string &payload) itemObject.afterTaxAmount = std::stof(value["AfterTaxAmount"].asString()); if(!value["PaymentCurrency"].isNull()) itemObject.paymentCurrency = value["PaymentCurrency"].asString(); + if(!value["RoundDownDiscount"].isNull()) + itemObject.roundDownDiscount = value["RoundDownDiscount"].asString(); data_.items.push_back(itemObject); } if(!value["Success"].isNull()) diff --git a/bssopenapi/src/model/QueryBillResult.cc b/bssopenapi/src/model/QueryBillResult.cc index 73a31bb08..680ff02c6 100644 --- a/bssopenapi/src/model/QueryBillResult.cc +++ b/bssopenapi/src/model/QueryBillResult.cc @@ -109,6 +109,8 @@ void QueryBillResult::parse(const std::string &payload) itemObject.paymentCurrency = value["PaymentCurrency"].asString(); if(!value["PaymentTransactionID"].isNull()) itemObject.paymentTransactionID = value["PaymentTransactionID"].asString(); + if(!value["RoundDownDiscount"].isNull()) + itemObject.roundDownDiscount = value["RoundDownDiscount"].asString(); data_.items.push_back(itemObject); } if(!value["Success"].isNull()) diff --git a/bssopenapi/src/model/QueryInstanceBillResult.cc b/bssopenapi/src/model/QueryInstanceBillResult.cc index 33f831fff..770900bac 100644 --- a/bssopenapi/src/model/QueryInstanceBillResult.cc +++ b/bssopenapi/src/model/QueryInstanceBillResult.cc @@ -59,8 +59,6 @@ void QueryInstanceBillResult::parse(const std::string &payload) Data::Item itemObject; if(!value["InstanceID"].isNull()) itemObject.instanceID = value["InstanceID"].asString(); - if(!value["ServicePeriod"].isNull()) - itemObject.servicePeriod = std::stof(value["ServicePeriod"].asString()); if(!value["BillingType"].isNull()) itemObject.billingType = value["BillingType"].asString(); if(!value["CostUnit"].isNull()) @@ -107,6 +105,26 @@ void QueryInstanceBillResult::parse(const std::string &payload) itemObject.outstandingAmount = std::stof(value["OutstandingAmount"].asString()); if(!value["Currency"].isNull()) itemObject.currency = value["Currency"].asString(); + if(!value["NickName"].isNull()) + itemObject.nickName = value["NickName"].asString(); + if(!value["ResourceGroup"].isNull()) + itemObject.resourceGroup = value["ResourceGroup"].asString(); + if(!value["Tag"].isNull()) + itemObject.tag = value["Tag"].asString(); + if(!value["InstanceConfig"].isNull()) + itemObject.instanceConfig = value["InstanceConfig"].asString(); + if(!value["InstanceSpec"].isNull()) + itemObject.instanceSpec = value["InstanceSpec"].asString(); + if(!value["InternetIP"].isNull()) + itemObject.internetIP = value["InternetIP"].asString(); + if(!value["IntranetIP"].isNull()) + itemObject.intranetIP = value["IntranetIP"].asString(); + if(!value["Region"].isNull()) + itemObject.region = value["Region"].asString(); + if(!value["Zone"].isNull()) + itemObject.zone = value["Zone"].asString(); + if(!value["Item"].isNull()) + itemObject.item = value["Item"].asString(); data_.items.push_back(itemObject); } if(!value["Success"].isNull()) diff --git a/bssopenapi/src/model/QueryOrdersResult.cc b/bssopenapi/src/model/QueryOrdersResult.cc index 9f20940f4..b39ef7dcf 100644 --- a/bssopenapi/src/model/QueryOrdersResult.cc +++ b/bssopenapi/src/model/QueryOrdersResult.cc @@ -83,6 +83,8 @@ void QueryOrdersResult::parse(const std::string &payload) orderObject.afterTaxAmount = value["AfterTaxAmount"].asString(); if(!value["PaymentCurrency"].isNull()) orderObject.paymentCurrency = value["PaymentCurrency"].asString(); + if(!value["RelatedOrderId"].isNull()) + orderObject.relatedOrderId = value["RelatedOrderId"].asString(); data_.orderList.push_back(orderObject); } if(!value["Success"].isNull()) diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc new file mode 100644 index 000000000..01fbef3af --- /dev/null +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::QueryResellerAvailableQuotaRequest; + +QueryResellerAvailableQuotaRequest::QueryResellerAvailableQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "QueryResellerAvailableQuota") +{} + +QueryResellerAvailableQuotaRequest::~QueryResellerAvailableQuotaRequest() +{} + +std::string QueryResellerAvailableQuotaRequest::getItemCodes()const +{ + return itemCodes_; +} + +void QueryResellerAvailableQuotaRequest::setItemCodes(const std::string& itemCodes) +{ + itemCodes_ = itemCodes; + setCoreParameter("ItemCodes", itemCodes); +} + +long QueryResellerAvailableQuotaRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryResellerAvailableQuotaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc new file mode 100644 index 000000000..eb2209bbb --- /dev/null +++ b/bssopenapi/src/model/QueryResellerAvailableQuotaResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult() : + ServiceResult() +{} + +QueryResellerAvailableQuotaResult::QueryResellerAvailableQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryResellerAvailableQuotaResult::~QueryResellerAvailableQuotaResult() +{} + +void QueryResellerAvailableQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string QueryResellerAvailableQuotaResult::getMessage()const +{ + return message_; +} + +std::string QueryResellerAvailableQuotaResult::getData()const +{ + return data_; +} + +std::string QueryResellerAvailableQuotaResult::getCode()const +{ + return code_; +} + +bool QueryResellerAvailableQuotaResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc new file mode 100644 index 000000000..66c1a260c --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserAlarmThresholdRequest; + +SetResellerUserAlarmThresholdRequest::SetResellerUserAlarmThresholdRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserAlarmThreshold") +{} + +SetResellerUserAlarmThresholdRequest::~SetResellerUserAlarmThresholdRequest() +{} + +std::string SetResellerUserAlarmThresholdRequest::getAlarmType()const +{ + return alarmType_; +} + +void SetResellerUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType) +{ + alarmType_ = alarmType; + setCoreParameter("AlarmType", alarmType); +} + +std::string SetResellerUserAlarmThresholdRequest::getAlarmThresholds()const +{ + return alarmThresholds_; +} + +void SetResellerUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds) +{ + alarmThresholds_ = alarmThresholds; + setCoreParameter("AlarmThresholds", alarmThresholds); +} + +long SetResellerUserAlarmThresholdRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetResellerUserAlarmThresholdRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc new file mode 100644 index 000000000..47f126322 --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserAlarmThresholdResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult() : + ServiceResult() +{} + +SetResellerUserAlarmThresholdResult::SetResellerUserAlarmThresholdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserAlarmThresholdResult::~SetResellerUserAlarmThresholdResult() +{} + +void SetResellerUserAlarmThresholdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string SetResellerUserAlarmThresholdResult::getMessage()const +{ + return message_; +} + +bool SetResellerUserAlarmThresholdResult::getData()const +{ + return data_; +} + +std::string SetResellerUserAlarmThresholdResult::getCode()const +{ + return code_; +} + +bool SetResellerUserAlarmThresholdResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/SetResellerUserQuotaRequest.cc b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc new file mode 100644 index 000000000..2e8c47873 --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserQuotaRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserQuotaRequest; + +SetResellerUserQuotaRequest::SetResellerUserQuotaRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserQuota") +{} + +SetResellerUserQuotaRequest::~SetResellerUserQuotaRequest() +{} + +std::string SetResellerUserQuotaRequest::getAmount()const +{ + return amount_; +} + +void SetResellerUserQuotaRequest::setAmount(const std::string& amount) +{ + amount_ = amount; + setCoreParameter("Amount", amount); +} + +std::string SetResellerUserQuotaRequest::getOutBizId()const +{ + return outBizId_; +} + +void SetResellerUserQuotaRequest::setOutBizId(const std::string& outBizId) +{ + outBizId_ = outBizId; + setCoreParameter("OutBizId", outBizId); +} + +std::string SetResellerUserQuotaRequest::getCurrency()const +{ + return currency_; +} + +void SetResellerUserQuotaRequest::setCurrency(const std::string& currency) +{ + currency_ = currency; + setCoreParameter("Currency", currency); +} + +long SetResellerUserQuotaRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetResellerUserQuotaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/bssopenapi/src/model/SetResellerUserQuotaResult.cc b/bssopenapi/src/model/SetResellerUserQuotaResult.cc new file mode 100644 index 000000000..3d8f49cc0 --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserQuotaResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserQuotaResult::SetResellerUserQuotaResult() : + ServiceResult() +{} + +SetResellerUserQuotaResult::SetResellerUserQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserQuotaResult::~SetResellerUserQuotaResult() +{} + +void SetResellerUserQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string SetResellerUserQuotaResult::getMessage()const +{ + return message_; +} + +bool SetResellerUserQuotaResult::getData()const +{ + return data_; +} + +std::string SetResellerUserQuotaResult::getCode()const +{ + return code_; +} + +bool SetResellerUserQuotaResult::getSuccess()const +{ + return success_; +} + diff --git a/bssopenapi/src/model/SetResellerUserStatusRequest.cc b/bssopenapi/src/model/SetResellerUserStatusRequest.cc new file mode 100644 index 000000000..c8dde7caa --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserStatusRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::BssOpenApi::Model::SetResellerUserStatusRequest; + +SetResellerUserStatusRequest::SetResellerUserStatusRequest() : + RpcServiceRequest("bssopenapi", "2017-12-14", "SetResellerUserStatus") +{} + +SetResellerUserStatusRequest::~SetResellerUserStatusRequest() +{} + +std::string SetResellerUserStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetResellerUserStatusRequest::setOwnerId(const std::string& ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", ownerId); +} + +std::string SetResellerUserStatusRequest::getStatus()const +{ + return status_; +} + +void SetResellerUserStatusRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + +std::string SetResellerUserStatusRequest::getBusinessType()const +{ + return businessType_; +} + +void SetResellerUserStatusRequest::setBusinessType(const std::string& businessType) +{ + businessType_ = businessType; + setCoreParameter("BusinessType", businessType); +} + diff --git a/bssopenapi/src/model/SetResellerUserStatusResult.cc b/bssopenapi/src/model/SetResellerUserStatusResult.cc new file mode 100644 index 000000000..02e04e5c6 --- /dev/null +++ b/bssopenapi/src/model/SetResellerUserStatusResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::BssOpenApi; +using namespace AlibabaCloud::BssOpenApi::Model; + +SetResellerUserStatusResult::SetResellerUserStatusResult() : + ServiceResult() +{} + +SetResellerUserStatusResult::SetResellerUserStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetResellerUserStatusResult::~SetResellerUserStatusResult() +{} + +void SetResellerUserStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +std::string SetResellerUserStatusResult::getMessage()const +{ + return message_; +} + +bool SetResellerUserStatusResult::getData()const +{ + return data_; +} + +std::string SetResellerUserStatusResult::getCode()const +{ + return code_; +} + +bool SetResellerUserStatusResult::getSuccess()const +{ + return success_; +} +