Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cff8cc2fce | ||
|
|
f5698956a8 | ||
|
|
0acc11e160 | ||
|
|
b3f8f634b5 | ||
|
|
1185622959 | ||
|
|
4836dfddfc | ||
|
|
08e11e9bb0 | ||
|
|
8c4cc55d22 | ||
|
|
2191c80b02 | ||
|
|
22d322118a | ||
|
|
1358a6ec39 | ||
|
|
41ea6f3a12 | ||
|
|
83f2c53623 |
41
CHANGELOG
41
CHANGELOG
@@ -1,3 +1,44 @@
|
||||
2020-08-17 Version: 1.36.588
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-08-17 Version: 1.36.587
|
||||
- Add new tags for corp group.
|
||||
|
||||
2020-08-17 Version: 1.36.586
|
||||
- Add new tags for corp group.
|
||||
|
||||
2020-08-16 Version: 1.36.585
|
||||
- Add new tags for corp group.
|
||||
|
||||
2020-08-14 Version: 1.36.584
|
||||
- Add sdk.
|
||||
|
||||
2020-08-14 Version: 1.36.583
|
||||
- Supported Api DetectIPCPedestrian.
|
||||
|
||||
2020-08-14 Version: 1.36.582
|
||||
- Supported CheckCloudResourceAuthorized API.
|
||||
|
||||
2020-08-14 Version: 1.36.581
|
||||
- Add project Api.
|
||||
|
||||
2020-08-13 Version: 1.36.580
|
||||
- Add PipCode and CommodityCode for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill.
|
||||
- Support BillOwnerId filter for QueryInstanceBill, QueryBillOverview, QueryBill, QuerySettleBill, QueryAccountBill, QuerySplitItemBill.
|
||||
|
||||
2020-08-13 Version: 1.36.579
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.578
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.577
|
||||
- Release DetectKneeXRay DetectSpineMRI TranslateMed.
|
||||
|
||||
2020-08-13 Version: 1.36.576
|
||||
- GetImageTranslate add column orc.
|
||||
|
||||
2020-08-13 Version: 1.36.575
|
||||
- DescribePrice update amount parameters type, float to string.
|
||||
- Add ResourceGroupId parameter to support resource group.
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string orc;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@ void GetImageTranslateResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!dataNode["Orc"].isNull())
|
||||
data_.orc = dataNode["Orc"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -73,6 +73,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/GetMembersResult.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/GetUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/InviteUserRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/InviteUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinDeviceMeetingResult.h
|
||||
include/alibabacloud/aliyuncvc/model/JoinLiveRequest.h
|
||||
@@ -164,6 +166,8 @@ set(aliyuncvc_src
|
||||
src/model/GetMembersResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/InviteUserRequest.cc
|
||||
src/model/InviteUserResult.cc
|
||||
src/model/JoinDeviceMeetingRequest.cc
|
||||
src/model/JoinDeviceMeetingResult.cc
|
||||
src/model/JoinLiveRequest.cc
|
||||
|
||||
@@ -74,6 +74,8 @@
|
||||
#include "model/GetMembersResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/InviteUserRequest.h"
|
||||
#include "model/InviteUserResult.h"
|
||||
#include "model/JoinDeviceMeetingRequest.h"
|
||||
#include "model/JoinDeviceMeetingResult.h"
|
||||
#include "model/JoinLiveRequest.h"
|
||||
@@ -197,6 +199,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::InviteUserResult> InviteUserOutcome;
|
||||
typedef std::future<InviteUserOutcome> InviteUserOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::InviteUserRequest&, const InviteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InviteUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::JoinDeviceMeetingResult> JoinDeviceMeetingOutcome;
|
||||
typedef std::future<JoinDeviceMeetingOutcome> JoinDeviceMeetingOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::JoinDeviceMeetingRequest&, const JoinDeviceMeetingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JoinDeviceMeetingAsyncHandler;
|
||||
@@ -334,6 +339,9 @@ namespace AlibabaCloud
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
InviteUserOutcome inviteUser(const Model::InviteUserRequest &request)const;
|
||||
void inviteUserAsync(const Model::InviteUserRequest& request, const InviteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InviteUserOutcomeCallable inviteUserCallable(const Model::InviteUserRequest& request) const;
|
||||
JoinDeviceMeetingOutcome joinDeviceMeeting(const Model::JoinDeviceMeetingRequest &request)const;
|
||||
void joinDeviceMeetingAsync(const Model::JoinDeviceMeetingRequest& request, const JoinDeviceMeetingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
JoinDeviceMeetingOutcomeCallable joinDeviceMeetingCallable(const Model::JoinDeviceMeetingRequest& request) const;
|
||||
|
||||
@@ -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_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT InviteUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InviteUserRequest();
|
||||
~InviteUserRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getUserIds()const;
|
||||
void setUserIds(const std::string& userIds);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
std::string userIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT InviteUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
InviteUserResult();
|
||||
explicit InviteUserResult(const std::string &payload);
|
||||
~InviteUserResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_INVITEUSERRESULT_H_
|
||||
@@ -987,6 +987,42 @@ AliyuncvcClient::GetUserOutcomeCallable AliyuncvcClient::getUserCallable(const G
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::InviteUserOutcome AliyuncvcClient::inviteUser(const InviteUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InviteUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InviteUserOutcome(InviteUserResult(outcome.result()));
|
||||
else
|
||||
return InviteUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::inviteUserAsync(const InviteUserRequest& request, const InviteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, inviteUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::InviteUserOutcomeCallable AliyuncvcClient::inviteUserCallable(const InviteUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InviteUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->inviteUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::JoinDeviceMeetingOutcome AliyuncvcClient::joinDeviceMeeting(const JoinDeviceMeetingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
aliyuncvc/src/model/InviteUserRequest.cc
Normal file
51
aliyuncvc/src/model/InviteUserRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/InviteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::InviteUserRequest;
|
||||
|
||||
InviteUserRequest::InviteUserRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "InviteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InviteUserRequest::~InviteUserRequest()
|
||||
{}
|
||||
|
||||
std::string InviteUserRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void InviteUserRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setBodyParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string InviteUserRequest::getUserIds()const
|
||||
{
|
||||
return userIds_;
|
||||
}
|
||||
|
||||
void InviteUserRequest::setUserIds(const std::string& userIds)
|
||||
{
|
||||
userIds_ = userIds;
|
||||
setBodyParameter("UserIds", userIds);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/InviteUserResult.cc
Normal file
65
aliyuncvc/src/model/InviteUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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 <alibabacloud/aliyuncvc/model/InviteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
InviteUserResult::InviteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InviteUserResult::InviteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InviteUserResult::~InviteUserResult()
|
||||
{}
|
||||
|
||||
void InviteUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string InviteUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int InviteUserResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool InviteUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySettlementBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QuerySplitItemBillRequest.h
|
||||
@@ -232,6 +234,8 @@ set(bssopenapi_src
|
||||
src/model/QueryResellerAvailableQuotaResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
src/model/QueryResourcePackageInstancesResult.cc
|
||||
src/model/QuerySettleBillRequest.cc
|
||||
src/model/QuerySettleBillResult.cc
|
||||
src/model/QuerySettlementBillRequest.cc
|
||||
src/model/QuerySettlementBillResult.cc
|
||||
src/model/QuerySplitItemBillRequest.cc
|
||||
|
||||
@@ -114,6 +114,8 @@
|
||||
#include "model/QueryResellerAvailableQuotaResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
#include "model/QueryResourcePackageInstancesResult.h"
|
||||
#include "model/QuerySettleBillRequest.h"
|
||||
#include "model/QuerySettleBillResult.h"
|
||||
#include "model/QuerySettlementBillRequest.h"
|
||||
#include "model/QuerySettlementBillResult.h"
|
||||
#include "model/QuerySplitItemBillRequest.h"
|
||||
@@ -285,6 +287,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySettleBillResult> QuerySettleBillOutcome;
|
||||
typedef std::future<QuerySettleBillOutcome> QuerySettleBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettleBillRequest&, const QuerySettleBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettleBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySettlementBillResult> QuerySettlementBillOutcome;
|
||||
typedef std::future<QuerySettlementBillOutcome> QuerySettlementBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettlementBillRequest&, const QuerySettlementBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettlementBillAsyncHandler;
|
||||
@@ -464,6 +469,9 @@ namespace AlibabaCloud
|
||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||
QuerySettleBillOutcome querySettleBill(const Model::QuerySettleBillRequest &request)const;
|
||||
void querySettleBillAsync(const Model::QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySettleBillOutcomeCallable querySettleBillCallable(const Model::QuerySettleBillRequest& request) const;
|
||||
QuerySettlementBillOutcome querySettlementBill(const Model::QuerySettlementBillRequest &request)const;
|
||||
void querySettlementBillAsync(const Model::QuerySettlementBillRequest& request, const QuerySettlementBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySettlementBillOutcomeCallable querySettlementBillCallable(const Model::QuerySettlementBillRequest& request) const;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
std::string apportionCode;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setPageNum(int pageNum);
|
||||
long getOwnerID()const;
|
||||
void setOwnerID(long ownerID);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
bool getIsGroupByProduct()const;
|
||||
void setIsGroupByProduct(bool isGroupByProduct);
|
||||
int getPageSize()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string billingCycle_;
|
||||
int pageNum_;
|
||||
long ownerID_;
|
||||
long billOwnerId_;
|
||||
bool isGroupByProduct_;
|
||||
int pageSize_;
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace AlibabaCloud
|
||||
float outstandingAmount;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
std::string pipCode;
|
||||
float invoiceDiscount;
|
||||
std::string subscriptionType;
|
||||
float pretaxGrossAmount;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
std::string getBillingCycle()const;
|
||||
void setBillingCycle(const std::string& billingCycle);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string productCode_;
|
||||
std::string subscriptionType_;
|
||||
std::string billingCycle_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace AlibabaCloud
|
||||
std::string paymentCurrency;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
std::string pipCode;
|
||||
float invoiceDiscount;
|
||||
std::string item;
|
||||
std::string subscriptionType;
|
||||
float pretaxGrossAmount;
|
||||
float pretaxAmount;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
float pretaxAmountLocal;
|
||||
};
|
||||
std::string billingCycle;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
int getPageSize()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
std::string type_;
|
||||
long ownerId_;
|
||||
int pageNum_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
int pageSize_;
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
std::string subscriptionType;
|
||||
float pretaxGrossAmount;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string usageStartTime;
|
||||
std::string status;
|
||||
std::string paymentTransactionID;
|
||||
@@ -60,6 +61,7 @@ namespace AlibabaCloud
|
||||
std::string productCode;
|
||||
std::string productType;
|
||||
float outstandingAmount;
|
||||
std::string pipCode;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
std::string recordID;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getBillingDate()const;
|
||||
void setBillingDate(const std::string& billingDate);
|
||||
std::string getProductType()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
std::string billingCycle_;
|
||||
long ownerId_;
|
||||
int pageNum_;
|
||||
long billOwnerId_;
|
||||
std::string billingDate_;
|
||||
std::string productType_;
|
||||
bool isBillingItem_;
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
float pretaxGrossAmount;
|
||||
std::string instanceConfig;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string costUnit;
|
||||
std::string resourceGroup;
|
||||
std::string billingType;
|
||||
@@ -64,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string billingItem;
|
||||
std::string nickName;
|
||||
std::string intranetIP;
|
||||
std::string pipCode;
|
||||
std::string servicePeriodUnit;
|
||||
std::string servicePeriod;
|
||||
std::string deductedByResourcePackage;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_QUERYSETTLEBILLREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettleBillRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QuerySettleBillRequest();
|
||||
~QuerySettleBillRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
bool getIsHideZeroCharge()const;
|
||||
void setIsHideZeroCharge(bool isHideZeroCharge);
|
||||
bool getIsDisplayLocalCurrency()const;
|
||||
void setIsDisplayLocalCurrency(bool isDisplayLocalCurrency);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
std::string getBillingCycle()const;
|
||||
void setBillingCycle(const std::string& billingCycle);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
bool isHideZeroCharge_;
|
||||
bool isDisplayLocalCurrency_;
|
||||
std::string subscriptionType_;
|
||||
std::string billingCycle_;
|
||||
std::string type_;
|
||||
long ownerId_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLREQUEST_H_
|
||||
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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_QUERYSETTLEBILLRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSETTLEBILLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QuerySettleBillResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
float afterTaxAmount;
|
||||
std::string productName;
|
||||
std::string subOrderId;
|
||||
float deductedByCashCoupons;
|
||||
std::string paymentTime;
|
||||
float tax;
|
||||
std::string paymentCurrency;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
float invoiceDiscount;
|
||||
std::string usageEndTime;
|
||||
std::string item;
|
||||
std::string subscriptionType;
|
||||
float pretaxGrossAmount;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string usageStartTime;
|
||||
std::string status;
|
||||
std::string paymentTransactionID;
|
||||
float deductedByCoupons;
|
||||
std::string roundDownDiscount;
|
||||
std::string productDetail;
|
||||
std::string productCode;
|
||||
std::string productType;
|
||||
float outstandingAmount;
|
||||
std::string pipCode;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
std::string recordID;
|
||||
float pretaxAmountLocal;
|
||||
};
|
||||
std::string billingCycle;
|
||||
int totalCount;
|
||||
std::string accountID;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<Item> items;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
QuerySettleBillResult();
|
||||
explicit QuerySettleBillResult(const std::string &payload);
|
||||
~QuerySettleBillResult();
|
||||
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_QUERYSETTLEBILLRESULT_H_
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
int getPageSize()const;
|
||||
@@ -56,6 +58,7 @@ namespace AlibabaCloud
|
||||
std::string billingCycle_;
|
||||
long ownerId_;
|
||||
int pageNum_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
int pageSize_;
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace AlibabaCloud
|
||||
float pretaxGrossAmount;
|
||||
std::string instanceConfig;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string costUnit;
|
||||
std::string resourceGroup;
|
||||
std::string billingType;
|
||||
@@ -65,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string billingItem;
|
||||
std::string nickName;
|
||||
std::string intranetIP;
|
||||
std::string pipCode;
|
||||
std::string servicePeriod;
|
||||
std::string splitItemID;
|
||||
std::string deductedByResourcePackage;
|
||||
|
||||
@@ -1707,6 +1707,42 @@ BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySettleBillOutcome BssOpenApiClient::querySettleBill(const QuerySettleBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySettleBillOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QuerySettleBillOutcome(QuerySettleBillResult(outcome.result()));
|
||||
else
|
||||
return QuerySettleBillOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::querySettleBillAsync(const QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, querySettleBill(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySettleBillOutcomeCallable BssOpenApiClient::querySettleBillCallable(const QuerySettleBillRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QuerySettleBillOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->querySettleBill(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QuerySettlementBillOutcome BssOpenApiClient::querySettlementBill(const QuerySettlementBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -41,6 +41,7 @@ void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
|
||||
setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||
setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,17 @@ void QueryAccountBillRequest::setOwnerID(long ownerID)
|
||||
setParameter("OwnerID", std::to_string(ownerID));
|
||||
}
|
||||
|
||||
long QueryAccountBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QueryAccountBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
bool QueryAccountBillRequest::getIsGroupByProduct()const
|
||||
{
|
||||
return isGroupByProduct_;
|
||||
|
||||
@@ -86,6 +86,8 @@ void QueryAccountBillResult::parse(const std::string &payload)
|
||||
itemObject.productName = dataNodeItemsItem["ProductName"].asString();
|
||||
if(!dataNodeItemsItem["SubscriptionType"].isNull())
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -60,6 +60,17 @@ void QueryBillOverviewRequest::setBillingCycle(const std::string& billingCycle)
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
long QueryBillOverviewRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QueryBillOverviewRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryBillOverviewRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
|
||||
@@ -90,6 +90,10 @@ void QueryBillOverviewResult::parse(const std::string &payload)
|
||||
itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString();
|
||||
if(!dataNodeItemsItem["RoundDownDiscount"].isNull())
|
||||
itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -115,6 +115,17 @@ void QueryBillRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QueryBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QueryBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryBillRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
|
||||
@@ -112,6 +112,10 @@ void QueryBillResult::parse(const std::string &payload)
|
||||
itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["SubOrderId"].isNull())
|
||||
itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -93,6 +93,17 @@ void QueryInstanceBillRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QueryInstanceBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QueryInstanceBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryInstanceBillRequest::getBillingDate()const
|
||||
{
|
||||
return billingDate_;
|
||||
|
||||
@@ -130,6 +130,10 @@ void QueryInstanceBillResult::parse(const std::string &payload)
|
||||
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
|
||||
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
150
bssopenapi/src/model/QuerySettleBillRequest.cc
Normal file
150
bssopenapi/src/model/QuerySettleBillRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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 <alibabacloud/bssopenapi/model/QuerySettleBillRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QuerySettleBillRequest;
|
||||
|
||||
QuerySettleBillRequest::QuerySettleBillRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySettleBill")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySettleBillRequest::~QuerySettleBillRequest()
|
||||
{}
|
||||
|
||||
std::string QuerySettleBillRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
bool QuerySettleBillRequest::getIsHideZeroCharge()const
|
||||
{
|
||||
return isHideZeroCharge_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
|
||||
{
|
||||
isHideZeroCharge_ = isHideZeroCharge;
|
||||
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
}
|
||||
|
||||
bool QuerySettleBillRequest::getIsDisplayLocalCurrency()const
|
||||
{
|
||||
return isDisplayLocalCurrency_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setIsDisplayLocalCurrency(bool isDisplayLocalCurrency)
|
||||
{
|
||||
isDisplayLocalCurrency_ = isDisplayLocalCurrency;
|
||||
setParameter("IsDisplayLocalCurrency", isDisplayLocalCurrency ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
long QuerySettleBillRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QuerySettleBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int QuerySettleBillRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
149
bssopenapi/src/model/QuerySettleBillResult.cc
Normal file
149
bssopenapi/src/model/QuerySettleBillResult.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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 <alibabacloud/bssopenapi/model/QuerySettleBillResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QuerySettleBillResult::QuerySettleBillResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySettleBillResult::QuerySettleBillResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySettleBillResult::~QuerySettleBillResult()
|
||||
{}
|
||||
|
||||
void QuerySettleBillResult::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["BillingCycle"].isNull())
|
||||
data_.billingCycle = dataNode["BillingCycle"].asString();
|
||||
if(!dataNode["AccountID"].isNull())
|
||||
data_.accountID = dataNode["AccountID"].asString();
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allItemsNode = dataNode["Items"]["Item"];
|
||||
for (auto dataNodeItemsItem : allItemsNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemsItem["RecordID"].isNull())
|
||||
itemObject.recordID = dataNodeItemsItem["RecordID"].asString();
|
||||
if(!dataNodeItemsItem["Item"].isNull())
|
||||
itemObject.item = dataNodeItemsItem["Item"].asString();
|
||||
if(!dataNodeItemsItem["OwnerID"].isNull())
|
||||
itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString();
|
||||
if(!dataNodeItemsItem["UsageStartTime"].isNull())
|
||||
itemObject.usageStartTime = dataNodeItemsItem["UsageStartTime"].asString();
|
||||
if(!dataNodeItemsItem["UsageEndTime"].isNull())
|
||||
itemObject.usageEndTime = dataNodeItemsItem["UsageEndTime"].asString();
|
||||
if(!dataNodeItemsItem["PaymentTime"].isNull())
|
||||
itemObject.paymentTime = dataNodeItemsItem["PaymentTime"].asString();
|
||||
if(!dataNodeItemsItem["ProductCode"].isNull())
|
||||
itemObject.productCode = dataNodeItemsItem["ProductCode"].asString();
|
||||
if(!dataNodeItemsItem["ProductType"].isNull())
|
||||
itemObject.productType = dataNodeItemsItem["ProductType"].asString();
|
||||
if(!dataNodeItemsItem["SubscriptionType"].isNull())
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["ProductName"].isNull())
|
||||
itemObject.productName = dataNodeItemsItem["ProductName"].asString();
|
||||
if(!dataNodeItemsItem["ProductDetail"].isNull())
|
||||
itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["PretaxGrossAmount"].isNull())
|
||||
itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCoupons"].isNull())
|
||||
itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString());
|
||||
if(!dataNodeItemsItem["InvoiceDiscount"].isNull())
|
||||
itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString());
|
||||
if(!dataNodeItemsItem["PretaxAmount"].isNull())
|
||||
itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString());
|
||||
if(!dataNodeItemsItem["Currency"].isNull())
|
||||
itemObject.currency = dataNodeItemsItem["Currency"].asString();
|
||||
if(!dataNodeItemsItem["PretaxAmountLocal"].isNull())
|
||||
itemObject.pretaxAmountLocal = std::stof(dataNodeItemsItem["PretaxAmountLocal"].asString());
|
||||
if(!dataNodeItemsItem["Tax"].isNull())
|
||||
itemObject.tax = std::stof(dataNodeItemsItem["Tax"].asString());
|
||||
if(!dataNodeItemsItem["PaymentAmount"].isNull())
|
||||
itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull())
|
||||
itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull())
|
||||
itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString());
|
||||
if(!dataNodeItemsItem["OutstandingAmount"].isNull())
|
||||
itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString());
|
||||
if(!dataNodeItemsItem["AfterTaxAmount"].isNull())
|
||||
itemObject.afterTaxAmount = std::stof(dataNodeItemsItem["AfterTaxAmount"].asString());
|
||||
if(!dataNodeItemsItem["Status"].isNull())
|
||||
itemObject.status = dataNodeItemsItem["Status"].asString();
|
||||
if(!dataNodeItemsItem["PaymentCurrency"].isNull())
|
||||
itemObject.paymentCurrency = dataNodeItemsItem["PaymentCurrency"].asString();
|
||||
if(!dataNodeItemsItem["PaymentTransactionID"].isNull())
|
||||
itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString();
|
||||
if(!dataNodeItemsItem["RoundDownDiscount"].isNull())
|
||||
itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString();
|
||||
if(!dataNodeItemsItem["SubOrderId"].isNull())
|
||||
itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
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 QuerySettleBillResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QuerySettleBillResult::Data QuerySettleBillResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySettleBillResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySettleBillResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,17 @@ void QuerySplitItemBillRequest::setPageNum(int pageNum)
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QuerySplitItemBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void QuerySplitItemBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string QuerySplitItemBillRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
|
||||
@@ -132,6 +132,10 @@ void QuerySplitItemBillResult::parse(const std::string &payload)
|
||||
itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString();
|
||||
if(!dataNodeItemsItem["SplitItemName"].isNull())
|
||||
itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -25,6 +25,8 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/AddFaceResult.h
|
||||
include/alibabacloud/facebody/model/AddFaceEntityRequest.h
|
||||
include/alibabacloud/facebody/model/AddFaceEntityResult.h
|
||||
include/alibabacloud/facebody/model/BlurFaceRequest.h
|
||||
include/alibabacloud/facebody/model/BlurFaceResult.h
|
||||
include/alibabacloud/facebody/model/BodyPostureRequest.h
|
||||
include/alibabacloud/facebody/model/BodyPostureResult.h
|
||||
include/alibabacloud/facebody/model/CompareFaceRequest.h
|
||||
@@ -43,6 +45,8 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/DetectCelebrityResult.h
|
||||
include/alibabacloud/facebody/model/DetectFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectMaskRequest.h
|
||||
@@ -94,6 +98,8 @@ set(facebody_src
|
||||
src/model/AddFaceResult.cc
|
||||
src/model/AddFaceEntityRequest.cc
|
||||
src/model/AddFaceEntityResult.cc
|
||||
src/model/BlurFaceRequest.cc
|
||||
src/model/BlurFaceResult.cc
|
||||
src/model/BodyPostureRequest.cc
|
||||
src/model/BodyPostureResult.cc
|
||||
src/model/CompareFaceRequest.cc
|
||||
@@ -112,6 +118,8 @@ set(facebody_src
|
||||
src/model/DetectCelebrityResult.cc
|
||||
src/model/DetectFaceRequest.cc
|
||||
src/model/DetectFaceResult.cc
|
||||
src/model/DetectIPCPedestrianRequest.cc
|
||||
src/model/DetectIPCPedestrianResult.cc
|
||||
src/model/DetectLivingFaceRequest.cc
|
||||
src/model/DetectLivingFaceResult.cc
|
||||
src/model/DetectMaskRequest.cc
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "model/AddFaceResult.h"
|
||||
#include "model/AddFaceEntityRequest.h"
|
||||
#include "model/AddFaceEntityResult.h"
|
||||
#include "model/BlurFaceRequest.h"
|
||||
#include "model/BlurFaceResult.h"
|
||||
#include "model/BodyPostureRequest.h"
|
||||
#include "model/BodyPostureResult.h"
|
||||
#include "model/CompareFaceRequest.h"
|
||||
@@ -44,6 +46,8 @@
|
||||
#include "model/DetectCelebrityResult.h"
|
||||
#include "model/DetectFaceRequest.h"
|
||||
#include "model/DetectFaceResult.h"
|
||||
#include "model/DetectIPCPedestrianRequest.h"
|
||||
#include "model/DetectIPCPedestrianResult.h"
|
||||
#include "model/DetectLivingFaceRequest.h"
|
||||
#include "model/DetectLivingFaceResult.h"
|
||||
#include "model/DetectMaskRequest.h"
|
||||
@@ -103,6 +107,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddFaceEntityResult> AddFaceEntityOutcome;
|
||||
typedef std::future<AddFaceEntityOutcome> AddFaceEntityOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::AddFaceEntityRequest&, const AddFaceEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddFaceEntityAsyncHandler;
|
||||
typedef Outcome<Error, Model::BlurFaceResult> BlurFaceOutcome;
|
||||
typedef std::future<BlurFaceOutcome> BlurFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::BlurFaceRequest&, const BlurFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BlurFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::BodyPostureResult> BodyPostureOutcome;
|
||||
typedef std::future<BodyPostureOutcome> BodyPostureOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::BodyPostureRequest&, const BodyPostureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BodyPostureAsyncHandler;
|
||||
@@ -130,6 +137,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectFaceResult> DetectFaceOutcome;
|
||||
typedef std::future<DetectFaceOutcome> DetectFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectFaceRequest&, const DetectFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectLivingFaceResult> DetectLivingFaceOutcome;
|
||||
typedef std::future<DetectLivingFaceOutcome> DetectLivingFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectLivingFaceRequest&, const DetectLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLivingFaceAsyncHandler;
|
||||
@@ -207,6 +217,9 @@ namespace AlibabaCloud
|
||||
AddFaceEntityOutcome addFaceEntity(const Model::AddFaceEntityRequest &request)const;
|
||||
void addFaceEntityAsync(const Model::AddFaceEntityRequest& request, const AddFaceEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddFaceEntityOutcomeCallable addFaceEntityCallable(const Model::AddFaceEntityRequest& request) const;
|
||||
BlurFaceOutcome blurFace(const Model::BlurFaceRequest &request)const;
|
||||
void blurFaceAsync(const Model::BlurFaceRequest& request, const BlurFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BlurFaceOutcomeCallable blurFaceCallable(const Model::BlurFaceRequest& request) const;
|
||||
BodyPostureOutcome bodyPosture(const Model::BodyPostureRequest &request)const;
|
||||
void bodyPostureAsync(const Model::BodyPostureRequest& request, const BodyPostureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BodyPostureOutcomeCallable bodyPostureCallable(const Model::BodyPostureRequest& request) const;
|
||||
@@ -234,6 +247,9 @@ namespace AlibabaCloud
|
||||
DetectFaceOutcome detectFace(const Model::DetectFaceRequest &request)const;
|
||||
void detectFaceAsync(const Model::DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceOutcomeCallable detectFaceCallable(const Model::DetectFaceRequest& request) const;
|
||||
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
|
||||
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
|
||||
DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const;
|
||||
void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const;
|
||||
|
||||
@@ -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_FACEBODY_MODEL_BLURFACEREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BlurFaceRequest();
|
||||
~BlurFaceRequest();
|
||||
|
||||
std::string getImageURL()const;
|
||||
void setImageURL(const std::string& imageURL);
|
||||
|
||||
private:
|
||||
std::string imageURL_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_BLURFACERESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string imageURL;
|
||||
};
|
||||
|
||||
|
||||
BlurFaceResult();
|
||||
explicit BlurFaceResult(const std::string &payload);
|
||||
~BlurFaceResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACERESULT_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_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct URLList
|
||||
{
|
||||
std::string dataId;
|
||||
std::string imageURL;
|
||||
};
|
||||
|
||||
public:
|
||||
DetectIPCPedestrianRequest();
|
||||
~DetectIPCPedestrianRequest();
|
||||
|
||||
std::string getImageData()const;
|
||||
void setImageData(const std::string& imageData);
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
bool getContinueOnError()const;
|
||||
void setContinueOnError(bool continueOnError);
|
||||
int getWidth()const;
|
||||
void setWidth(int width);
|
||||
int getHeight()const;
|
||||
void setHeight(int height);
|
||||
|
||||
private:
|
||||
std::string imageData_;
|
||||
std::vector<URLList> uRLList_;
|
||||
bool continueOnError_;
|
||||
int width_;
|
||||
int height_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ImageInfoListItem
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
float score;
|
||||
std::vector<std::string> boxes;
|
||||
};
|
||||
std::string dataId;
|
||||
std::string errorCode;
|
||||
std::vector<ImageInfoListItem::Element> elements;
|
||||
std::string errorMessage;
|
||||
};
|
||||
std::vector<ImageInfoListItem> imageInfoList;
|
||||
};
|
||||
|
||||
|
||||
DetectIPCPedestrianResult();
|
||||
explicit DetectIPCPedestrianResult(const std::string &payload);
|
||||
~DetectIPCPedestrianResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
@@ -31,21 +31,21 @@ FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfi
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::~FacebodyClient()
|
||||
@@ -123,6 +123,42 @@ FacebodyClient::AddFaceEntityOutcomeCallable FacebodyClient::addFaceEntityCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::BlurFaceOutcome FacebodyClient::blurFace(const BlurFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BlurFaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BlurFaceOutcome(BlurFaceResult(outcome.result()));
|
||||
else
|
||||
return BlurFaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::blurFaceAsync(const BlurFaceRequest& request, const BlurFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, blurFace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::BlurFaceOutcomeCallable FacebodyClient::blurFaceCallable(const BlurFaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BlurFaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->blurFace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::BodyPostureOutcome FacebodyClient::bodyPosture(const BodyPostureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +483,42 @@ FacebodyClient::DetectFaceOutcomeCallable FacebodyClient::detectFaceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOutcome FacebodyClient::detectIPCPedestrian(const DetectIPCPedestrianRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectIPCPedestrianOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectIPCPedestrianOutcome(DetectIPCPedestrianResult(outcome.result()));
|
||||
else
|
||||
return DetectIPCPedestrianOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::detectIPCPedestrianAsync(const DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectIPCPedestrian(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPedestrianCallable(const DetectIPCPedestrianRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectIPCPedestrian(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
40
facebody/src/model/BlurFaceRequest.cc
Normal file
40
facebody/src/model/BlurFaceRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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 <alibabacloud/facebody/model/BlurFaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::BlurFaceRequest;
|
||||
|
||||
BlurFaceRequest::BlurFaceRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "BlurFace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BlurFaceRequest::~BlurFaceRequest()
|
||||
{}
|
||||
|
||||
std::string BlurFaceRequest::getImageURL()const
|
||||
{
|
||||
return imageURL_;
|
||||
}
|
||||
|
||||
void BlurFaceRequest::setImageURL(const std::string& imageURL)
|
||||
{
|
||||
imageURL_ = imageURL;
|
||||
setBodyParameter("ImageURL", imageURL);
|
||||
}
|
||||
|
||||
52
facebody/src/model/BlurFaceResult.cc
Normal file
52
facebody/src/model/BlurFaceResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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 <alibabacloud/facebody/model/BlurFaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
BlurFaceResult::BlurFaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BlurFaceResult::BlurFaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BlurFaceResult::~BlurFaceResult()
|
||||
{}
|
||||
|
||||
void BlurFaceResult::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["ImageURL"].isNull())
|
||||
data_.imageURL = dataNode["ImageURL"].asString();
|
||||
|
||||
}
|
||||
|
||||
BlurFaceResult::Data BlurFaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
89
facebody/src/model/DetectIPCPedestrianRequest.cc
Normal file
89
facebody/src/model/DetectIPCPedestrianRequest.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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 <alibabacloud/facebody/model/DetectIPCPedestrianRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianRequest;
|
||||
|
||||
DetectIPCPedestrianRequest::DetectIPCPedestrianRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "DetectIPCPedestrian")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianRequest::~DetectIPCPedestrianRequest()
|
||||
{}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getImageData()const
|
||||
{
|
||||
return imageData_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setImageData(const std::string& imageData)
|
||||
{
|
||||
imageData_ = imageData;
|
||||
setBodyParameter("ImageData", imageData);
|
||||
}
|
||||
|
||||
std::vector<DetectIPCPedestrianRequest::URLList> DetectIPCPedestrianRequest::getURLList()const
|
||||
{
|
||||
return uRLList_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setURLList(const std::vector<URLList>& uRLList)
|
||||
{
|
||||
uRLList_ = uRLList;
|
||||
for(int dep1 = 0; dep1!= uRLList.size(); dep1++) {
|
||||
auto uRLListObj = uRLList.at(dep1);
|
||||
std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1);
|
||||
setParameter(uRLListObjStr + ".DataId", uRLListObj.dataId);
|
||||
setParameter(uRLListObjStr + ".ImageURL", uRLListObj.imageURL);
|
||||
}
|
||||
}
|
||||
|
||||
bool DetectIPCPedestrianRequest::getContinueOnError()const
|
||||
{
|
||||
return continueOnError_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setContinueOnError(bool continueOnError)
|
||||
{
|
||||
continueOnError_ = continueOnError;
|
||||
setBodyParameter("ContinueOnError", continueOnError ? "true" : "false");
|
||||
}
|
||||
|
||||
int DetectIPCPedestrianRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setWidth(int width)
|
||||
{
|
||||
width_ = width;
|
||||
setBodyParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
int DetectIPCPedestrianRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setHeight(int height)
|
||||
{
|
||||
height_ = height;
|
||||
setBodyParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
73
facebody/src/model/DetectIPCPedestrianResult.cc
Normal file
73
facebody/src/model/DetectIPCPedestrianResult.cc
Normal file
@@ -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 <alibabacloud/facebody/model/DetectIPCPedestrianResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DetectIPCPedestrianResult::DetectIPCPedestrianResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectIPCPedestrianResult::DetectIPCPedestrianResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianResult::~DetectIPCPedestrianResult()
|
||||
{}
|
||||
|
||||
void DetectIPCPedestrianResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allImageInfoListNode = dataNode["ImageInfoList"]["ImageInfoListItem"];
|
||||
for (auto dataNodeImageInfoListImageInfoListItem : allImageInfoListNode)
|
||||
{
|
||||
Data::ImageInfoListItem imageInfoListItemObject;
|
||||
if(!dataNodeImageInfoListImageInfoListItem["ErrorCode"].isNull())
|
||||
imageInfoListItemObject.errorCode = dataNodeImageInfoListImageInfoListItem["ErrorCode"].asString();
|
||||
if(!dataNodeImageInfoListImageInfoListItem["ErrorMessage"].isNull())
|
||||
imageInfoListItemObject.errorMessage = dataNodeImageInfoListImageInfoListItem["ErrorMessage"].asString();
|
||||
if(!dataNodeImageInfoListImageInfoListItem["DataId"].isNull())
|
||||
imageInfoListItemObject.dataId = dataNodeImageInfoListImageInfoListItem["DataId"].asString();
|
||||
auto allElementsNode = allImageInfoListNode["Elements"]["Element"];
|
||||
for (auto allImageInfoListNodeElementsElement : allElementsNode)
|
||||
{
|
||||
Data::ImageInfoListItem::Element elementsObject;
|
||||
if(!allImageInfoListNodeElementsElement["Score"].isNull())
|
||||
elementsObject.score = std::stof(allImageInfoListNodeElementsElement["Score"].asString());
|
||||
auto allBoxes = value["Boxes"]["Box"];
|
||||
for (auto value : allBoxes)
|
||||
elementsObject.boxes.push_back(value.asString());
|
||||
imageInfoListItemObject.elements.push_back(elementsObject);
|
||||
}
|
||||
data_.imageInfoList.push_back(imageInfoListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectIPCPedestrianResult::Data DetectIPCPedestrianResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
106
imageprocess/CMakeLists.txt
Normal file
106
imageprocess/CMakeLists.txt
Normal file
@@ -0,0 +1,106 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(imageprocess_public_header
|
||||
include/alibabacloud/imageprocess/ImageprocessClient.h
|
||||
include/alibabacloud/imageprocess/ImageprocessExport.h )
|
||||
|
||||
set(imageprocess_public_header_model
|
||||
include/alibabacloud/imageprocess/model/DetectCovid19CadRequest.h
|
||||
include/alibabacloud/imageprocess/model/DetectCovid19CadResult.h
|
||||
include/alibabacloud/imageprocess/model/DetectKneeXRayRequest.h
|
||||
include/alibabacloud/imageprocess/model/DetectKneeXRayResult.h
|
||||
include/alibabacloud/imageprocess/model/DetectLungNoduleRequest.h
|
||||
include/alibabacloud/imageprocess/model/DetectLungNoduleResult.h
|
||||
include/alibabacloud/imageprocess/model/DetectSpineMRIRequest.h
|
||||
include/alibabacloud/imageprocess/model/DetectSpineMRIResult.h
|
||||
include/alibabacloud/imageprocess/model/GetAsyncJobResultRequest.h
|
||||
include/alibabacloud/imageprocess/model/GetAsyncJobResultResult.h
|
||||
include/alibabacloud/imageprocess/model/TranslateMedRequest.h
|
||||
include/alibabacloud/imageprocess/model/TranslateMedResult.h )
|
||||
|
||||
set(imageprocess_src
|
||||
src/ImageprocessClient.cc
|
||||
src/model/DetectCovid19CadRequest.cc
|
||||
src/model/DetectCovid19CadResult.cc
|
||||
src/model/DetectKneeXRayRequest.cc
|
||||
src/model/DetectKneeXRayResult.cc
|
||||
src/model/DetectLungNoduleRequest.cc
|
||||
src/model/DetectLungNoduleResult.cc
|
||||
src/model/DetectSpineMRIRequest.cc
|
||||
src/model/DetectSpineMRIResult.cc
|
||||
src/model/GetAsyncJobResultRequest.cc
|
||||
src/model/GetAsyncJobResultResult.cc
|
||||
src/model/TranslateMedRequest.cc
|
||||
src/model/TranslateMedResult.cc )
|
||||
|
||||
add_library(imageprocess ${LIB_TYPE}
|
||||
${imageprocess_public_header}
|
||||
${imageprocess_public_header_model}
|
||||
${imageprocess_src})
|
||||
|
||||
set_target_properties(imageprocess
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}imageprocess
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(imageprocess
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_IMAGEPROCESS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(imageprocess
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(imageprocess
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(imageprocess
|
||||
jsoncpp)
|
||||
target_include_directories(imageprocess
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(imageprocess
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(imageprocess
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(imageprocess
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(imageprocess
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${imageprocess_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imageprocess)
|
||||
install(FILES ${imageprocess_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imageprocess/model)
|
||||
install(TARGETS imageprocess
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_IMAGEPROCESSCLIENT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_IMAGEPROCESSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ImageprocessExport.h"
|
||||
#include "model/DetectCovid19CadRequest.h"
|
||||
#include "model/DetectCovid19CadResult.h"
|
||||
#include "model/DetectKneeXRayRequest.h"
|
||||
#include "model/DetectKneeXRayResult.h"
|
||||
#include "model/DetectLungNoduleRequest.h"
|
||||
#include "model/DetectLungNoduleResult.h"
|
||||
#include "model/DetectSpineMRIRequest.h"
|
||||
#include "model/DetectSpineMRIResult.h"
|
||||
#include "model/GetAsyncJobResultRequest.h"
|
||||
#include "model/GetAsyncJobResultResult.h"
|
||||
#include "model/TranslateMedRequest.h"
|
||||
#include "model/TranslateMedResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT ImageprocessClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DetectCovid19CadResult> DetectCovid19CadOutcome;
|
||||
typedef std::future<DetectCovid19CadOutcome> DetectCovid19CadOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::DetectCovid19CadRequest&, const DetectCovid19CadOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectCovid19CadAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectKneeXRayResult> DetectKneeXRayOutcome;
|
||||
typedef std::future<DetectKneeXRayOutcome> DetectKneeXRayOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::DetectKneeXRayRequest&, const DetectKneeXRayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectKneeXRayAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectLungNoduleResult> DetectLungNoduleOutcome;
|
||||
typedef std::future<DetectLungNoduleOutcome> DetectLungNoduleOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::DetectLungNoduleRequest&, const DetectLungNoduleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLungNoduleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectSpineMRIResult> DetectSpineMRIOutcome;
|
||||
typedef std::future<DetectSpineMRIOutcome> DetectSpineMRIOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::DetectSpineMRIRequest&, const DetectSpineMRIOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectSpineMRIAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAsyncJobResultResult> GetAsyncJobResultOutcome;
|
||||
typedef std::future<GetAsyncJobResultOutcome> GetAsyncJobResultOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::GetAsyncJobResultRequest&, const GetAsyncJobResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAsyncJobResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateMedResult> TranslateMedOutcome;
|
||||
typedef std::future<TranslateMedOutcome> TranslateMedOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::TranslateMedRequest&, const TranslateMedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateMedAsyncHandler;
|
||||
|
||||
ImageprocessClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ImageprocessClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ImageprocessClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ImageprocessClient();
|
||||
DetectCovid19CadOutcome detectCovid19Cad(const Model::DetectCovid19CadRequest &request)const;
|
||||
void detectCovid19CadAsync(const Model::DetectCovid19CadRequest& request, const DetectCovid19CadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectCovid19CadOutcomeCallable detectCovid19CadCallable(const Model::DetectCovid19CadRequest& request) const;
|
||||
DetectKneeXRayOutcome detectKneeXRay(const Model::DetectKneeXRayRequest &request)const;
|
||||
void detectKneeXRayAsync(const Model::DetectKneeXRayRequest& request, const DetectKneeXRayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectKneeXRayOutcomeCallable detectKneeXRayCallable(const Model::DetectKneeXRayRequest& request) const;
|
||||
DetectLungNoduleOutcome detectLungNodule(const Model::DetectLungNoduleRequest &request)const;
|
||||
void detectLungNoduleAsync(const Model::DetectLungNoduleRequest& request, const DetectLungNoduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectLungNoduleOutcomeCallable detectLungNoduleCallable(const Model::DetectLungNoduleRequest& request) const;
|
||||
DetectSpineMRIOutcome detectSpineMRI(const Model::DetectSpineMRIRequest &request)const;
|
||||
void detectSpineMRIAsync(const Model::DetectSpineMRIRequest& request, const DetectSpineMRIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectSpineMRIOutcomeCallable detectSpineMRICallable(const Model::DetectSpineMRIRequest& request) const;
|
||||
GetAsyncJobResultOutcome getAsyncJobResult(const Model::GetAsyncJobResultRequest &request)const;
|
||||
void getAsyncJobResultAsync(const Model::GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAsyncJobResultOutcomeCallable getAsyncJobResultCallable(const Model::GetAsyncJobResultRequest& request) const;
|
||||
TranslateMedOutcome translateMed(const Model::TranslateMedRequest &request)const;
|
||||
void translateMedAsync(const Model::TranslateMedRequest& request, const TranslateMedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateMedOutcomeCallable translateMedCallable(const Model::TranslateMedRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_IMAGEPROCESSCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_IMAGEPROCESSEXPORT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_IMAGEPROCESSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_IMAGEPROCESS_LIBRARY)
|
||||
# define ALIBABACLOUD_IMAGEPROCESS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_IMAGEPROCESS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_IMAGEPROCESS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_IMAGEPROCESSEXPORT_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTCOVID19CADREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTCOVID19CADREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectCovid19CadRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct URLList
|
||||
{
|
||||
std::string uRL;
|
||||
};
|
||||
|
||||
public:
|
||||
DetectCovid19CadRequest();
|
||||
~DetectCovid19CadRequest();
|
||||
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::vector<URLList> uRLList_;
|
||||
bool async_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTCOVID19CADREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTCOVID19CADRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTCOVID19CADRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectCovid19CadResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string newProbability;
|
||||
std::string otherProbability;
|
||||
std::string normalProbability;
|
||||
std::string mask;
|
||||
std::string lesionRatio;
|
||||
};
|
||||
|
||||
|
||||
DetectCovid19CadResult();
|
||||
explicit DetectCovid19CadResult(const std::string &payload);
|
||||
~DetectCovid19CadResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTCOVID19CADRESULT_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_IMAGEPROCESS_MODEL_DETECTKNEEXRAYREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTKNEEXRAYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectKneeXRayRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectKneeXRayRequest();
|
||||
~DetectKneeXRayRequest();
|
||||
|
||||
std::string getDataFormat()const;
|
||||
void setDataFormat(const std::string& dataFormat);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
|
||||
private:
|
||||
std::string dataFormat_;
|
||||
std::string url_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTKNEEXRAYREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTKNEEXRAYRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTKNEEXRAYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectKneeXRayResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct KLDetectionsItem
|
||||
{
|
||||
std::vector<std::string> detections;
|
||||
};
|
||||
std::vector<KLDetectionsItem> kLDetections;
|
||||
};
|
||||
|
||||
|
||||
DetectKneeXRayResult();
|
||||
explicit DetectKneeXRayResult(const std::string &payload);
|
||||
~DetectKneeXRayResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTKNEEXRAYRESULT_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTLUNGNODULEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTLUNGNODULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectLungNoduleRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct URLList
|
||||
{
|
||||
std::string uRL;
|
||||
};
|
||||
|
||||
public:
|
||||
DetectLungNoduleRequest();
|
||||
~DetectLungNoduleRequest();
|
||||
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::vector<URLList> uRLList_;
|
||||
bool async_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTLUNGNODULEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTLUNGNODULERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTLUNGNODULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectLungNoduleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Serie
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
std::string lobe;
|
||||
std::string category;
|
||||
float confidence;
|
||||
std::string lung;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float diameter;
|
||||
};
|
||||
std::vector<Serie::Element> elements;
|
||||
std::string seriesInstanceUid;
|
||||
};
|
||||
std::vector<Serie> series;
|
||||
};
|
||||
|
||||
|
||||
DetectLungNoduleResult();
|
||||
explicit DetectLungNoduleResult(const std::string &payload);
|
||||
~DetectLungNoduleResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTLUNGNODULERESULT_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTSPINEMRIREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTSPINEMRIREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectSpineMRIRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct URLList
|
||||
{
|
||||
std::string uRL;
|
||||
};
|
||||
|
||||
public:
|
||||
DetectSpineMRIRequest();
|
||||
~DetectSpineMRIRequest();
|
||||
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
|
||||
private:
|
||||
std::vector<URLList> uRLList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTSPINEMRIREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_DETECTSPINEMRIRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTSPINEMRIRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT DetectSpineMRIResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Disc
|
||||
{
|
||||
std::string disease;
|
||||
std::string identification;
|
||||
std::vector<std::string> location;
|
||||
};
|
||||
struct Vertebra
|
||||
{
|
||||
std::string disease;
|
||||
std::string identification;
|
||||
std::vector<std::string> location1;
|
||||
};
|
||||
std::vector<Disc> discs;
|
||||
std::vector<Vertebra> vertebras;
|
||||
};
|
||||
|
||||
|
||||
DetectSpineMRIResult();
|
||||
explicit DetectSpineMRIResult(const std::string &payload);
|
||||
~DetectSpineMRIResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_DETECTSPINEMRIRESULT_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_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAsyncJobResultRequest();
|
||||
~GetAsyncJobResultRequest();
|
||||
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
|
||||
private:
|
||||
bool async_;
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT GetAsyncJobResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
std::string errorCode;
|
||||
std::string errorMessage;
|
||||
std::string jobId;
|
||||
std::string result;
|
||||
};
|
||||
|
||||
|
||||
GetAsyncJobResultResult();
|
||||
explicit GetAsyncJobResultResult(const std::string &payload);
|
||||
~GetAsyncJobResultResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_GETASYNCJOBRESULTRESULT_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_IMAGEPROCESS_MODEL_TRANSLATEMEDREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_TRANSLATEMEDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT TranslateMedRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateMedRequest();
|
||||
~TranslateMedRequest();
|
||||
|
||||
std::string getFromLanguage()const;
|
||||
void setFromLanguage(const std::string& fromLanguage);
|
||||
std::string getToLanguage()const;
|
||||
void setToLanguage(const std::string& toLanguage);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string fromLanguage_;
|
||||
std::string toLanguage_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_TRANSLATEMEDREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_IMAGEPROCESS_MODEL_TRANSLATEMEDRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_TRANSLATEMEDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT TranslateMedResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long words;
|
||||
std::string text;
|
||||
};
|
||||
|
||||
|
||||
TranslateMedResult();
|
||||
explicit TranslateMedResult(const std::string &payload);
|
||||
~TranslateMedResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_TRANSLATEMEDRESULT_H_
|
||||
269
imageprocess/src/ImageprocessClient.cc
Normal file
269
imageprocess/src/ImageprocessClient.cc
Normal file
@@ -0,0 +1,269 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/ImageprocessClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "imageprocess";
|
||||
}
|
||||
|
||||
ImageprocessClient::ImageprocessClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imageprocess");
|
||||
}
|
||||
|
||||
ImageprocessClient::ImageprocessClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imageprocess");
|
||||
}
|
||||
|
||||
ImageprocessClient::ImageprocessClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imageprocess");
|
||||
}
|
||||
|
||||
ImageprocessClient::~ImageprocessClient()
|
||||
{}
|
||||
|
||||
ImageprocessClient::DetectCovid19CadOutcome ImageprocessClient::detectCovid19Cad(const DetectCovid19CadRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectCovid19CadOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectCovid19CadOutcome(DetectCovid19CadResult(outcome.result()));
|
||||
else
|
||||
return DetectCovid19CadOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::detectCovid19CadAsync(const DetectCovid19CadRequest& request, const DetectCovid19CadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectCovid19Cad(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectCovid19CadOutcomeCallable ImageprocessClient::detectCovid19CadCallable(const DetectCovid19CadRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectCovid19CadOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectCovid19Cad(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectKneeXRayOutcome ImageprocessClient::detectKneeXRay(const DetectKneeXRayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectKneeXRayOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectKneeXRayOutcome(DetectKneeXRayResult(outcome.result()));
|
||||
else
|
||||
return DetectKneeXRayOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::detectKneeXRayAsync(const DetectKneeXRayRequest& request, const DetectKneeXRayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectKneeXRay(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectKneeXRayOutcomeCallable ImageprocessClient::detectKneeXRayCallable(const DetectKneeXRayRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectKneeXRayOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectKneeXRay(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectLungNoduleOutcome ImageprocessClient::detectLungNodule(const DetectLungNoduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectLungNoduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectLungNoduleOutcome(DetectLungNoduleResult(outcome.result()));
|
||||
else
|
||||
return DetectLungNoduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::detectLungNoduleAsync(const DetectLungNoduleRequest& request, const DetectLungNoduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectLungNodule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectLungNoduleOutcomeCallable ImageprocessClient::detectLungNoduleCallable(const DetectLungNoduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectLungNoduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectLungNodule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectSpineMRIOutcome ImageprocessClient::detectSpineMRI(const DetectSpineMRIRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectSpineMRIOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectSpineMRIOutcome(DetectSpineMRIResult(outcome.result()));
|
||||
else
|
||||
return DetectSpineMRIOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::detectSpineMRIAsync(const DetectSpineMRIRequest& request, const DetectSpineMRIAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectSpineMRI(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::DetectSpineMRIOutcomeCallable ImageprocessClient::detectSpineMRICallable(const DetectSpineMRIRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectSpineMRIOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectSpineMRI(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::GetAsyncJobResultOutcome ImageprocessClient::getAsyncJobResult(const GetAsyncJobResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAsyncJobResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAsyncJobResultOutcome(GetAsyncJobResultResult(outcome.result()));
|
||||
else
|
||||
return GetAsyncJobResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::getAsyncJobResultAsync(const GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAsyncJobResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::GetAsyncJobResultOutcomeCallable ImageprocessClient::getAsyncJobResultCallable(const GetAsyncJobResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAsyncJobResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAsyncJobResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImageprocessClient::TranslateMedOutcome ImageprocessClient::translateMed(const TranslateMedRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateMedOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateMedOutcome(TranslateMedResult(outcome.result()));
|
||||
else
|
||||
return TranslateMedOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImageprocessClient::translateMedAsync(const TranslateMedRequest& request, const TranslateMedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateMed(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImageprocessClient::TranslateMedOutcomeCallable ImageprocessClient::translateMedCallable(const TranslateMedRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateMedOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateMed(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
55
imageprocess/src/model/DetectCovid19CadRequest.cc
Normal file
55
imageprocess/src/model/DetectCovid19CadRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/DetectCovid19CadRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::DetectCovid19CadRequest;
|
||||
|
||||
DetectCovid19CadRequest::DetectCovid19CadRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "DetectCovid19Cad")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectCovid19CadRequest::~DetectCovid19CadRequest()
|
||||
{}
|
||||
|
||||
std::vector<DetectCovid19CadRequest::URLList> DetectCovid19CadRequest::getURLList()const
|
||||
{
|
||||
return uRLList_;
|
||||
}
|
||||
|
||||
void DetectCovid19CadRequest::setURLList(const std::vector<URLList>& uRLList)
|
||||
{
|
||||
uRLList_ = uRLList;
|
||||
for(int dep1 = 0; dep1!= uRLList.size(); dep1++) {
|
||||
auto uRLListObj = uRLList.at(dep1);
|
||||
std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1);
|
||||
setParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
|
||||
}
|
||||
}
|
||||
|
||||
bool DetectCovid19CadRequest::getAsync()const
|
||||
{
|
||||
return async_;
|
||||
}
|
||||
|
||||
void DetectCovid19CadRequest::setAsync(bool async)
|
||||
{
|
||||
async_ = async;
|
||||
setBodyParameter("Async", async ? "true" : "false");
|
||||
}
|
||||
|
||||
60
imageprocess/src/model/DetectCovid19CadResult.cc
Normal file
60
imageprocess/src/model/DetectCovid19CadResult.cc
Normal file
@@ -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 <alibabacloud/imageprocess/model/DetectCovid19CadResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
DetectCovid19CadResult::DetectCovid19CadResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectCovid19CadResult::DetectCovid19CadResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectCovid19CadResult::~DetectCovid19CadResult()
|
||||
{}
|
||||
|
||||
void DetectCovid19CadResult::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["NewProbability"].isNull())
|
||||
data_.newProbability = dataNode["NewProbability"].asString();
|
||||
if(!dataNode["NormalProbability"].isNull())
|
||||
data_.normalProbability = dataNode["NormalProbability"].asString();
|
||||
if(!dataNode["OtherProbability"].isNull())
|
||||
data_.otherProbability = dataNode["OtherProbability"].asString();
|
||||
if(!dataNode["LesionRatio"].isNull())
|
||||
data_.lesionRatio = dataNode["LesionRatio"].asString();
|
||||
if(!dataNode["Mask"].isNull())
|
||||
data_.mask = dataNode["Mask"].asString();
|
||||
|
||||
}
|
||||
|
||||
DetectCovid19CadResult::Data DetectCovid19CadResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
imageprocess/src/model/DetectKneeXRayRequest.cc
Normal file
51
imageprocess/src/model/DetectKneeXRayRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imageprocess/model/DetectKneeXRayRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::DetectKneeXRayRequest;
|
||||
|
||||
DetectKneeXRayRequest::DetectKneeXRayRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "DetectKneeXRay")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectKneeXRayRequest::~DetectKneeXRayRequest()
|
||||
{}
|
||||
|
||||
std::string DetectKneeXRayRequest::getDataFormat()const
|
||||
{
|
||||
return dataFormat_;
|
||||
}
|
||||
|
||||
void DetectKneeXRayRequest::setDataFormat(const std::string& dataFormat)
|
||||
{
|
||||
dataFormat_ = dataFormat;
|
||||
setBodyParameter("DataFormat", dataFormat);
|
||||
}
|
||||
|
||||
std::string DetectKneeXRayRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void DetectKneeXRayRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setBodyParameter("Url", url);
|
||||
}
|
||||
|
||||
59
imageprocess/src/model/DetectKneeXRayResult.cc
Normal file
59
imageprocess/src/model/DetectKneeXRayResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/DetectKneeXRayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
DetectKneeXRayResult::DetectKneeXRayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectKneeXRayResult::DetectKneeXRayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectKneeXRayResult::~DetectKneeXRayResult()
|
||||
{}
|
||||
|
||||
void DetectKneeXRayResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allKLDetectionsNode = dataNode["KLDetections"]["KLDetectionsItem"];
|
||||
for (auto dataNodeKLDetectionsKLDetectionsItem : allKLDetectionsNode)
|
||||
{
|
||||
Data::KLDetectionsItem kLDetectionsItemObject;
|
||||
auto allDetections = value["Detections"]["Detections"];
|
||||
for (auto value : allDetections)
|
||||
kLDetectionsItemObject.detections.push_back(value.asString());
|
||||
data_.kLDetections.push_back(kLDetectionsItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectKneeXRayResult::Data DetectKneeXRayResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
55
imageprocess/src/model/DetectLungNoduleRequest.cc
Normal file
55
imageprocess/src/model/DetectLungNoduleRequest.cc
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/DetectLungNoduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::DetectLungNoduleRequest;
|
||||
|
||||
DetectLungNoduleRequest::DetectLungNoduleRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "DetectLungNodule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectLungNoduleRequest::~DetectLungNoduleRequest()
|
||||
{}
|
||||
|
||||
std::vector<DetectLungNoduleRequest::URLList> DetectLungNoduleRequest::getURLList()const
|
||||
{
|
||||
return uRLList_;
|
||||
}
|
||||
|
||||
void DetectLungNoduleRequest::setURLList(const std::vector<URLList>& uRLList)
|
||||
{
|
||||
uRLList_ = uRLList;
|
||||
for(int dep1 = 0; dep1!= uRLList.size(); dep1++) {
|
||||
auto uRLListObj = uRLList.at(dep1);
|
||||
std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1);
|
||||
setParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
|
||||
}
|
||||
}
|
||||
|
||||
bool DetectLungNoduleRequest::getAsync()const
|
||||
{
|
||||
return async_;
|
||||
}
|
||||
|
||||
void DetectLungNoduleRequest::setAsync(bool async)
|
||||
{
|
||||
async_ = async;
|
||||
setBodyParameter("Async", async ? "true" : "false");
|
||||
}
|
||||
|
||||
80
imageprocess/src/model/DetectLungNoduleResult.cc
Normal file
80
imageprocess/src/model/DetectLungNoduleResult.cc
Normal file
@@ -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 <alibabacloud/imageprocess/model/DetectLungNoduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
DetectLungNoduleResult::DetectLungNoduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectLungNoduleResult::DetectLungNoduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectLungNoduleResult::~DetectLungNoduleResult()
|
||||
{}
|
||||
|
||||
void DetectLungNoduleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allSeriesNode = dataNode["Series"]["Serie"];
|
||||
for (auto dataNodeSeriesSerie : allSeriesNode)
|
||||
{
|
||||
Data::Serie serieObject;
|
||||
if(!dataNodeSeriesSerie["SeriesInstanceUid"].isNull())
|
||||
serieObject.seriesInstanceUid = dataNodeSeriesSerie["SeriesInstanceUid"].asString();
|
||||
auto allElementsNode = allSeriesNode["Elements"]["Element"];
|
||||
for (auto allSeriesNodeElementsElement : allElementsNode)
|
||||
{
|
||||
Data::Serie::Element elementsObject;
|
||||
if(!allSeriesNodeElementsElement["Category"].isNull())
|
||||
elementsObject.category = allSeriesNodeElementsElement["Category"].asString();
|
||||
if(!allSeriesNodeElementsElement["Confidence"].isNull())
|
||||
elementsObject.confidence = std::stof(allSeriesNodeElementsElement["Confidence"].asString());
|
||||
if(!allSeriesNodeElementsElement["Diameter"].isNull())
|
||||
elementsObject.diameter = std::stof(allSeriesNodeElementsElement["Diameter"].asString());
|
||||
if(!allSeriesNodeElementsElement["Lobe"].isNull())
|
||||
elementsObject.lobe = allSeriesNodeElementsElement["Lobe"].asString();
|
||||
if(!allSeriesNodeElementsElement["Lung"].isNull())
|
||||
elementsObject.lung = allSeriesNodeElementsElement["Lung"].asString();
|
||||
if(!allSeriesNodeElementsElement["X"].isNull())
|
||||
elementsObject.x = std::stof(allSeriesNodeElementsElement["X"].asString());
|
||||
if(!allSeriesNodeElementsElement["Z"].isNull())
|
||||
elementsObject.z = std::stof(allSeriesNodeElementsElement["Z"].asString());
|
||||
if(!allSeriesNodeElementsElement["Y"].isNull())
|
||||
elementsObject.y = std::stof(allSeriesNodeElementsElement["Y"].asString());
|
||||
serieObject.elements.push_back(elementsObject);
|
||||
}
|
||||
data_.series.push_back(serieObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectLungNoduleResult::Data DetectLungNoduleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
44
imageprocess/src/model/DetectSpineMRIRequest.cc
Normal file
44
imageprocess/src/model/DetectSpineMRIRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/DetectSpineMRIRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::DetectSpineMRIRequest;
|
||||
|
||||
DetectSpineMRIRequest::DetectSpineMRIRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "DetectSpineMRI")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectSpineMRIRequest::~DetectSpineMRIRequest()
|
||||
{}
|
||||
|
||||
std::vector<DetectSpineMRIRequest::URLList> DetectSpineMRIRequest::getURLList()const
|
||||
{
|
||||
return uRLList_;
|
||||
}
|
||||
|
||||
void DetectSpineMRIRequest::setURLList(const std::vector<URLList>& uRLList)
|
||||
{
|
||||
uRLList_ = uRLList;
|
||||
for(int dep1 = 0; dep1!= uRLList.size(); dep1++) {
|
||||
auto uRLListObj = uRLList.at(dep1);
|
||||
std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1);
|
||||
setParameter(uRLListObjStr + ".URL", uRLListObj.uRL);
|
||||
}
|
||||
}
|
||||
|
||||
76
imageprocess/src/model/DetectSpineMRIResult.cc
Normal file
76
imageprocess/src/model/DetectSpineMRIResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/DetectSpineMRIResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
DetectSpineMRIResult::DetectSpineMRIResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectSpineMRIResult::DetectSpineMRIResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectSpineMRIResult::~DetectSpineMRIResult()
|
||||
{}
|
||||
|
||||
void DetectSpineMRIResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allDiscsNode = dataNode["Discs"]["Disc"];
|
||||
for (auto dataNodeDiscsDisc : allDiscsNode)
|
||||
{
|
||||
Data::Disc discObject;
|
||||
if(!dataNodeDiscsDisc["Disease"].isNull())
|
||||
discObject.disease = dataNodeDiscsDisc["Disease"].asString();
|
||||
if(!dataNodeDiscsDisc["Identification"].isNull())
|
||||
discObject.identification = dataNodeDiscsDisc["Identification"].asString();
|
||||
auto allLocation = value["Location"]["Location"];
|
||||
for (auto value : allLocation)
|
||||
discObject.location.push_back(value.asString());
|
||||
data_.discs.push_back(discObject);
|
||||
}
|
||||
auto allVertebrasNode = dataNode["Vertebras"]["Vertebra"];
|
||||
for (auto dataNodeVertebrasVertebra : allVertebrasNode)
|
||||
{
|
||||
Data::Vertebra vertebraObject;
|
||||
if(!dataNodeVertebrasVertebra["Disease"].isNull())
|
||||
vertebraObject.disease = dataNodeVertebrasVertebra["Disease"].asString();
|
||||
if(!dataNodeVertebrasVertebra["Identification"].isNull())
|
||||
vertebraObject.identification = dataNodeVertebrasVertebra["Identification"].asString();
|
||||
auto allLocation1 = value["Location"]["Location"];
|
||||
for (auto value : allLocation1)
|
||||
vertebraObject.location1.push_back(value.asString());
|
||||
data_.vertebras.push_back(vertebraObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectSpineMRIResult::Data DetectSpineMRIResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
imageprocess/src/model/GetAsyncJobResultRequest.cc
Normal file
51
imageprocess/src/model/GetAsyncJobResultRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imageprocess/model/GetAsyncJobResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::GetAsyncJobResultRequest;
|
||||
|
||||
GetAsyncJobResultRequest::GetAsyncJobResultRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "GetAsyncJobResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAsyncJobResultRequest::~GetAsyncJobResultRequest()
|
||||
{}
|
||||
|
||||
bool GetAsyncJobResultRequest::getAsync()const
|
||||
{
|
||||
return async_;
|
||||
}
|
||||
|
||||
void GetAsyncJobResultRequest::setAsync(bool async)
|
||||
{
|
||||
async_ = async;
|
||||
setBodyParameter("Async", async ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetAsyncJobResultRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetAsyncJobResultRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
60
imageprocess/src/model/GetAsyncJobResultResult.cc
Normal file
60
imageprocess/src/model/GetAsyncJobResultResult.cc
Normal file
@@ -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 <alibabacloud/imageprocess/model/GetAsyncJobResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
GetAsyncJobResultResult::GetAsyncJobResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAsyncJobResultResult::GetAsyncJobResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAsyncJobResultResult::~GetAsyncJobResultResult()
|
||||
{}
|
||||
|
||||
void GetAsyncJobResultResult::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["JobId"].isNull())
|
||||
data_.jobId = dataNode["JobId"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["Result"].isNull())
|
||||
data_.result = dataNode["Result"].asString();
|
||||
if(!dataNode["ErrorCode"].isNull())
|
||||
data_.errorCode = dataNode["ErrorCode"].asString();
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAsyncJobResultResult::Data GetAsyncJobResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
imageprocess/src/model/TranslateMedRequest.cc
Normal file
62
imageprocess/src/model/TranslateMedRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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 <alibabacloud/imageprocess/model/TranslateMedRequest.h>
|
||||
|
||||
using AlibabaCloud::Imageprocess::Model::TranslateMedRequest;
|
||||
|
||||
TranslateMedRequest::TranslateMedRequest() :
|
||||
RpcServiceRequest("imageprocess", "2020-03-20", "TranslateMed")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateMedRequest::~TranslateMedRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateMedRequest::getFromLanguage()const
|
||||
{
|
||||
return fromLanguage_;
|
||||
}
|
||||
|
||||
void TranslateMedRequest::setFromLanguage(const std::string& fromLanguage)
|
||||
{
|
||||
fromLanguage_ = fromLanguage;
|
||||
setBodyParameter("FromLanguage", fromLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateMedRequest::getToLanguage()const
|
||||
{
|
||||
return toLanguage_;
|
||||
}
|
||||
|
||||
void TranslateMedRequest::setToLanguage(const std::string& toLanguage)
|
||||
{
|
||||
toLanguage_ = toLanguage;
|
||||
setBodyParameter("ToLanguage", toLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateMedRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void TranslateMedRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
54
imageprocess/src/model/TranslateMedResult.cc
Normal file
54
imageprocess/src/model/TranslateMedResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imageprocess/model/TranslateMedResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imageprocess;
|
||||
using namespace AlibabaCloud::Imageprocess::Model;
|
||||
|
||||
TranslateMedResult::TranslateMedResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateMedResult::TranslateMedResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateMedResult::~TranslateMedResult()
|
||||
{}
|
||||
|
||||
void TranslateMedResult::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["Text"].isNull())
|
||||
data_.text = dataNode["Text"].asString();
|
||||
if(!dataNode["Words"].isNull())
|
||||
data_.words = std::stol(dataNode["Words"].asString());
|
||||
|
||||
}
|
||||
|
||||
TranslateMedResult::Data TranslateMedResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/CancelImportResult.h
|
||||
include/alibabacloud/rds/model/CheckAccountNameAvailableRequest.h
|
||||
include/alibabacloud/rds/model/CheckAccountNameAvailableResult.h
|
||||
include/alibabacloud/rds/model/CheckCloudResourceAuthorizedRequest.h
|
||||
include/alibabacloud/rds/model/CheckCloudResourceAuthorizedResult.h
|
||||
include/alibabacloud/rds/model/CheckCreateDdrDBInstanceRequest.h
|
||||
include/alibabacloud/rds/model/CheckCreateDdrDBInstanceResult.h
|
||||
include/alibabacloud/rds/model/CheckDBNameAvailableRequest.h
|
||||
@@ -57,6 +59,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/CreateBackupResult.h
|
||||
include/alibabacloud/rds/model/CreateDBInstanceRequest.h
|
||||
include/alibabacloud/rds/model/CreateDBInstanceResult.h
|
||||
include/alibabacloud/rds/model/CreateDBProxyEndpointAddressRequest.h
|
||||
include/alibabacloud/rds/model/CreateDBProxyEndpointAddressResult.h
|
||||
include/alibabacloud/rds/model/CreateDatabaseRequest.h
|
||||
include/alibabacloud/rds/model/CreateDatabaseResult.h
|
||||
include/alibabacloud/rds/model/CreateDdrInstanceRequest.h
|
||||
@@ -93,6 +97,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DeleteBackupFileResult.h
|
||||
include/alibabacloud/rds/model/DeleteDBInstanceRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDBInstanceResult.h
|
||||
include/alibabacloud/rds/model/DeleteDBProxyEndpointAddressRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDBProxyEndpointAddressResult.h
|
||||
include/alibabacloud/rds/model/DeleteDatabaseRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDatabaseResult.h
|
||||
include/alibabacloud/rds/model/DeleteDedicatedHostAccountRequest.h
|
||||
@@ -187,6 +193,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeDBProxyPerformanceResult.h
|
||||
include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDTCSecurityIpHostsForSQLServerResult.h
|
||||
include/alibabacloud/rds/model/DescribeDasInstanceConfigRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDasInstanceConfigResult.h
|
||||
include/alibabacloud/rds/model/DescribeDatabasesRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDatabasesResult.h
|
||||
include/alibabacloud/rds/model/DescribeDedicatedHostAttributeRequest.h
|
||||
@@ -351,6 +359,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/ModifyDBProxyInstanceResult.h
|
||||
include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerRequest.h
|
||||
include/alibabacloud/rds/model/ModifyDTCSecurityIpHostsForSQLServerResult.h
|
||||
include/alibabacloud/rds/model/ModifyDasInstanceConfigRequest.h
|
||||
include/alibabacloud/rds/model/ModifyDasInstanceConfigResult.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostAccountRequest.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostAccountResult.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostAttributeRequest.h
|
||||
@@ -464,6 +474,8 @@ set(rds_src
|
||||
src/model/CancelImportResult.cc
|
||||
src/model/CheckAccountNameAvailableRequest.cc
|
||||
src/model/CheckAccountNameAvailableResult.cc
|
||||
src/model/CheckCloudResourceAuthorizedRequest.cc
|
||||
src/model/CheckCloudResourceAuthorizedResult.cc
|
||||
src/model/CheckCreateDdrDBInstanceRequest.cc
|
||||
src/model/CheckCreateDdrDBInstanceResult.cc
|
||||
src/model/CheckDBNameAvailableRequest.cc
|
||||
@@ -488,6 +500,8 @@ set(rds_src
|
||||
src/model/CreateBackupResult.cc
|
||||
src/model/CreateDBInstanceRequest.cc
|
||||
src/model/CreateDBInstanceResult.cc
|
||||
src/model/CreateDBProxyEndpointAddressRequest.cc
|
||||
src/model/CreateDBProxyEndpointAddressResult.cc
|
||||
src/model/CreateDatabaseRequest.cc
|
||||
src/model/CreateDatabaseResult.cc
|
||||
src/model/CreateDdrInstanceRequest.cc
|
||||
@@ -524,6 +538,8 @@ set(rds_src
|
||||
src/model/DeleteBackupFileResult.cc
|
||||
src/model/DeleteDBInstanceRequest.cc
|
||||
src/model/DeleteDBInstanceResult.cc
|
||||
src/model/DeleteDBProxyEndpointAddressRequest.cc
|
||||
src/model/DeleteDBProxyEndpointAddressResult.cc
|
||||
src/model/DeleteDatabaseRequest.cc
|
||||
src/model/DeleteDatabaseResult.cc
|
||||
src/model/DeleteDedicatedHostAccountRequest.cc
|
||||
@@ -618,6 +634,8 @@ set(rds_src
|
||||
src/model/DescribeDBProxyPerformanceResult.cc
|
||||
src/model/DescribeDTCSecurityIpHostsForSQLServerRequest.cc
|
||||
src/model/DescribeDTCSecurityIpHostsForSQLServerResult.cc
|
||||
src/model/DescribeDasInstanceConfigRequest.cc
|
||||
src/model/DescribeDasInstanceConfigResult.cc
|
||||
src/model/DescribeDatabasesRequest.cc
|
||||
src/model/DescribeDatabasesResult.cc
|
||||
src/model/DescribeDedicatedHostAttributeRequest.cc
|
||||
@@ -782,6 +800,8 @@ set(rds_src
|
||||
src/model/ModifyDBProxyInstanceResult.cc
|
||||
src/model/ModifyDTCSecurityIpHostsForSQLServerRequest.cc
|
||||
src/model/ModifyDTCSecurityIpHostsForSQLServerResult.cc
|
||||
src/model/ModifyDasInstanceConfigRequest.cc
|
||||
src/model/ModifyDasInstanceConfigResult.cc
|
||||
src/model/ModifyDedicatedHostAccountRequest.cc
|
||||
src/model/ModifyDedicatedHostAccountResult.cc
|
||||
src/model/ModifyDedicatedHostAttributeRequest.cc
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
#include "model/CancelImportResult.h"
|
||||
#include "model/CheckAccountNameAvailableRequest.h"
|
||||
#include "model/CheckAccountNameAvailableResult.h"
|
||||
#include "model/CheckCloudResourceAuthorizedRequest.h"
|
||||
#include "model/CheckCloudResourceAuthorizedResult.h"
|
||||
#include "model/CheckCreateDdrDBInstanceRequest.h"
|
||||
#include "model/CheckCreateDdrDBInstanceResult.h"
|
||||
#include "model/CheckDBNameAvailableRequest.h"
|
||||
@@ -58,6 +60,8 @@
|
||||
#include "model/CreateBackupResult.h"
|
||||
#include "model/CreateDBInstanceRequest.h"
|
||||
#include "model/CreateDBInstanceResult.h"
|
||||
#include "model/CreateDBProxyEndpointAddressRequest.h"
|
||||
#include "model/CreateDBProxyEndpointAddressResult.h"
|
||||
#include "model/CreateDatabaseRequest.h"
|
||||
#include "model/CreateDatabaseResult.h"
|
||||
#include "model/CreateDdrInstanceRequest.h"
|
||||
@@ -94,6 +98,8 @@
|
||||
#include "model/DeleteBackupFileResult.h"
|
||||
#include "model/DeleteDBInstanceRequest.h"
|
||||
#include "model/DeleteDBInstanceResult.h"
|
||||
#include "model/DeleteDBProxyEndpointAddressRequest.h"
|
||||
#include "model/DeleteDBProxyEndpointAddressResult.h"
|
||||
#include "model/DeleteDatabaseRequest.h"
|
||||
#include "model/DeleteDatabaseResult.h"
|
||||
#include "model/DeleteDedicatedHostAccountRequest.h"
|
||||
@@ -188,6 +194,8 @@
|
||||
#include "model/DescribeDBProxyPerformanceResult.h"
|
||||
#include "model/DescribeDTCSecurityIpHostsForSQLServerRequest.h"
|
||||
#include "model/DescribeDTCSecurityIpHostsForSQLServerResult.h"
|
||||
#include "model/DescribeDasInstanceConfigRequest.h"
|
||||
#include "model/DescribeDasInstanceConfigResult.h"
|
||||
#include "model/DescribeDatabasesRequest.h"
|
||||
#include "model/DescribeDatabasesResult.h"
|
||||
#include "model/DescribeDedicatedHostAttributeRequest.h"
|
||||
@@ -352,6 +360,8 @@
|
||||
#include "model/ModifyDBProxyInstanceResult.h"
|
||||
#include "model/ModifyDTCSecurityIpHostsForSQLServerRequest.h"
|
||||
#include "model/ModifyDTCSecurityIpHostsForSQLServerResult.h"
|
||||
#include "model/ModifyDasInstanceConfigRequest.h"
|
||||
#include "model/ModifyDasInstanceConfigResult.h"
|
||||
#include "model/ModifyDedicatedHostAccountRequest.h"
|
||||
#include "model/ModifyDedicatedHostAccountResult.h"
|
||||
#include "model/ModifyDedicatedHostAttributeRequest.h"
|
||||
@@ -477,6 +487,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CheckAccountNameAvailableResult> CheckAccountNameAvailableOutcome;
|
||||
typedef std::future<CheckAccountNameAvailableOutcome> CheckAccountNameAvailableOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CheckAccountNameAvailableRequest&, const CheckAccountNameAvailableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckAccountNameAvailableAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckCloudResourceAuthorizedResult> CheckCloudResourceAuthorizedOutcome;
|
||||
typedef std::future<CheckCloudResourceAuthorizedOutcome> CheckCloudResourceAuthorizedOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CheckCloudResourceAuthorizedRequest&, const CheckCloudResourceAuthorizedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckCloudResourceAuthorizedAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckCreateDdrDBInstanceResult> CheckCreateDdrDBInstanceOutcome;
|
||||
typedef std::future<CheckCreateDdrDBInstanceOutcome> CheckCreateDdrDBInstanceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CheckCreateDdrDBInstanceRequest&, const CheckCreateDdrDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckCreateDdrDBInstanceAsyncHandler;
|
||||
@@ -513,6 +526,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDBInstanceResult> CreateDBInstanceOutcome;
|
||||
typedef std::future<CreateDBInstanceOutcome> CreateDBInstanceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDBInstanceRequest&, const CreateDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDBInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDBProxyEndpointAddressResult> CreateDBProxyEndpointAddressOutcome;
|
||||
typedef std::future<CreateDBProxyEndpointAddressOutcome> CreateDBProxyEndpointAddressOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDBProxyEndpointAddressRequest&, const CreateDBProxyEndpointAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDBProxyEndpointAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatabaseResult> CreateDatabaseOutcome;
|
||||
typedef std::future<CreateDatabaseOutcome> CreateDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDatabaseRequest&, const CreateDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatabaseAsyncHandler;
|
||||
@@ -567,6 +583,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDBInstanceResult> DeleteDBInstanceOutcome;
|
||||
typedef std::future<DeleteDBInstanceOutcome> DeleteDBInstanceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDBInstanceRequest&, const DeleteDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDBInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDBProxyEndpointAddressResult> DeleteDBProxyEndpointAddressOutcome;
|
||||
typedef std::future<DeleteDBProxyEndpointAddressOutcome> DeleteDBProxyEndpointAddressOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDBProxyEndpointAddressRequest&, const DeleteDBProxyEndpointAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDBProxyEndpointAddressAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDatabaseResult> DeleteDatabaseOutcome;
|
||||
typedef std::future<DeleteDatabaseOutcome> DeleteDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDatabaseRequest&, const DeleteDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDatabaseAsyncHandler;
|
||||
@@ -708,6 +727,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDTCSecurityIpHostsForSQLServerResult> DescribeDTCSecurityIpHostsForSQLServerOutcome;
|
||||
typedef std::future<DescribeDTCSecurityIpHostsForSQLServerOutcome> DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDTCSecurityIpHostsForSQLServerRequest&, const DescribeDTCSecurityIpHostsForSQLServerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDTCSecurityIpHostsForSQLServerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDasInstanceConfigResult> DescribeDasInstanceConfigOutcome;
|
||||
typedef std::future<DescribeDasInstanceConfigOutcome> DescribeDasInstanceConfigOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDasInstanceConfigRequest&, const DescribeDasInstanceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDasInstanceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDatabasesResult> DescribeDatabasesOutcome;
|
||||
typedef std::future<DescribeDatabasesOutcome> DescribeDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDatabasesRequest&, const DescribeDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDatabasesAsyncHandler;
|
||||
@@ -954,6 +976,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDTCSecurityIpHostsForSQLServerResult> ModifyDTCSecurityIpHostsForSQLServerOutcome;
|
||||
typedef std::future<ModifyDTCSecurityIpHostsForSQLServerOutcome> ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyDTCSecurityIpHostsForSQLServerRequest&, const ModifyDTCSecurityIpHostsForSQLServerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDTCSecurityIpHostsForSQLServerAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDasInstanceConfigResult> ModifyDasInstanceConfigOutcome;
|
||||
typedef std::future<ModifyDasInstanceConfigOutcome> ModifyDasInstanceConfigOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyDasInstanceConfigRequest&, const ModifyDasInstanceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDasInstanceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDedicatedHostAccountResult> ModifyDedicatedHostAccountOutcome;
|
||||
typedef std::future<ModifyDedicatedHostAccountOutcome> ModifyDedicatedHostAccountOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyDedicatedHostAccountRequest&, const ModifyDedicatedHostAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostAccountAsyncHandler;
|
||||
@@ -1124,6 +1149,9 @@ namespace AlibabaCloud
|
||||
CheckAccountNameAvailableOutcome checkAccountNameAvailable(const Model::CheckAccountNameAvailableRequest &request)const;
|
||||
void checkAccountNameAvailableAsync(const Model::CheckAccountNameAvailableRequest& request, const CheckAccountNameAvailableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckAccountNameAvailableOutcomeCallable checkAccountNameAvailableCallable(const Model::CheckAccountNameAvailableRequest& request) const;
|
||||
CheckCloudResourceAuthorizedOutcome checkCloudResourceAuthorized(const Model::CheckCloudResourceAuthorizedRequest &request)const;
|
||||
void checkCloudResourceAuthorizedAsync(const Model::CheckCloudResourceAuthorizedRequest& request, const CheckCloudResourceAuthorizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckCloudResourceAuthorizedOutcomeCallable checkCloudResourceAuthorizedCallable(const Model::CheckCloudResourceAuthorizedRequest& request) const;
|
||||
CheckCreateDdrDBInstanceOutcome checkCreateDdrDBInstance(const Model::CheckCreateDdrDBInstanceRequest &request)const;
|
||||
void checkCreateDdrDBInstanceAsync(const Model::CheckCreateDdrDBInstanceRequest& request, const CheckCreateDdrDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckCreateDdrDBInstanceOutcomeCallable checkCreateDdrDBInstanceCallable(const Model::CheckCreateDdrDBInstanceRequest& request) const;
|
||||
@@ -1160,6 +1188,9 @@ namespace AlibabaCloud
|
||||
CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const;
|
||||
void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const;
|
||||
CreateDBProxyEndpointAddressOutcome createDBProxyEndpointAddress(const Model::CreateDBProxyEndpointAddressRequest &request)const;
|
||||
void createDBProxyEndpointAddressAsync(const Model::CreateDBProxyEndpointAddressRequest& request, const CreateDBProxyEndpointAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDBProxyEndpointAddressOutcomeCallable createDBProxyEndpointAddressCallable(const Model::CreateDBProxyEndpointAddressRequest& request) const;
|
||||
CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const;
|
||||
void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const;
|
||||
@@ -1214,6 +1245,9 @@ namespace AlibabaCloud
|
||||
DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const;
|
||||
void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const;
|
||||
DeleteDBProxyEndpointAddressOutcome deleteDBProxyEndpointAddress(const Model::DeleteDBProxyEndpointAddressRequest &request)const;
|
||||
void deleteDBProxyEndpointAddressAsync(const Model::DeleteDBProxyEndpointAddressRequest& request, const DeleteDBProxyEndpointAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDBProxyEndpointAddressOutcomeCallable deleteDBProxyEndpointAddressCallable(const Model::DeleteDBProxyEndpointAddressRequest& request) const;
|
||||
DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const;
|
||||
void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const;
|
||||
@@ -1355,6 +1389,9 @@ namespace AlibabaCloud
|
||||
DescribeDTCSecurityIpHostsForSQLServerOutcome describeDTCSecurityIpHostsForSQLServer(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest &request)const;
|
||||
void describeDTCSecurityIpHostsForSQLServerAsync(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest& request, const DescribeDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable describeDTCSecurityIpHostsForSQLServerCallable(const Model::DescribeDTCSecurityIpHostsForSQLServerRequest& request) const;
|
||||
DescribeDasInstanceConfigOutcome describeDasInstanceConfig(const Model::DescribeDasInstanceConfigRequest &request)const;
|
||||
void describeDasInstanceConfigAsync(const Model::DescribeDasInstanceConfigRequest& request, const DescribeDasInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDasInstanceConfigOutcomeCallable describeDasInstanceConfigCallable(const Model::DescribeDasInstanceConfigRequest& request) const;
|
||||
DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const;
|
||||
void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const;
|
||||
@@ -1601,6 +1638,9 @@ namespace AlibabaCloud
|
||||
ModifyDTCSecurityIpHostsForSQLServerOutcome modifyDTCSecurityIpHostsForSQLServer(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest &request)const;
|
||||
void modifyDTCSecurityIpHostsForSQLServerAsync(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest& request, const ModifyDTCSecurityIpHostsForSQLServerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable modifyDTCSecurityIpHostsForSQLServerCallable(const Model::ModifyDTCSecurityIpHostsForSQLServerRequest& request) const;
|
||||
ModifyDasInstanceConfigOutcome modifyDasInstanceConfig(const Model::ModifyDasInstanceConfigRequest &request)const;
|
||||
void modifyDasInstanceConfigAsync(const Model::ModifyDasInstanceConfigRequest& request, const ModifyDasInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDasInstanceConfigOutcomeCallable modifyDasInstanceConfigCallable(const Model::ModifyDasInstanceConfigRequest& request) const;
|
||||
ModifyDedicatedHostAccountOutcome modifyDedicatedHostAccount(const Model::ModifyDedicatedHostAccountRequest &request)const;
|
||||
void modifyDedicatedHostAccountAsync(const Model::ModifyDedicatedHostAccountRequest& request, const ModifyDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDedicatedHostAccountOutcomeCallable modifyDedicatedHostAccountCallable(const Model::ModifyDedicatedHostAccountRequest& request) const;
|
||||
|
||||
@@ -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_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CheckCloudResourceAuthorizedRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckCloudResourceAuthorizedRequest();
|
||||
~CheckCloudResourceAuthorizedRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTargetRegionId()const;
|
||||
void setTargetRegionId(const std::string& targetRegionId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string targetRegionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CheckCloudResourceAuthorizedResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CheckCloudResourceAuthorizedResult();
|
||||
explicit CheckCloudResourceAuthorizedResult(const std::string &payload);
|
||||
~CheckCloudResourceAuthorizedResult();
|
||||
int getAuthorizationState()const;
|
||||
std::string getRoleArn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int authorizationState_;
|
||||
std::string roleArn_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CHECKCLOUDRESOURCEAUTHORIZEDRESULT_H_
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setSourceDBInstanceName(const std::string& sourceDBInstanceName);
|
||||
std::string getHostType()const;
|
||||
void setHostType(const std::string& hostType);
|
||||
std::string getBinlogRole()const;
|
||||
void setBinlogRole(const std::string& binlogRole);
|
||||
std::string getEngineVersion()const;
|
||||
void setEngineVersion(const std::string& engineVersion);
|
||||
std::string getUserBakSetURL()const;
|
||||
@@ -67,10 +69,14 @@ namespace AlibabaCloud
|
||||
void setBackupSetId(const std::string& backupSetId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getBinlogPosition()const;
|
||||
void setBinlogPosition(const std::string& binlogPosition);
|
||||
std::string getDBInstanceClass()const;
|
||||
void setDBInstanceClass(const std::string& dBInstanceClass);
|
||||
std::string getRestoreType()const;
|
||||
void setRestoreType(const std::string& restoreType);
|
||||
std::string getBinlogName()const;
|
||||
void setBinlogName(const std::string& binlogName);
|
||||
std::string getSourceRegion()const;
|
||||
void setSourceRegion(const std::string& sourceRegion);
|
||||
|
||||
@@ -79,6 +85,7 @@ namespace AlibabaCloud
|
||||
int dBInstanceStorage_;
|
||||
std::string sourceDBInstanceName_;
|
||||
std::string hostType_;
|
||||
std::string binlogRole_;
|
||||
std::string engineVersion_;
|
||||
std::string userBakSetURL_;
|
||||
std::string accessKeyId_;
|
||||
@@ -91,8 +98,10 @@ namespace AlibabaCloud
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string backupSetId_;
|
||||
long ownerId_;
|
||||
std::string binlogPosition_;
|
||||
std::string dBInstanceClass_;
|
||||
std::string restoreType_;
|
||||
std::string binlogName_;
|
||||
std::string sourceRegion_;
|
||||
|
||||
};
|
||||
|
||||
@@ -113,6 +113,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getUsedTime()const;
|
||||
void setUsedTime(const std::string& usedTime);
|
||||
std::string getTargetMinorVersion()const;
|
||||
void setTargetMinorVersion(const std::string& targetMinorVersion);
|
||||
int getStorageUpperBound()const;
|
||||
void setStorageUpperBound(int storageUpperBound);
|
||||
int getStorageThreshold()const;
|
||||
@@ -164,6 +166,7 @@ namespace AlibabaCloud
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string usedTime_;
|
||||
std::string targetMinorVersion_;
|
||||
int storageUpperBound_;
|
||||
int storageThreshold_;
|
||||
std::string vPCId_;
|
||||
|
||||
@@ -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_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDBProxyEndpointAddressRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDBProxyEndpointAddressRequest();
|
||||
~CreateDBProxyEndpointAddressRequest();
|
||||
|
||||
std::string getConnectionStringPrefix()const;
|
||||
void setConnectionStringPrefix(const std::string& connectionStringPrefix);
|
||||
std::string getDBProxyConnectStringNetType()const;
|
||||
void setDBProxyConnectStringNetType(const std::string& dBProxyConnectStringNetType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getDBProxyNewConnectStringPort()const;
|
||||
void setDBProxyNewConnectStringPort(const std::string& dBProxyNewConnectStringPort);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getDBProxyEndpointId()const;
|
||||
void setDBProxyEndpointId(const std::string& dBProxyEndpointId);
|
||||
std::string getVPCId()const;
|
||||
void setVPCId(const std::string& vPCId);
|
||||
|
||||
private:
|
||||
std::string connectionStringPrefix_;
|
||||
std::string dBProxyConnectStringNetType_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string dBProxyNewConnectStringPort_;
|
||||
std::string vSwitchId_;
|
||||
std::string dBProxyEndpointId_;
|
||||
std::string vPCId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDBProxyEndpointAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDBProxyEndpointAddressResult();
|
||||
explicit CreateDBProxyEndpointAddressResult(const std::string &payload);
|
||||
~CreateDBProxyEndpointAddressResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
@@ -43,12 +43,15 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string category_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setDBInstanceStorage(int dBInstanceStorage);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getInstructionSetArch()const;
|
||||
void setInstructionSetArch(const std::string& instructionSetArch);
|
||||
std::string getEngineVersion()const;
|
||||
void setEngineVersion(const std::string& engineVersion);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -92,6 +94,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
int dBInstanceStorage_;
|
||||
std::string clientToken_;
|
||||
std::string instructionSetArch_;
|
||||
std::string engineVersion_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
DeleteDBInstanceResult();
|
||||
explicit DeleteDBInstanceResult(const std::string &payload);
|
||||
~DeleteDBInstanceResult();
|
||||
std::string getRegionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDBProxyEndpointAddressRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDBProxyEndpointAddressRequest();
|
||||
~DeleteDBProxyEndpointAddressRequest();
|
||||
|
||||
std::string getDBProxyConnectStringNetType()const;
|
||||
void setDBProxyConnectStringNetType(const std::string& dBProxyConnectStringNetType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBProxyEndpointId()const;
|
||||
void setDBProxyEndpointId(const std::string& dBProxyEndpointId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
|
||||
private:
|
||||
std::string dBProxyConnectStringNetType_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dBProxyEndpointId_;
|
||||
std::string dBInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDBProxyEndpointAddressResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDBProxyEndpointAddressResult();
|
||||
explicit DeleteDBProxyEndpointAddressResult(const std::string &payload);
|
||||
~DeleteDBProxyEndpointAddressResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDBPROXYENDPOINTADDRESSRESULT_H_
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getBackupId()const;
|
||||
void setBackupId(int backupId);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
int pageSize_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int backupId_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string crossBackupRegion_;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_DESCRIBEDASINSTANCECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDASINSTANCECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeDasInstanceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDasInstanceConfigRequest();
|
||||
~DescribeDasInstanceConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string clientToken_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDASINSTANCECONFIGREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_DESCRIBEDASINSTANCECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDASINSTANCECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeDasInstanceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDasInstanceConfigResult();
|
||||
explicit DescribeDasInstanceConfigResult(const std::string &payload);
|
||||
~DescribeDasInstanceConfigResult();
|
||||
int getStorageUpperBound()const;
|
||||
std::string getDBInstanceId()const;
|
||||
int getMaxStorageUpperBound()const;
|
||||
std::string getData()const;
|
||||
int getStorageThreshold()const;
|
||||
std::string getDBType()const;
|
||||
bool getStorageAutoScale()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int storageUpperBound_;
|
||||
std::string dBInstanceId_;
|
||||
int maxStorageUpperBound_;
|
||||
std::string data_;
|
||||
int storageThreshold_;
|
||||
std::string dBType_;
|
||||
bool storageAutoScale_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDASINSTANCECONFIGRESULT_H_
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string startDate;
|
||||
std::string poppedUpButtonUrl;
|
||||
std::string isTop;
|
||||
std::string poppedUpButtonType;
|
||||
std::string resourceNiche;
|
||||
std::string noticeBarContent;
|
||||
|
||||
@@ -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_RDS_MODEL_MODIFYDASINSTANCECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYDASINSTANCECONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyDasInstanceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDasInstanceConfigRequest();
|
||||
~ModifyDasInstanceConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getStorageUpperBound()const;
|
||||
void setStorageUpperBound(int storageUpperBound);
|
||||
int getStorageThreshold()const;
|
||||
void setStorageThreshold(int storageThreshold);
|
||||
std::string getStorageAutoScale()const;
|
||||
void setStorageAutoScale(const std::string& storageAutoScale);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
int storageUpperBound_;
|
||||
int storageThreshold_;
|
||||
std::string storageAutoScale_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDASINSTANCECONFIGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDASINSTANCECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYDASINSTANCECONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyDasInstanceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDasInstanceConfigResult();
|
||||
explicit ModifyDasInstanceConfigResult(const std::string &payload);
|
||||
~ModifyDasInstanceConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDASINSTANCECONFIGRESULT_H_
|
||||
@@ -37,27 +37,36 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRestartMethod()const;
|
||||
void setRestartMethod(const std::string& restartMethod);
|
||||
std::string getEffectiveTime()const;
|
||||
void setEffectiveTime(const std::string& effectiveTime);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getSwitchTime()const;
|
||||
void setSwitchTime(const std::string& switchTime);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string restartMethod_;
|
||||
std::string effectiveTime_;
|
||||
std::string dBInstanceId_;
|
||||
std::string switchTime_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -267,6 +267,42 @@ RdsClient::CheckAccountNameAvailableOutcomeCallable RdsClient::checkAccountNameA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CheckCloudResourceAuthorizedOutcome RdsClient::checkCloudResourceAuthorized(const CheckCloudResourceAuthorizedRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckCloudResourceAuthorizedOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckCloudResourceAuthorizedOutcome(CheckCloudResourceAuthorizedResult(outcome.result()));
|
||||
else
|
||||
return CheckCloudResourceAuthorizedOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::checkCloudResourceAuthorizedAsync(const CheckCloudResourceAuthorizedRequest& request, const CheckCloudResourceAuthorizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkCloudResourceAuthorized(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CheckCloudResourceAuthorizedOutcomeCallable RdsClient::checkCloudResourceAuthorizedCallable(const CheckCloudResourceAuthorizedRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckCloudResourceAuthorizedOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkCloudResourceAuthorized(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CheckCreateDdrDBInstanceOutcome RdsClient::checkCreateDdrDBInstance(const CheckCreateDdrDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +735,42 @@ RdsClient::CreateDBInstanceOutcomeCallable RdsClient::createDBInstanceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDBProxyEndpointAddressOutcome RdsClient::createDBProxyEndpointAddress(const CreateDBProxyEndpointAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDBProxyEndpointAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDBProxyEndpointAddressOutcome(CreateDBProxyEndpointAddressResult(outcome.result()));
|
||||
else
|
||||
return CreateDBProxyEndpointAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createDBProxyEndpointAddressAsync(const CreateDBProxyEndpointAddressRequest& request, const CreateDBProxyEndpointAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDBProxyEndpointAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreateDBProxyEndpointAddressOutcomeCallable RdsClient::createDBProxyEndpointAddressCallable(const CreateDBProxyEndpointAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDBProxyEndpointAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDBProxyEndpointAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDatabaseOutcome RdsClient::createDatabase(const CreateDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1419,42 @@ RdsClient::DeleteDBInstanceOutcomeCallable RdsClient::deleteDBInstanceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDBProxyEndpointAddressOutcome RdsClient::deleteDBProxyEndpointAddress(const DeleteDBProxyEndpointAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDBProxyEndpointAddressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDBProxyEndpointAddressOutcome(DeleteDBProxyEndpointAddressResult(outcome.result()));
|
||||
else
|
||||
return DeleteDBProxyEndpointAddressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteDBProxyEndpointAddressAsync(const DeleteDBProxyEndpointAddressRequest& request, const DeleteDBProxyEndpointAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDBProxyEndpointAddress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteDBProxyEndpointAddressOutcomeCallable RdsClient::deleteDBProxyEndpointAddressCallable(const DeleteDBProxyEndpointAddressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDBProxyEndpointAddressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDBProxyEndpointAddress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDatabaseOutcome RdsClient::deleteDatabase(const DeleteDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3039,6 +3147,42 @@ RdsClient::DescribeDTCSecurityIpHostsForSQLServerOutcomeCallable RdsClient::desc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDasInstanceConfigOutcome RdsClient::describeDasInstanceConfig(const DescribeDasInstanceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDasInstanceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDasInstanceConfigOutcome(DescribeDasInstanceConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeDasInstanceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDasInstanceConfigAsync(const DescribeDasInstanceConfigRequest& request, const DescribeDasInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDasInstanceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDasInstanceConfigOutcomeCallable RdsClient::describeDasInstanceConfigCallable(const DescribeDasInstanceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDasInstanceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDasInstanceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDatabasesOutcome RdsClient::describeDatabases(const DescribeDatabasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5991,6 +6135,42 @@ RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcomeCallable RdsClient::modify
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDasInstanceConfigOutcome RdsClient::modifyDasInstanceConfig(const ModifyDasInstanceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDasInstanceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDasInstanceConfigOutcome(ModifyDasInstanceConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyDasInstanceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDasInstanceConfigAsync(const ModifyDasInstanceConfigRequest& request, const ModifyDasInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDasInstanceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDasInstanceConfigOutcomeCallable RdsClient::modifyDasInstanceConfigCallable(const ModifyDasInstanceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDasInstanceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDasInstanceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDedicatedHostAccountOutcome RdsClient::modifyDedicatedHostAccount(const ModifyDedicatedHostAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user