Add OperateBlackNo.

This commit is contained in:
sdk-team
2019-11-05 19:16:27 +08:00
parent 686a7259ce
commit cb3390b9f5
24 changed files with 394 additions and 16 deletions

View File

@@ -1,3 +1,6 @@
2019-11-05 Version 1.36.166
- Add OperateBlackNo.
2019-11-02 Version 1.36.165
- Generated 2017-05-25 for `Dyvmsapi`.

View File

@@ -1 +1 @@
1.36.165
1.36.166

View File

@@ -35,6 +35,8 @@ set(dyplsapi_public_header_model
include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h
include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h
include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h
include/alibabacloud/dyplsapi/model/OperateBlackNoRequest.h
include/alibabacloud/dyplsapi/model/OperateBlackNoResult.h
include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.h
include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h
include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h
@@ -68,6 +70,8 @@ set(dyplsapi_src
src/model/CreateAxgGroupResult.cc
src/model/OperateAxgGroupRequest.cc
src/model/OperateAxgGroupResult.cc
src/model/OperateBlackNoRequest.cc
src/model/OperateBlackNoResult.cc
src/model/QueryCallStatusRequest.cc
src/model/QueryCallStatusResult.cc
src/model/QueryRecordFileDownloadUrlRequest.cc

View File

@@ -36,6 +36,8 @@
#include "model/CreateAxgGroupResult.h"
#include "model/OperateAxgGroupRequest.h"
#include "model/OperateAxgGroupResult.h"
#include "model/OperateBlackNoRequest.h"
#include "model/OperateBlackNoResult.h"
#include "model/QueryCallStatusRequest.h"
#include "model/QueryCallStatusResult.h"
#include "model/QueryRecordFileDownloadUrlRequest.h"
@@ -82,6 +84,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::OperateAxgGroupResult> OperateAxgGroupOutcome;
typedef std::future<OperateAxgGroupOutcome> OperateAxgGroupOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::OperateAxgGroupRequest&, const OperateAxgGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAxgGroupAsyncHandler;
typedef Outcome<Error, Model::OperateBlackNoResult> OperateBlackNoOutcome;
typedef std::future<OperateBlackNoOutcome> OperateBlackNoOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::OperateBlackNoRequest&, const OperateBlackNoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateBlackNoAsyncHandler;
typedef Outcome<Error, Model::QueryCallStatusResult> QueryCallStatusOutcome;
typedef std::future<QueryCallStatusOutcome> QueryCallStatusOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::QueryCallStatusRequest&, const QueryCallStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCallStatusAsyncHandler;
@@ -132,6 +137,9 @@ namespace AlibabaCloud
OperateAxgGroupOutcome operateAxgGroup(const Model::OperateAxgGroupRequest &request)const;
void operateAxgGroupAsync(const Model::OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateAxgGroupOutcomeCallable operateAxgGroupCallable(const Model::OperateAxgGroupRequest& request) const;
OperateBlackNoOutcome operateBlackNo(const Model::OperateBlackNoRequest &request)const;
void operateBlackNoAsync(const Model::OperateBlackNoRequest& request, const OperateBlackNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateBlackNoOutcomeCallable operateBlackNoCallable(const Model::OperateBlackNoRequest& request) const;
QueryCallStatusOutcome queryCallStatus(const Model::QueryCallStatusRequest &request)const;
void queryCallStatusAsync(const Model::QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCallStatusOutcomeCallable queryCallStatusCallable(const Model::QueryCallStatusRequest& request) const;

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEBLACKNOREQUEST_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEBLACKNOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
namespace AlibabaCloud
{
namespace Dyplsapi
{
namespace Model
{
class ALIBABACLOUD_DYPLSAPI_EXPORT OperateBlackNoRequest : public RpcServiceRequest
{
public:
OperateBlackNoRequest();
~OperateBlackNoRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getTips()const;
void setTips(const std::string& tips);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getPoolKey()const;
void setPoolKey(const std::string& poolKey);
std::string getBlackNo()const;
void setBlackNo(const std::string& blackNo);
std::string getOperateType()const;
void setOperateType(const std::string& operateType);
private:
long resourceOwnerId_;
std::string tips_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string poolKey_;
std::string blackNo_;
std::string operateType_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEBLACKNOREQUEST_H_

View File

@@ -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_DYPLSAPI_MODEL_OPERATEBLACKNORESULT_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEBLACKNORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
namespace AlibabaCloud
{
namespace Dyplsapi
{
namespace Model
{
class ALIBABACLOUD_DYPLSAPI_EXPORT OperateBlackNoResult : public ServiceResult
{
public:
OperateBlackNoResult();
explicit OperateBlackNoResult(const std::string &payload);
~OperateBlackNoResult();
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEBLACKNORESULT_H_

View File

@@ -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();

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxbRequest;
BindAxbRequest::BindAxbRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxb")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindAxbRequest::~BindAxbRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxgRequest;
BindAxgRequest::BindAxgRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxg")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindAxgRequest::~BindAxgRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxnExtensionRequest;
BindAxnExtensionRequest::BindAxnExtensionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxnExtension")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindAxnExtensionRequest::~BindAxnExtensionRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BindAxnRequest;
BindAxnRequest::BindAxnRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxn")
{}
{
setMethod(HttpRequest::Method::Post);
}
BindAxnRequest::~BindAxnRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::BuySecretNoRequest;
BuySecretNoRequest::BuySecretNoRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "BuySecretNo")
{}
{
setMethod(HttpRequest::Method::Post);
}
BuySecretNoRequest::~BuySecretNoRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::CreateAxgGroupRequest;
CreateAxgGroupRequest::CreateAxgGroupRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "CreateAxgGroup")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateAxgGroupRequest::~CreateAxgGroupRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::OperateAxgGroupRequest;
OperateAxgGroupRequest::OperateAxgGroupRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "OperateAxgGroup")
{}
{
setMethod(HttpRequest::Method::Post);
}
OperateAxgGroupRequest::~OperateAxgGroupRequest()
{}

View 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);
}

View 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_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QueryCallStatusRequest;
QueryCallStatusRequest::QueryCallStatusRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryCallStatus")
{}
{
setMethod(HttpRequest::Method::Post);
}
QueryCallStatusRequest::~QueryCallStatusRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QueryRecordFileDownloadUrlRequest;
QueryRecordFileDownloadUrlRequest::QueryRecordFileDownloadUrlRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QueryRecordFileDownloadUrl")
{}
{
setMethod(HttpRequest::Method::Post);
}
QueryRecordFileDownloadUrlRequest::~QueryRecordFileDownloadUrlRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySecretNoRemainRequest;
QuerySecretNoRemainRequest::QuerySecretNoRemainRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoRemain")
{}
{
setMethod(HttpRequest::Method::Post);
}
QuerySecretNoRemainRequest::~QuerySecretNoRemainRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySubsIdRequest;
QuerySubsIdRequest::QuerySubsIdRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubsId")
{}
{
setMethod(HttpRequest::Method::Post);
}
QuerySubsIdRequest::~QuerySubsIdRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::QuerySubscriptionDetailRequest;
QuerySubscriptionDetailRequest::QuerySubscriptionDetailRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubscriptionDetail")
{}
{
setMethod(HttpRequest::Method::Post);
}
QuerySubscriptionDetailRequest::~QuerySubscriptionDetailRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::ReleaseSecretNoRequest;
ReleaseSecretNoRequest::ReleaseSecretNoRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "ReleaseSecretNo")
{}
{
setMethod(HttpRequest::Method::Post);
}
ReleaseSecretNoRequest::~ReleaseSecretNoRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::UnbindSubscriptionRequest;
UnbindSubscriptionRequest::UnbindSubscriptionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "UnbindSubscription")
{}
{
setMethod(HttpRequest::Method::Post);
}
UnbindSubscriptionRequest::~UnbindSubscriptionRequest()
{}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::Dyplsapi::Model::UpdateSubscriptionRequest;
UpdateSubscriptionRequest::UpdateSubscriptionRequest() :
RpcServiceRequest("dyplsapi", "2017-05-25", "UpdateSubscription")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateSubscriptionRequest::~UpdateSubscriptionRequest()
{}