Add OperateBlackNo.
This commit is contained in:
@@ -303,6 +303,42 @@ DyplsapiClient::OperateAxgGroupOutcomeCallable DyplsapiClient::operateAxgGroupCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::OperateBlackNoOutcome DyplsapiClient::operateBlackNo(const OperateBlackNoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OperateBlackNoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OperateBlackNoOutcome(OperateBlackNoResult(outcome.result()));
|
||||
else
|
||||
return OperateBlackNoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DyplsapiClient::operateBlackNoAsync(const OperateBlackNoRequest& request, const OperateBlackNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, operateBlackNo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DyplsapiClient::OperateBlackNoOutcomeCallable DyplsapiClient::operateBlackNoCallable(const OperateBlackNoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OperateBlackNoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->operateBlackNo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DyplsapiClient::QueryCallStatusOutcome DyplsapiClient::queryCallStatus(const QueryCallStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxbRequest;
|
||||
|
||||
BindAxbRequest::BindAxbRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxb")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindAxbRequest::~BindAxbRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxgRequest;
|
||||
|
||||
BindAxgRequest::BindAxgRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxg")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindAxgRequest::~BindAxgRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxnExtensionRequest;
|
||||
|
||||
BindAxnExtensionRequest::BindAxnExtensionRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxnExtension")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindAxnExtensionRequest::~BindAxnExtensionRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxnRequest;
|
||||
|
||||
BindAxnRequest::BindAxnRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxn")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindAxnRequest::~BindAxnRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BuySecretNoRequest;
|
||||
|
||||
BuySecretNoRequest::BuySecretNoRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "BuySecretNo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BuySecretNoRequest::~BuySecretNoRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::CreateAxgGroupRequest;
|
||||
|
||||
CreateAxgGroupRequest::CreateAxgGroupRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "CreateAxgGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAxgGroupRequest::~CreateAxgGroupRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::OperateAxgGroupRequest;
|
||||
|
||||
OperateAxgGroupRequest::OperateAxgGroupRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "OperateAxgGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateAxgGroupRequest::~OperateAxgGroupRequest()
|
||||
{}
|
||||
|
||||
117
dyplsapi/src/model/OperateBlackNoRequest.cc
Normal file
117
dyplsapi/src/model/OperateBlackNoRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/dyplsapi/model/OperateBlackNoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyplsapi::Model::OperateBlackNoRequest;
|
||||
|
||||
OperateBlackNoRequest::OperateBlackNoRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "OperateBlackNo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateBlackNoRequest::~OperateBlackNoRequest()
|
||||
{}
|
||||
|
||||
long OperateBlackNoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getTips()const
|
||||
{
|
||||
return tips_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setTips(const std::string& tips)
|
||||
{
|
||||
tips_ = tips;
|
||||
setCoreParameter("Tips", tips);
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long OperateBlackNoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getPoolKey()const
|
||||
{
|
||||
return poolKey_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setPoolKey(const std::string& poolKey)
|
||||
{
|
||||
poolKey_ = poolKey;
|
||||
setCoreParameter("PoolKey", poolKey);
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getBlackNo()const
|
||||
{
|
||||
return blackNo_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setBlackNo(const std::string& blackNo)
|
||||
{
|
||||
blackNo_ = blackNo;
|
||||
setCoreParameter("BlackNo", blackNo);
|
||||
}
|
||||
|
||||
std::string OperateBlackNoRequest::getOperateType()const
|
||||
{
|
||||
return operateType_;
|
||||
}
|
||||
|
||||
void OperateBlackNoRequest::setOperateType(const std::string& operateType)
|
||||
{
|
||||
operateType_ = operateType;
|
||||
setCoreParameter("OperateType", operateType);
|
||||
}
|
||||
|
||||
58
dyplsapi/src/model/OperateBlackNoResult.cc
Normal file
58
dyplsapi/src/model/OperateBlackNoResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/dyplsapi/model/OperateBlackNoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyplsapi;
|
||||
using namespace AlibabaCloud::Dyplsapi::Model;
|
||||
|
||||
OperateBlackNoResult::OperateBlackNoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateBlackNoResult::OperateBlackNoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateBlackNoResult::~OperateBlackNoResult()
|
||||
{}
|
||||
|
||||
void OperateBlackNoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string OperateBlackNoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string OperateBlackNoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QueryCallStatusRequest;
|
||||
|
||||
QueryCallStatusRequest::QueryCallStatusRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryCallStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryCallStatusRequest::~QueryCallStatusRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QueryRecordFileDownloadUrlRequest;
|
||||
|
||||
QueryRecordFileDownloadUrlRequest::QueryRecordFileDownloadUrlRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryRecordFileDownloadUrl")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryRecordFileDownloadUrlRequest::~QueryRecordFileDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySecretNoRemainRequest;
|
||||
|
||||
QuerySecretNoRemainRequest::QuerySecretNoRemainRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoRemain")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySecretNoRemainRequest::~QuerySecretNoRemainRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySubsIdRequest;
|
||||
|
||||
QuerySubsIdRequest::QuerySubsIdRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubsId")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySubsIdRequest::~QuerySubsIdRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySubscriptionDetailRequest;
|
||||
|
||||
QuerySubscriptionDetailRequest::QuerySubscriptionDetailRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubscriptionDetail")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySubscriptionDetailRequest::~QuerySubscriptionDetailRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::ReleaseSecretNoRequest;
|
||||
|
||||
ReleaseSecretNoRequest::ReleaseSecretNoRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "ReleaseSecretNo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseSecretNoRequest::~ReleaseSecretNoRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::UnbindSubscriptionRequest;
|
||||
|
||||
UnbindSubscriptionRequest::UnbindSubscriptionRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "UnbindSubscription")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindSubscriptionRequest::~UnbindSubscriptionRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::UpdateSubscriptionRequest;
|
||||
|
||||
UpdateSubscriptionRequest::UpdateSubscriptionRequest() :
|
||||
RpcServiceRequest("dyplsapi", "2017-05-25", "UpdateSubscription")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSubscriptionRequest::~UpdateSubscriptionRequest()
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user