Add new API.

This commit is contained in:
sdk-team
2023-05-04 02:41:29 +00:00
parent 80d1d26c38
commit 8bc204572b
20 changed files with 759 additions and 97 deletions

View File

@@ -1 +1 @@
1.36.1550
1.36.1551

View File

@@ -33,6 +33,8 @@ set(dyplsapi_public_header_model
include/alibabacloud/dyplsapi/model/BindAxnResult.h
include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h
include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h
include/alibabacloud/dyplsapi/model/BindBatchAxgRequest.h
include/alibabacloud/dyplsapi/model/BindBatchAxgResult.h
include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h
include/alibabacloud/dyplsapi/model/BuySecretNoResult.h
include/alibabacloud/dyplsapi/model/CancelPickUpWaybillRequest.h
@@ -43,6 +45,8 @@ set(dyplsapi_public_header_model
include/alibabacloud/dyplsapi/model/CreatePickUpWaybillResult.h
include/alibabacloud/dyplsapi/model/CreatePickUpWaybillPreQueryRequest.h
include/alibabacloud/dyplsapi/model/CreatePickUpWaybillPreQueryResult.h
include/alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h
include/alibabacloud/dyplsapi/model/DeleteAxgGroupResult.h
include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h
include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h
include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h
@@ -90,6 +94,8 @@ set(dyplsapi_src
src/model/BindAxnResult.cc
src/model/BindAxnExtensionRequest.cc
src/model/BindAxnExtensionResult.cc
src/model/BindBatchAxgRequest.cc
src/model/BindBatchAxgResult.cc
src/model/BuySecretNoRequest.cc
src/model/BuySecretNoResult.cc
src/model/CancelPickUpWaybillRequest.cc
@@ -100,6 +106,8 @@ set(dyplsapi_src
src/model/CreatePickUpWaybillResult.cc
src/model/CreatePickUpWaybillPreQueryRequest.cc
src/model/CreatePickUpWaybillPreQueryResult.cc
src/model/DeleteAxgGroupRequest.cc
src/model/DeleteAxgGroupResult.cc
src/model/DeleteSecretBlacklistRequest.cc
src/model/DeleteSecretBlacklistResult.cc
src/model/GetSecretAsrDetailRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/BindAxnResult.h"
#include "model/BindAxnExtensionRequest.h"
#include "model/BindAxnExtensionResult.h"
#include "model/BindBatchAxgRequest.h"
#include "model/BindBatchAxgResult.h"
#include "model/BuySecretNoRequest.h"
#include "model/BuySecretNoResult.h"
#include "model/CancelPickUpWaybillRequest.h"
@@ -44,6 +46,8 @@
#include "model/CreatePickUpWaybillResult.h"
#include "model/CreatePickUpWaybillPreQueryRequest.h"
#include "model/CreatePickUpWaybillPreQueryResult.h"
#include "model/DeleteAxgGroupRequest.h"
#include "model/DeleteAxgGroupResult.h"
#include "model/DeleteSecretBlacklistRequest.h"
#include "model/DeleteSecretBlacklistResult.h"
#include "model/GetSecretAsrDetailRequest.h"
@@ -103,6 +107,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BindAxnExtensionResult> BindAxnExtensionOutcome;
typedef std::future<BindAxnExtensionOutcome> BindAxnExtensionOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::BindAxnExtensionRequest&, const BindAxnExtensionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAxnExtensionAsyncHandler;
typedef Outcome<Error, Model::BindBatchAxgResult> BindBatchAxgOutcome;
typedef std::future<BindBatchAxgOutcome> BindBatchAxgOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::BindBatchAxgRequest&, const BindBatchAxgOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindBatchAxgAsyncHandler;
typedef Outcome<Error, Model::BuySecretNoResult> BuySecretNoOutcome;
typedef std::future<BuySecretNoOutcome> BuySecretNoOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::BuySecretNoRequest&, const BuySecretNoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BuySecretNoAsyncHandler;
@@ -118,6 +125,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreatePickUpWaybillPreQueryResult> CreatePickUpWaybillPreQueryOutcome;
typedef std::future<CreatePickUpWaybillPreQueryOutcome> CreatePickUpWaybillPreQueryOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::CreatePickUpWaybillPreQueryRequest&, const CreatePickUpWaybillPreQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePickUpWaybillPreQueryAsyncHandler;
typedef Outcome<Error, Model::DeleteAxgGroupResult> DeleteAxgGroupOutcome;
typedef std::future<DeleteAxgGroupOutcome> DeleteAxgGroupOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::DeleteAxgGroupRequest&, const DeleteAxgGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAxgGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteSecretBlacklistResult> DeleteSecretBlacklistOutcome;
typedef std::future<DeleteSecretBlacklistOutcome> DeleteSecretBlacklistOutcomeCallable;
typedef std::function<void(const DyplsapiClient*, const Model::DeleteSecretBlacklistRequest&, const DeleteSecretBlacklistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecretBlacklistAsyncHandler;
@@ -189,6 +199,9 @@ namespace AlibabaCloud
BindAxnExtensionOutcome bindAxnExtension(const Model::BindAxnExtensionRequest &request)const;
void bindAxnExtensionAsync(const Model::BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindAxnExtensionOutcomeCallable bindAxnExtensionCallable(const Model::BindAxnExtensionRequest& request) const;
BindBatchAxgOutcome bindBatchAxg(const Model::BindBatchAxgRequest &request)const;
void bindBatchAxgAsync(const Model::BindBatchAxgRequest& request, const BindBatchAxgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindBatchAxgOutcomeCallable bindBatchAxgCallable(const Model::BindBatchAxgRequest& request) const;
BuySecretNoOutcome buySecretNo(const Model::BuySecretNoRequest &request)const;
void buySecretNoAsync(const Model::BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BuySecretNoOutcomeCallable buySecretNoCallable(const Model::BuySecretNoRequest& request) const;
@@ -204,6 +217,9 @@ namespace AlibabaCloud
CreatePickUpWaybillPreQueryOutcome createPickUpWaybillPreQuery(const Model::CreatePickUpWaybillPreQueryRequest &request)const;
void createPickUpWaybillPreQueryAsync(const Model::CreatePickUpWaybillPreQueryRequest& request, const CreatePickUpWaybillPreQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePickUpWaybillPreQueryOutcomeCallable createPickUpWaybillPreQueryCallable(const Model::CreatePickUpWaybillPreQueryRequest& request) const;
DeleteAxgGroupOutcome deleteAxgGroup(const Model::DeleteAxgGroupRequest &request)const;
void deleteAxgGroupAsync(const Model::DeleteAxgGroupRequest& request, const DeleteAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAxgGroupOutcomeCallable deleteAxgGroupCallable(const Model::DeleteAxgGroupRequest& request) const;
DeleteSecretBlacklistOutcome deleteSecretBlacklist(const Model::DeleteSecretBlacklistRequest &request)const;
void deleteSecretBlacklistAsync(const Model::DeleteSecretBlacklistRequest& request, const DeleteSecretBlacklistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSecretBlacklistOutcomeCallable deleteSecretBlacklistCallable(const Model::DeleteSecretBlacklistRequest& request) const;

View 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.
*/
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dyplsapi {
namespace Model {
class ALIBABACLOUD_DYPLSAPI_EXPORT BindBatchAxgRequest : public RpcServiceRequest {
public:
struct AxgBindList {
std::string phoneNoB;
std::string phoneNoA;
std::string expectCity;
std::string groupId;
int callDisplayType;
std::string outOrderId;
std::string phoneNoX;
bool isRecordingEnabled;
std::string outId;
std::string expiration;
std::string ringConfig;
bool aSRStatus;
std::string aSRModelId;
std::string callRestrict;
};
BindBatchAxgRequest();
~BindBatchAxgRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::vector<AxgBindList> getAxgBindList() const;
void setAxgBindList(const std::vector<AxgBindList> &axgBindList);
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);
private:
long resourceOwnerId_;
std::vector<AxgBindList> axgBindList_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string poolKey_;
};
} // namespace Model
} // namespace Dyplsapi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_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 BindBatchAxgResult : public ServiceResult
{
public:
struct SecretBind
{
std::string extension;
std::string message;
std::string secretNo;
std::string code;
std::string subsId;
std::string groupId;
std::string phoneNoA;
};
BindBatchAxgResult();
explicit BindBatchAxgResult(const std::string &payload);
~BindBatchAxgResult();
std::string getMessage()const;
std::vector<SecretBind> getSecretBindList()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<SecretBind> secretBindList_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDBATCHAXGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_H_
#include <alibabacloud/dyplsapi/DyplsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dyplsapi {
namespace Model {
class ALIBABACLOUD_DYPLSAPI_EXPORT DeleteAxgGroupRequest : public RpcServiceRequest {
public:
DeleteAxgGroupRequest();
~DeleteAxgGroupRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getGroupId() const;
void setGroupId(long groupId);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getPoolKey() const;
void setPoolKey(const std::string &poolKey);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
long groupId_;
long ownerId_;
std::string poolKey_;
};
} // namespace Model
} // namespace Dyplsapi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPREQUEST_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_DELETEAXGGROUPRESULT_H_
#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETEAXGGROUPRESULT_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 DeleteAxgGroupResult : public ServiceResult
{
public:
DeleteAxgGroupResult();
explicit DeleteAxgGroupResult(const std::string &payload);
~DeleteAxgGroupResult();
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_DELETEAXGGROUPRESULT_H_

View File

@@ -32,24 +32,24 @@ public:
~LockSecretNoRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getPoolKey() const;
void setPoolKey(const std::string &poolKey);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string secretNo_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string poolKey_;
std::string secretNo_;
};
} // namespace Model
} // namespace Dyplsapi

View File

@@ -32,24 +32,24 @@ public:
~QuerySubsIdRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getPhoneNoX() const;
void setPhoneNoX(const std::string &phoneNoX);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getPoolKey() const;
void setPoolKey(const std::string &poolKey);
std::string getPhoneNoX() const;
void setPhoneNoX(const std::string &phoneNoX);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string phoneNoX_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string poolKey_;
std::string phoneNoX_;
};
} // namespace Model
} // namespace Dyplsapi

View File

@@ -32,24 +32,24 @@ public:
~ReleaseSecretNoRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getPoolKey() const;
void setPoolKey(const std::string &poolKey);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string secretNo_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string poolKey_;
std::string secretNo_;
};
} // namespace Model
} // namespace Dyplsapi

View File

@@ -32,24 +32,24 @@ public:
~UnlockSecretNoRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getPoolKey() const;
void setPoolKey(const std::string &poolKey);
std::string getSecretNo() const;
void setSecretNo(const std::string &secretNo);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string secretNo_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string poolKey_;
std::string secretNo_;
};
} // namespace Model
} // namespace Dyplsapi

View File

@@ -267,6 +267,42 @@ DyplsapiClient::BindAxnExtensionOutcomeCallable DyplsapiClient::bindAxnExtension
return task->get_future();
}
DyplsapiClient::BindBatchAxgOutcome DyplsapiClient::bindBatchAxg(const BindBatchAxgRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindBatchAxgOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindBatchAxgOutcome(BindBatchAxgResult(outcome.result()));
else
return BindBatchAxgOutcome(outcome.error());
}
void DyplsapiClient::bindBatchAxgAsync(const BindBatchAxgRequest& request, const BindBatchAxgAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindBatchAxg(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::BindBatchAxgOutcomeCallable DyplsapiClient::bindBatchAxgCallable(const BindBatchAxgRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindBatchAxgOutcome()>>(
[this, request]()
{
return this->bindBatchAxg(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::BuySecretNoOutcome DyplsapiClient::buySecretNo(const BuySecretNoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,6 +483,42 @@ DyplsapiClient::CreatePickUpWaybillPreQueryOutcomeCallable DyplsapiClient::creat
return task->get_future();
}
DyplsapiClient::DeleteAxgGroupOutcome DyplsapiClient::deleteAxgGroup(const DeleteAxgGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAxgGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteAxgGroupOutcome(DeleteAxgGroupResult(outcome.result()));
else
return DeleteAxgGroupOutcome(outcome.error());
}
void DyplsapiClient::deleteAxgGroupAsync(const DeleteAxgGroupRequest& request, const DeleteAxgGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteAxgGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
DyplsapiClient::DeleteAxgGroupOutcomeCallable DyplsapiClient::deleteAxgGroupCallable(const DeleteAxgGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteAxgGroupOutcome()>>(
[this, request]()
{
return this->deleteAxgGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DyplsapiClient::DeleteSecretBlacklistOutcome DyplsapiClient::deleteSecretBlacklist(const DeleteSecretBlacklistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,96 @@
/*
* 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/BindBatchAxgRequest.h>
using AlibabaCloud::Dyplsapi::Model::BindBatchAxgRequest;
BindBatchAxgRequest::BindBatchAxgRequest()
: RpcServiceRequest("dyplsapi", "2017-05-25", "BindBatchAxg") {
setMethod(HttpRequest::Method::Post);
}
BindBatchAxgRequest::~BindBatchAxgRequest() {}
long BindBatchAxgRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void BindBatchAxgRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::vector<BindBatchAxgRequest::AxgBindList> BindBatchAxgRequest::getAxgBindList() const {
return axgBindList_;
}
void BindBatchAxgRequest::setAxgBindList(const std::vector<BindBatchAxgRequest::AxgBindList> &axgBindList) {
axgBindList_ = axgBindList;
for(int dep1 = 0; dep1 != axgBindList.size(); dep1++) {
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoB", axgBindList[dep1].phoneNoB);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoA", axgBindList[dep1].phoneNoA);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ExpectCity", axgBindList[dep1].expectCity);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".GroupId", axgBindList[dep1].groupId);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".CallDisplayType", std::to_string(axgBindList[dep1].callDisplayType));
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".OutOrderId", axgBindList[dep1].outOrderId);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".PhoneNoX", axgBindList[dep1].phoneNoX);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".IsRecordingEnabled", axgBindList[dep1].isRecordingEnabled ? "true" : "false");
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".OutId", axgBindList[dep1].outId);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".Expiration", axgBindList[dep1].expiration);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".RingConfig", axgBindList[dep1].ringConfig);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ASRStatus", axgBindList[dep1].aSRStatus ? "true" : "false");
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".ASRModelId", axgBindList[dep1].aSRModelId);
setParameter(std::string("AxgBindList") + "." + std::to_string(dep1 + 1) + ".CallRestrict", axgBindList[dep1].callRestrict);
}
}
std::string BindBatchAxgRequest::getAccessKeyId() const {
return accessKeyId_;
}
void BindBatchAxgRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string BindBatchAxgRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void BindBatchAxgRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long BindBatchAxgRequest::getOwnerId() const {
return ownerId_;
}
void BindBatchAxgRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string BindBatchAxgRequest::getPoolKey() const {
return poolKey_;
}
void BindBatchAxgRequest::setPoolKey(const std::string &poolKey) {
poolKey_ = poolKey;
setParameter(std::string("PoolKey"), poolKey);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/BindBatchAxgResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
BindBatchAxgResult::BindBatchAxgResult() :
ServiceResult()
{}
BindBatchAxgResult::BindBatchAxgResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindBatchAxgResult::~BindBatchAxgResult()
{}
void BindBatchAxgResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSecretBindListNode = value["SecretBindList"]["SecretBind"];
for (auto valueSecretBindListSecretBind : allSecretBindListNode)
{
SecretBind secretBindListObject;
if(!valueSecretBindListSecretBind["SecretNo"].isNull())
secretBindListObject.secretNo = valueSecretBindListSecretBind["SecretNo"].asString();
if(!valueSecretBindListSecretBind["SubsId"].isNull())
secretBindListObject.subsId = valueSecretBindListSecretBind["SubsId"].asString();
if(!valueSecretBindListSecretBind["Extension"].isNull())
secretBindListObject.extension = valueSecretBindListSecretBind["Extension"].asString();
if(!valueSecretBindListSecretBind["GroupId"].isNull())
secretBindListObject.groupId = valueSecretBindListSecretBind["GroupId"].asString();
if(!valueSecretBindListSecretBind["PhoneNoA"].isNull())
secretBindListObject.phoneNoA = valueSecretBindListSecretBind["PhoneNoA"].asString();
if(!valueSecretBindListSecretBind["Code"].isNull())
secretBindListObject.code = valueSecretBindListSecretBind["Code"].asString();
if(!valueSecretBindListSecretBind["Message"].isNull())
secretBindListObject.message = valueSecretBindListSecretBind["Message"].asString();
secretBindList_.push_back(secretBindListObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string BindBatchAxgResult::getMessage()const
{
return message_;
}
std::vector<BindBatchAxgResult::SecretBind> BindBatchAxgResult::getSecretBindList()const
{
return secretBindList_;
}
std::string BindBatchAxgResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyplsapi/model/DeleteAxgGroupRequest.h>
using AlibabaCloud::Dyplsapi::Model::DeleteAxgGroupRequest;
DeleteAxgGroupRequest::DeleteAxgGroupRequest()
: RpcServiceRequest("dyplsapi", "2017-05-25", "DeleteAxgGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteAxgGroupRequest::~DeleteAxgGroupRequest() {}
long DeleteAxgGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteAxgGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteAxgGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteAxgGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteAxgGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteAxgGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long DeleteAxgGroupRequest::getGroupId() const {
return groupId_;
}
void DeleteAxgGroupRequest::setGroupId(long groupId) {
groupId_ = groupId;
setParameter(std::string("GroupId"), std::to_string(groupId));
}
long DeleteAxgGroupRequest::getOwnerId() const {
return ownerId_;
}
void DeleteAxgGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DeleteAxgGroupRequest::getPoolKey() const {
return poolKey_;
}
void DeleteAxgGroupRequest::setPoolKey(const std::string &poolKey) {
poolKey_ = poolKey;
setParameter(std::string("PoolKey"), poolKey);
}

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/DeleteAxgGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyplsapi;
using namespace AlibabaCloud::Dyplsapi::Model;
DeleteAxgGroupResult::DeleteAxgGroupResult() :
ServiceResult()
{}
DeleteAxgGroupResult::DeleteAxgGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAxgGroupResult::~DeleteAxgGroupResult()
{}
void DeleteAxgGroupResult::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 DeleteAxgGroupResult::getMessage()const
{
return message_;
}
std::string DeleteAxgGroupResult::getCode()const
{
return code_;
}

View File

@@ -34,6 +34,24 @@ void LockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string LockSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void LockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string LockSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void LockSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}
std::string LockSecretNoRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -52,15 +70,6 @@ void LockSecretNoRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string LockSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void LockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string LockSecretNoRequest::getPoolKey() const {
return poolKey_;
}
@@ -70,12 +79,3 @@ void LockSecretNoRequest::setPoolKey(const std::string &poolKey) {
setParameter(std::string("PoolKey"), poolKey);
}
std::string LockSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void LockSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}

View File

@@ -34,6 +34,24 @@ void QuerySubsIdRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string QuerySubsIdRequest::getAccessKeyId() const {
return accessKeyId_;
}
void QuerySubsIdRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string QuerySubsIdRequest::getPhoneNoX() const {
return phoneNoX_;
}
void QuerySubsIdRequest::setPhoneNoX(const std::string &phoneNoX) {
phoneNoX_ = phoneNoX;
setParameter(std::string("PhoneNoX"), phoneNoX);
}
std::string QuerySubsIdRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -52,15 +70,6 @@ void QuerySubsIdRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string QuerySubsIdRequest::getAccessKeyId() const {
return accessKeyId_;
}
void QuerySubsIdRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string QuerySubsIdRequest::getPoolKey() const {
return poolKey_;
}
@@ -70,12 +79,3 @@ void QuerySubsIdRequest::setPoolKey(const std::string &poolKey) {
setParameter(std::string("PoolKey"), poolKey);
}
std::string QuerySubsIdRequest::getPhoneNoX() const {
return phoneNoX_;
}
void QuerySubsIdRequest::setPhoneNoX(const std::string &phoneNoX) {
phoneNoX_ = phoneNoX;
setParameter(std::string("PhoneNoX"), phoneNoX);
}

View File

@@ -34,6 +34,24 @@ void ReleaseSecretNoRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ReleaseSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ReleaseSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ReleaseSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void ReleaseSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}
std::string ReleaseSecretNoRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -52,15 +70,6 @@ void ReleaseSecretNoRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ReleaseSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ReleaseSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ReleaseSecretNoRequest::getPoolKey() const {
return poolKey_;
}
@@ -70,12 +79,3 @@ void ReleaseSecretNoRequest::setPoolKey(const std::string &poolKey) {
setParameter(std::string("PoolKey"), poolKey);
}
std::string ReleaseSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void ReleaseSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}

View File

@@ -34,6 +34,24 @@ void UnlockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string UnlockSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void UnlockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string UnlockSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void UnlockSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}
std::string UnlockSecretNoRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -52,15 +70,6 @@ void UnlockSecretNoRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string UnlockSecretNoRequest::getAccessKeyId() const {
return accessKeyId_;
}
void UnlockSecretNoRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string UnlockSecretNoRequest::getPoolKey() const {
return poolKey_;
}
@@ -70,12 +79,3 @@ void UnlockSecretNoRequest::setPoolKey(const std::string &poolKey) {
setParameter(std::string("PoolKey"), poolKey);
}
std::string UnlockSecretNoRequest::getSecretNo() const {
return secretNo_;
}
void UnlockSecretNoRequest::setSecretNo(const std::string &secretNo) {
secretNo_ = secretNo;
setParameter(std::string("SecretNo"), secretNo);
}