diff --git a/CHANGELOG b/CHANGELOG index 1248751ea..93ba2e9b9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2020-07-23 Version: 1.36.532 +- Add AddSecretBlacklist and DeleteSecretBlacklist. +- Suppoort ASR. + 2020-07-23 Version: 1.36.531 - Add GenerateAndExportDataKey, ExportDataKey, ReEncrypt api. diff --git a/VERSION b/VERSION index 9961bc8c4..5e4abb07a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.531 \ No newline at end of file +1.36.532 \ No newline at end of file diff --git a/dyplsapi/CMakeLists.txt b/dyplsapi/CMakeLists.txt index 010ed516f..bf91430a2 100644 --- a/dyplsapi/CMakeLists.txt +++ b/dyplsapi/CMakeLists.txt @@ -23,6 +23,8 @@ set(dyplsapi_public_header set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/AddAxnTrackNoRequest.h include/alibabacloud/dyplsapi/model/AddAxnTrackNoResult.h + include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h + include/alibabacloud/dyplsapi/model/AddSecretBlacklistResult.h include/alibabacloud/dyplsapi/model/BindAxbRequest.h include/alibabacloud/dyplsapi/model/BindAxbResult.h include/alibabacloud/dyplsapi/model/BindAxgRequest.h @@ -35,6 +37,12 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/BuySecretNoResult.h include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h + include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h + include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h + include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h + include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h + include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h + include/alibabacloud/dyplsapi/model/LockSecretNoResult.h include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h include/alibabacloud/dyplsapi/model/OperateBlackNoRequest.h @@ -55,6 +63,8 @@ set(dyplsapi_public_header_model include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.h include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.h include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h + include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h + include/alibabacloud/dyplsapi/model/UnlockSecretNoResult.h include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h ) @@ -62,6 +72,8 @@ set(dyplsapi_src src/DyplsapiClient.cc src/model/AddAxnTrackNoRequest.cc src/model/AddAxnTrackNoResult.cc + src/model/AddSecretBlacklistRequest.cc + src/model/AddSecretBlacklistResult.cc src/model/BindAxbRequest.cc src/model/BindAxbResult.cc src/model/BindAxgRequest.cc @@ -74,6 +86,12 @@ set(dyplsapi_src src/model/BuySecretNoResult.cc src/model/CreateAxgGroupRequest.cc src/model/CreateAxgGroupResult.cc + src/model/DeleteSecretBlacklistRequest.cc + src/model/DeleteSecretBlacklistResult.cc + src/model/GetSecretAsrDetailRequest.cc + src/model/GetSecretAsrDetailResult.cc + src/model/LockSecretNoRequest.cc + src/model/LockSecretNoResult.cc src/model/OperateAxgGroupRequest.cc src/model/OperateAxgGroupResult.cc src/model/OperateBlackNoRequest.cc @@ -94,6 +112,8 @@ set(dyplsapi_src src/model/ReleaseSecretNoResult.cc src/model/UnbindSubscriptionRequest.cc src/model/UnbindSubscriptionResult.cc + src/model/UnlockSecretNoRequest.cc + src/model/UnlockSecretNoResult.cc src/model/UpdateSubscriptionRequest.cc src/model/UpdateSubscriptionResult.cc ) diff --git a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h index 06b56d9a5..0d37bc48d 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h @@ -24,6 +24,8 @@ #include "DyplsapiExport.h" #include "model/AddAxnTrackNoRequest.h" #include "model/AddAxnTrackNoResult.h" +#include "model/AddSecretBlacklistRequest.h" +#include "model/AddSecretBlacklistResult.h" #include "model/BindAxbRequest.h" #include "model/BindAxbResult.h" #include "model/BindAxgRequest.h" @@ -36,6 +38,12 @@ #include "model/BuySecretNoResult.h" #include "model/CreateAxgGroupRequest.h" #include "model/CreateAxgGroupResult.h" +#include "model/DeleteSecretBlacklistRequest.h" +#include "model/DeleteSecretBlacklistResult.h" +#include "model/GetSecretAsrDetailRequest.h" +#include "model/GetSecretAsrDetailResult.h" +#include "model/LockSecretNoRequest.h" +#include "model/LockSecretNoResult.h" #include "model/OperateAxgGroupRequest.h" #include "model/OperateAxgGroupResult.h" #include "model/OperateBlackNoRequest.h" @@ -56,6 +64,8 @@ #include "model/ReleaseSecretNoResult.h" #include "model/UnbindSubscriptionRequest.h" #include "model/UnbindSubscriptionResult.h" +#include "model/UnlockSecretNoRequest.h" +#include "model/UnlockSecretNoResult.h" #include "model/UpdateSubscriptionRequest.h" #include "model/UpdateSubscriptionResult.h" @@ -70,6 +80,9 @@ namespace AlibabaCloud typedef Outcome AddAxnTrackNoOutcome; typedef std::future AddAxnTrackNoOutcomeCallable; typedef std::function&)> AddAxnTrackNoAsyncHandler; + typedef Outcome AddSecretBlacklistOutcome; + typedef std::future AddSecretBlacklistOutcomeCallable; + typedef std::function&)> AddSecretBlacklistAsyncHandler; typedef Outcome BindAxbOutcome; typedef std::future BindAxbOutcomeCallable; typedef std::function&)> BindAxbAsyncHandler; @@ -88,6 +101,15 @@ namespace AlibabaCloud typedef Outcome CreateAxgGroupOutcome; typedef std::future CreateAxgGroupOutcomeCallable; typedef std::function&)> CreateAxgGroupAsyncHandler; + typedef Outcome DeleteSecretBlacklistOutcome; + typedef std::future DeleteSecretBlacklistOutcomeCallable; + typedef std::function&)> DeleteSecretBlacklistAsyncHandler; + typedef Outcome GetSecretAsrDetailOutcome; + typedef std::future GetSecretAsrDetailOutcomeCallable; + typedef std::function&)> GetSecretAsrDetailAsyncHandler; + typedef Outcome LockSecretNoOutcome; + typedef std::future LockSecretNoOutcomeCallable; + typedef std::function&)> LockSecretNoAsyncHandler; typedef Outcome OperateAxgGroupOutcome; typedef std::future OperateAxgGroupOutcomeCallable; typedef std::function&)> OperateAxgGroupAsyncHandler; @@ -118,6 +140,9 @@ namespace AlibabaCloud typedef Outcome UnbindSubscriptionOutcome; typedef std::future UnbindSubscriptionOutcomeCallable; typedef std::function&)> UnbindSubscriptionAsyncHandler; + typedef Outcome UnlockSecretNoOutcome; + typedef std::future UnlockSecretNoOutcomeCallable; + typedef std::function&)> UnlockSecretNoAsyncHandler; typedef Outcome UpdateSubscriptionOutcome; typedef std::future UpdateSubscriptionOutcomeCallable; typedef std::function&)> UpdateSubscriptionAsyncHandler; @@ -129,6 +154,9 @@ namespace AlibabaCloud AddAxnTrackNoOutcome addAxnTrackNo(const Model::AddAxnTrackNoRequest &request)const; void addAxnTrackNoAsync(const Model::AddAxnTrackNoRequest& request, const AddAxnTrackNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddAxnTrackNoOutcomeCallable addAxnTrackNoCallable(const Model::AddAxnTrackNoRequest& request) const; + AddSecretBlacklistOutcome addSecretBlacklist(const Model::AddSecretBlacklistRequest &request)const; + void addSecretBlacklistAsync(const Model::AddSecretBlacklistRequest& request, const AddSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSecretBlacklistOutcomeCallable addSecretBlacklistCallable(const Model::AddSecretBlacklistRequest& request) const; BindAxbOutcome bindAxb(const Model::BindAxbRequest &request)const; void bindAxbAsync(const Model::BindAxbRequest& request, const BindAxbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindAxbOutcomeCallable bindAxbCallable(const Model::BindAxbRequest& request) const; @@ -147,6 +175,15 @@ namespace AlibabaCloud CreateAxgGroupOutcome createAxgGroup(const Model::CreateAxgGroupRequest &request)const; void createAxgGroupAsync(const Model::CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAxgGroupOutcomeCallable createAxgGroupCallable(const Model::CreateAxgGroupRequest& request) const; + DeleteSecretBlacklistOutcome deleteSecretBlacklist(const Model::DeleteSecretBlacklistRequest &request)const; + void deleteSecretBlacklistAsync(const Model::DeleteSecretBlacklistRequest& request, const DeleteSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecretBlacklistOutcomeCallable deleteSecretBlacklistCallable(const Model::DeleteSecretBlacklistRequest& request) const; + GetSecretAsrDetailOutcome getSecretAsrDetail(const Model::GetSecretAsrDetailRequest &request)const; + void getSecretAsrDetailAsync(const Model::GetSecretAsrDetailRequest& request, const GetSecretAsrDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSecretAsrDetailOutcomeCallable getSecretAsrDetailCallable(const Model::GetSecretAsrDetailRequest& request) const; + LockSecretNoOutcome lockSecretNo(const Model::LockSecretNoRequest &request)const; + void lockSecretNoAsync(const Model::LockSecretNoRequest& request, const LockSecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LockSecretNoOutcomeCallable lockSecretNoCallable(const Model::LockSecretNoRequest& request) const; OperateAxgGroupOutcome operateAxgGroup(const Model::OperateAxgGroupRequest &request)const; void operateAxgGroupAsync(const Model::OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OperateAxgGroupOutcomeCallable operateAxgGroupCallable(const Model::OperateAxgGroupRequest& request) const; @@ -177,6 +214,9 @@ namespace AlibabaCloud UnbindSubscriptionOutcome unbindSubscription(const Model::UnbindSubscriptionRequest &request)const; void unbindSubscriptionAsync(const Model::UnbindSubscriptionRequest& request, const UnbindSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindSubscriptionOutcomeCallable unbindSubscriptionCallable(const Model::UnbindSubscriptionRequest& request) const; + UnlockSecretNoOutcome unlockSecretNo(const Model::UnlockSecretNoRequest &request)const; + void unlockSecretNoAsync(const Model::UnlockSecretNoRequest& request, const UnlockSecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnlockSecretNoOutcomeCallable unlockSecretNoCallable(const Model::UnlockSecretNoRequest& request) const; UpdateSubscriptionOutcome updateSubscription(const Model::UpdateSubscriptionRequest &request)const; void updateSubscriptionAsync(const Model::UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateSubscriptionOutcomeCallable updateSubscriptionCallable(const Model::UpdateSubscriptionRequest& request) const; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h new file mode 100644 index 000000000..e684e4b46 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_ADDSECRETBLACKLISTREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_ADDSECRETBLACKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT AddSecretBlacklistRequest : public RpcServiceRequest + { + + public: + AddSecretBlacklistRequest(); + ~AddSecretBlacklistRequest(); + + std::string getBlackType()const; + void setBlackType(const std::string& blackType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemark()const; + void setRemark(const std::string& remark); + 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); + + private: + std::string blackType_; + long resourceOwnerId_; + std::string remark_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; + std::string blackNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_ADDSECRETBLACKLISTREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistResult.h new file mode 100644 index 000000000..183ebec1a --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/AddSecretBlacklistResult.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_DYPLSAPI_MODEL_ADDSECRETBLACKLISTRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_ADDSECRETBLACKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT AddSecretBlacklistResult : public ServiceResult + { + public: + + + AddSecretBlacklistResult(); + explicit AddSecretBlacklistResult(const std::string &payload); + ~AddSecretBlacklistResult(); + 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_ADDSECRETBLACKLISTRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h index 44519d37e..7ed5b48c2 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; void setRingConfig(const std::string& ringConfig); + bool getASRStatus()const; + void setASRStatus(bool aSRStatus); std::string getPhoneNoB()const; void setPhoneNoB(const std::string& phoneNoB); std::string getPhoneNoA()const; @@ -65,6 +67,8 @@ namespace AlibabaCloud void setIsRecordingEnabled(bool isRecordingEnabled); std::string getOutId()const; void setOutId(const std::string& outId); + std::string getASRModelId()const; + void setASRModelId(const std::string& aSRModelId); std::string getCallRestrict()const; void setCallRestrict(const std::string& callRestrict); @@ -74,6 +78,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string phoneNoX_; std::string ringConfig_; + bool aSRStatus_; std::string phoneNoB_; std::string phoneNoA_; std::string expectCity_; @@ -84,6 +89,7 @@ namespace AlibabaCloud std::string expiration_; bool isRecordingEnabled_; std::string outId_; + std::string aSRModelId_; std::string callRestrict_; }; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h index e209d8b54..a1eb8280d 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; void setRingConfig(const std::string& ringConfig); + bool getASRStatus()const; + void setASRStatus(bool aSRStatus); std::string getPhoneNoB()const; void setPhoneNoB(const std::string& phoneNoB); std::string getPhoneNoA()const; @@ -67,6 +69,8 @@ namespace AlibabaCloud void setIsRecordingEnabled(bool isRecordingEnabled); std::string getOutId()const; void setOutId(const std::string& outId); + std::string getASRModelId()const; + void setASRModelId(const std::string& aSRModelId); private: long resourceOwnerId_; @@ -74,6 +78,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string phoneNoX_; std::string ringConfig_; + bool aSRStatus_; std::string phoneNoB_; std::string phoneNoA_; std::string expectCity_; @@ -85,6 +90,7 @@ namespace AlibabaCloud std::string expiration_; bool isRecordingEnabled_; std::string outId_; + std::string aSRModelId_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h index cde83890e..dbbd5ae75 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h @@ -47,6 +47,8 @@ namespace AlibabaCloud void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; void setRingConfig(const std::string& ringConfig); + bool getASRStatus()const; + void setASRStatus(bool aSRStatus); std::string getPhoneNoB()const; void setPhoneNoB(const std::string& phoneNoB); std::string getPhoneNoA()const; @@ -67,6 +69,8 @@ namespace AlibabaCloud void setIsRecordingEnabled(bool isRecordingEnabled); std::string getOutId()const; void setOutId(const std::string& outId); + std::string getASRModelId()const; + void setASRModelId(const std::string& aSRModelId); private: long resourceOwnerId_; @@ -75,6 +79,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string phoneNoX_; std::string ringConfig_; + bool aSRStatus_; std::string phoneNoB_; std::string phoneNoA_; std::string expectCity_; @@ -85,6 +90,7 @@ namespace AlibabaCloud std::string expiration_; bool isRecordingEnabled_; std::string outId_; + std::string aSRModelId_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h index 0858da9c4..6da32f3bd 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; void setRingConfig(const std::string& ringConfig); + bool getASRStatus()const; + void setASRStatus(bool aSRStatus); std::string getPhoneNoB()const; void setPhoneNoB(const std::string& phoneNoB); std::string getPhoneNoA()const; @@ -67,6 +69,8 @@ namespace AlibabaCloud void setOutId(const std::string& outId); std::string getNoType()const; void setNoType(const std::string& noType); + std::string getASRModelId()const; + void setASRModelId(const std::string& aSRModelId); private: long resourceOwnerId_; @@ -74,6 +78,7 @@ namespace AlibabaCloud std::string accessKeyId_; std::string phoneNoX_; std::string ringConfig_; + bool aSRStatus_; std::string phoneNoB_; std::string phoneNoA_; std::string expectCity_; @@ -85,6 +90,7 @@ namespace AlibabaCloud bool isRecordingEnabled_; std::string outId_; std::string noType_; + std::string aSRModelId_; }; } diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h new file mode 100644 index 000000000..321403a21 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_DELETESECRETBLACKLISTREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETESECRETBLACKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT DeleteSecretBlacklistRequest : public RpcServiceRequest + { + + public: + DeleteSecretBlacklistRequest(); + ~DeleteSecretBlacklistRequest(); + + std::string getBlackType()const; + void setBlackType(const std::string& blackType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemark()const; + void setRemark(const std::string& remark); + 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); + + private: + std::string blackType_; + long resourceOwnerId_; + std::string remark_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; + std::string blackNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_DELETESECRETBLACKLISTREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.h new file mode 100644 index 000000000..d56cfcd92 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/DeleteSecretBlacklistResult.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_DYPLSAPI_MODEL_DELETESECRETBLACKLISTRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_DELETESECRETBLACKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT DeleteSecretBlacklistResult : public ServiceResult + { + public: + + + DeleteSecretBlacklistResult(); + explicit DeleteSecretBlacklistResult(const std::string &payload); + ~DeleteSecretBlacklistResult(); + 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_DELETESECRETBLACKLISTRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.h new file mode 100644 index 000000000..55e3984f7 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailRequest.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_DYPLSAPI_MODEL_GETSECRETASRDETAILREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETSECRETASRDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetSecretAsrDetailRequest : public RpcServiceRequest + { + + public: + GetSecretAsrDetailRequest(); + ~GetSecretAsrDetailRequest(); + + std::string getCallId()const; + void setCallId(const std::string& callId); + 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 getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCallTime()const; + void setCallTime(const std::string& callTime); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + std::string callId_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string callTime_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_GETSECRETASRDETAILREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.h new file mode 100644 index 000000000..f950be7b3 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/GetSecretAsrDetailResult.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_DYPLSAPI_MODEL_GETSECRETASRDETAILRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_GETSECRETASRDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT GetSecretAsrDetailResult : public ServiceResult + { + public: + + + GetSecretAsrDetailResult(); + explicit GetSecretAsrDetailResult(const std::string &payload); + ~GetSecretAsrDetailResult(); + std::string getMessage()const; + std::string getData()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string data_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_GETSECRETASRDETAILRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.h new file mode 100644 index 000000000..226b8ce87 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoRequest.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_DYPLSAPI_MODEL_LOCKSECRETNOREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_LOCKSECRETNOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT LockSecretNoRequest : public RpcServiceRequest + { + + public: + LockSecretNoRequest(); + ~LockSecretNoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + 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 resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string poolKey_; + std::string secretNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_LOCKSECRETNOREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoResult.h new file mode 100644 index 000000000..6d4f5d71f --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/LockSecretNoResult.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_DYPLSAPI_MODEL_LOCKSECRETNORESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_LOCKSECRETNORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT LockSecretNoResult : public ServiceResult + { + public: + + + LockSecretNoResult(); + explicit LockSecretNoResult(const std::string &payload); + ~LockSecretNoResult(); + 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_LOCKSECRETNORESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h index b197d3321..41e01f1ed 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h @@ -34,17 +34,19 @@ namespace AlibabaCloud public: struct SecretBindDetailDTO { - std::string extension; long status; - std::string callRestrict; - std::string gmtCreate; + bool aSRStatus; std::string phoneNoX; std::string expireDate; + std::string subsId; + long groupId; + std::string extension; + std::string callRestrict; + std::string gmtCreate; + std::string aSRModelId; bool needRecord; std::string phoneNoB; - std::string subsId; std::string phoneNoA; - long groupId; }; diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.h new file mode 100644 index 000000000..68ffeb4bc --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoRequest.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_DYPLSAPI_MODEL_UNLOCKSECRETNOREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UNLOCKSECRETNOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UnlockSecretNoRequest : public RpcServiceRequest + { + + public: + UnlockSecretNoRequest(); + ~UnlockSecretNoRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + 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 resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string poolKey_; + std::string secretNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UNLOCKSECRETNOREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoResult.h new file mode 100644 index 000000000..cfca5cfec --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UnlockSecretNoResult.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_DYPLSAPI_MODEL_UNLOCKSECRETNORESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UNLOCKSECRETNORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UnlockSecretNoResult : public ServiceResult + { + public: + + + UnlockSecretNoResult(); + explicit UnlockSecretNoResult(const std::string &payload); + ~UnlockSecretNoResult(); + 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_UNLOCKSECRETNORESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h index 84436b421..98def7406 100644 --- a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h @@ -49,6 +49,8 @@ namespace AlibabaCloud void setPhoneNoX(const std::string& phoneNoX); std::string getRingConfig()const; void setRingConfig(const std::string& ringConfig); + bool getASRStatus()const; + void setASRStatus(bool aSRStatus); std::string getPhoneNoB()const; void setPhoneNoB(const std::string& phoneNoB); std::string getPhoneNoA()const; @@ -69,6 +71,8 @@ namespace AlibabaCloud void setIsRecordingEnabled(bool isRecordingEnabled); std::string getOperateType()const; void setOperateType(const std::string& operateType); + std::string getASRModelId()const; + void setASRModelId(const std::string& aSRModelId); std::string getCallRestrict()const; void setCallRestrict(const std::string& callRestrict); @@ -80,6 +84,7 @@ namespace AlibabaCloud std::string subsId_; std::string phoneNoX_; std::string ringConfig_; + bool aSRStatus_; std::string phoneNoB_; std::string phoneNoA_; std::string resourceOwnerAccount_; @@ -90,6 +95,7 @@ namespace AlibabaCloud std::string outId_; bool isRecordingEnabled_; std::string operateType_; + std::string aSRModelId_; std::string callRestrict_; }; diff --git a/dyplsapi/src/DyplsapiClient.cc b/dyplsapi/src/DyplsapiClient.cc index 72171e5f2..568698aae 100644 --- a/dyplsapi/src/DyplsapiClient.cc +++ b/dyplsapi/src/DyplsapiClient.cc @@ -87,6 +87,42 @@ DyplsapiClient::AddAxnTrackNoOutcomeCallable DyplsapiClient::addAxnTrackNoCallab return task->get_future(); } +DyplsapiClient::AddSecretBlacklistOutcome DyplsapiClient::addSecretBlacklist(const AddSecretBlacklistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSecretBlacklistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSecretBlacklistOutcome(AddSecretBlacklistResult(outcome.result())); + else + return AddSecretBlacklistOutcome(outcome.error()); +} + +void DyplsapiClient::addSecretBlacklistAsync(const AddSecretBlacklistRequest& request, const AddSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSecretBlacklist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::AddSecretBlacklistOutcomeCallable DyplsapiClient::addSecretBlacklistCallable(const AddSecretBlacklistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSecretBlacklist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::BindAxbOutcome DyplsapiClient::bindAxb(const BindAxbRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +339,114 @@ DyplsapiClient::CreateAxgGroupOutcomeCallable DyplsapiClient::createAxgGroupCall return task->get_future(); } +DyplsapiClient::DeleteSecretBlacklistOutcome DyplsapiClient::deleteSecretBlacklist(const DeleteSecretBlacklistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecretBlacklistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecretBlacklistOutcome(DeleteSecretBlacklistResult(outcome.result())); + else + return DeleteSecretBlacklistOutcome(outcome.error()); +} + +void DyplsapiClient::deleteSecretBlacklistAsync(const DeleteSecretBlacklistRequest& request, const DeleteSecretBlacklistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecretBlacklist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::DeleteSecretBlacklistOutcomeCallable DyplsapiClient::deleteSecretBlacklistCallable(const DeleteSecretBlacklistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecretBlacklist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::GetSecretAsrDetailOutcome DyplsapiClient::getSecretAsrDetail(const GetSecretAsrDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSecretAsrDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSecretAsrDetailOutcome(GetSecretAsrDetailResult(outcome.result())); + else + return GetSecretAsrDetailOutcome(outcome.error()); +} + +void DyplsapiClient::getSecretAsrDetailAsync(const GetSecretAsrDetailRequest& request, const GetSecretAsrDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSecretAsrDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::GetSecretAsrDetailOutcomeCallable DyplsapiClient::getSecretAsrDetailCallable(const GetSecretAsrDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSecretAsrDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::LockSecretNoOutcome DyplsapiClient::lockSecretNo(const LockSecretNoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LockSecretNoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LockSecretNoOutcome(LockSecretNoResult(outcome.result())); + else + return LockSecretNoOutcome(outcome.error()); +} + +void DyplsapiClient::lockSecretNoAsync(const LockSecretNoRequest& request, const LockSecretNoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, lockSecretNo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::LockSecretNoOutcomeCallable DyplsapiClient::lockSecretNoCallable(const LockSecretNoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->lockSecretNo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::OperateAxgGroupOutcome DyplsapiClient::operateAxgGroup(const OperateAxgGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +807,42 @@ DyplsapiClient::UnbindSubscriptionOutcomeCallable DyplsapiClient::unbindSubscrip return task->get_future(); } +DyplsapiClient::UnlockSecretNoOutcome DyplsapiClient::unlockSecretNo(const UnlockSecretNoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnlockSecretNoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnlockSecretNoOutcome(UnlockSecretNoResult(outcome.result())); + else + return UnlockSecretNoOutcome(outcome.error()); +} + +void DyplsapiClient::unlockSecretNoAsync(const UnlockSecretNoRequest& request, const UnlockSecretNoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unlockSecretNo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UnlockSecretNoOutcomeCallable DyplsapiClient::unlockSecretNoCallable(const UnlockSecretNoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unlockSecretNo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DyplsapiClient::UpdateSubscriptionOutcome DyplsapiClient::updateSubscription(const UpdateSubscriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dyplsapi/src/model/AddSecretBlacklistRequest.cc b/dyplsapi/src/model/AddSecretBlacklistRequest.cc new file mode 100644 index 000000000..a6d14d7cd --- /dev/null +++ b/dyplsapi/src/model/AddSecretBlacklistRequest.cc @@ -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 + +using AlibabaCloud::Dyplsapi::Model::AddSecretBlacklistRequest; + +AddSecretBlacklistRequest::AddSecretBlacklistRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "AddSecretBlacklist") +{ + setMethod(HttpRequest::Method::Post); +} + +AddSecretBlacklistRequest::~AddSecretBlacklistRequest() +{} + +std::string AddSecretBlacklistRequest::getBlackType()const +{ + return blackType_; +} + +void AddSecretBlacklistRequest::setBlackType(const std::string& blackType) +{ + blackType_ = blackType; + setParameter("BlackType", blackType); +} + +long AddSecretBlacklistRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddSecretBlacklistRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddSecretBlacklistRequest::getRemark()const +{ + return remark_; +} + +void AddSecretBlacklistRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string AddSecretBlacklistRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddSecretBlacklistRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AddSecretBlacklistRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddSecretBlacklistRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long AddSecretBlacklistRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddSecretBlacklistRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddSecretBlacklistRequest::getPoolKey()const +{ + return poolKey_; +} + +void AddSecretBlacklistRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + +std::string AddSecretBlacklistRequest::getBlackNo()const +{ + return blackNo_; +} + +void AddSecretBlacklistRequest::setBlackNo(const std::string& blackNo) +{ + blackNo_ = blackNo; + setParameter("BlackNo", blackNo); +} + diff --git a/dyplsapi/src/model/AddSecretBlacklistResult.cc b/dyplsapi/src/model/AddSecretBlacklistResult.cc new file mode 100644 index 000000000..0d7daba54 --- /dev/null +++ b/dyplsapi/src/model/AddSecretBlacklistResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +AddSecretBlacklistResult::AddSecretBlacklistResult() : + ServiceResult() +{} + +AddSecretBlacklistResult::AddSecretBlacklistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSecretBlacklistResult::~AddSecretBlacklistResult() +{} + +void AddSecretBlacklistResult::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 AddSecretBlacklistResult::getMessage()const +{ + return message_; +} + +std::string AddSecretBlacklistResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/BindAxbRequest.cc b/dyplsapi/src/model/BindAxbRequest.cc index 048102d96..372d8400b 100644 --- a/dyplsapi/src/model/BindAxbRequest.cc +++ b/dyplsapi/src/model/BindAxbRequest.cc @@ -82,6 +82,17 @@ void BindAxbRequest::setRingConfig(const std::string& ringConfig) setParameter("RingConfig", ringConfig); } +bool BindAxbRequest::getASRStatus()const +{ + return aSRStatus_; +} + +void BindAxbRequest::setASRStatus(bool aSRStatus) +{ + aSRStatus_ = aSRStatus; + setParameter("ASRStatus", aSRStatus ? "true" : "false"); +} + std::string BindAxbRequest::getPhoneNoB()const { return phoneNoB_; @@ -192,6 +203,17 @@ void BindAxbRequest::setOutId(const std::string& outId) setParameter("OutId", outId); } +std::string BindAxbRequest::getASRModelId()const +{ + return aSRModelId_; +} + +void BindAxbRequest::setASRModelId(const std::string& aSRModelId) +{ + aSRModelId_ = aSRModelId; + setParameter("ASRModelId", aSRModelId); +} + std::string BindAxbRequest::getCallRestrict()const { return callRestrict_; diff --git a/dyplsapi/src/model/BindAxgRequest.cc b/dyplsapi/src/model/BindAxgRequest.cc index f066180ed..fa1b7c2ae 100644 --- a/dyplsapi/src/model/BindAxgRequest.cc +++ b/dyplsapi/src/model/BindAxgRequest.cc @@ -82,6 +82,17 @@ void BindAxgRequest::setRingConfig(const std::string& ringConfig) setParameter("RingConfig", ringConfig); } +bool BindAxgRequest::getASRStatus()const +{ + return aSRStatus_; +} + +void BindAxgRequest::setASRStatus(bool aSRStatus) +{ + aSRStatus_ = aSRStatus; + setParameter("ASRStatus", aSRStatus ? "true" : "false"); +} + std::string BindAxgRequest::getPhoneNoB()const { return phoneNoB_; @@ -203,3 +214,14 @@ void BindAxgRequest::setOutId(const std::string& outId) setParameter("OutId", outId); } +std::string BindAxgRequest::getASRModelId()const +{ + return aSRModelId_; +} + +void BindAxgRequest::setASRModelId(const std::string& aSRModelId) +{ + aSRModelId_ = aSRModelId; + setParameter("ASRModelId", aSRModelId); +} + diff --git a/dyplsapi/src/model/BindAxnExtensionRequest.cc b/dyplsapi/src/model/BindAxnExtensionRequest.cc index 0706a5db2..641260bcb 100644 --- a/dyplsapi/src/model/BindAxnExtensionRequest.cc +++ b/dyplsapi/src/model/BindAxnExtensionRequest.cc @@ -93,6 +93,17 @@ void BindAxnExtensionRequest::setRingConfig(const std::string& ringConfig) setParameter("RingConfig", ringConfig); } +bool BindAxnExtensionRequest::getASRStatus()const +{ + return aSRStatus_; +} + +void BindAxnExtensionRequest::setASRStatus(bool aSRStatus) +{ + aSRStatus_ = aSRStatus; + setParameter("ASRStatus", aSRStatus ? "true" : "false"); +} + std::string BindAxnExtensionRequest::getPhoneNoB()const { return phoneNoB_; @@ -203,3 +214,14 @@ void BindAxnExtensionRequest::setOutId(const std::string& outId) setParameter("OutId", outId); } +std::string BindAxnExtensionRequest::getASRModelId()const +{ + return aSRModelId_; +} + +void BindAxnExtensionRequest::setASRModelId(const std::string& aSRModelId) +{ + aSRModelId_ = aSRModelId; + setParameter("ASRModelId", aSRModelId); +} + diff --git a/dyplsapi/src/model/BindAxnRequest.cc b/dyplsapi/src/model/BindAxnRequest.cc index 90da2221e..ecd67d43a 100644 --- a/dyplsapi/src/model/BindAxnRequest.cc +++ b/dyplsapi/src/model/BindAxnRequest.cc @@ -82,6 +82,17 @@ void BindAxnRequest::setRingConfig(const std::string& ringConfig) setParameter("RingConfig", ringConfig); } +bool BindAxnRequest::getASRStatus()const +{ + return aSRStatus_; +} + +void BindAxnRequest::setASRStatus(bool aSRStatus) +{ + aSRStatus_ = aSRStatus; + setParameter("ASRStatus", aSRStatus ? "true" : "false"); +} + std::string BindAxnRequest::getPhoneNoB()const { return phoneNoB_; @@ -203,3 +214,14 @@ void BindAxnRequest::setNoType(const std::string& noType) setParameter("NoType", noType); } +std::string BindAxnRequest::getASRModelId()const +{ + return aSRModelId_; +} + +void BindAxnRequest::setASRModelId(const std::string& aSRModelId) +{ + aSRModelId_ = aSRModelId; + setParameter("ASRModelId", aSRModelId); +} + diff --git a/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc b/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc new file mode 100644 index 000000000..a44bd5629 --- /dev/null +++ b/dyplsapi/src/model/DeleteSecretBlacklistRequest.cc @@ -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 + +using AlibabaCloud::Dyplsapi::Model::DeleteSecretBlacklistRequest; + +DeleteSecretBlacklistRequest::DeleteSecretBlacklistRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "DeleteSecretBlacklist") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSecretBlacklistRequest::~DeleteSecretBlacklistRequest() +{} + +std::string DeleteSecretBlacklistRequest::getBlackType()const +{ + return blackType_; +} + +void DeleteSecretBlacklistRequest::setBlackType(const std::string& blackType) +{ + blackType_ = blackType; + setParameter("BlackType", blackType); +} + +long DeleteSecretBlacklistRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSecretBlacklistRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSecretBlacklistRequest::getRemark()const +{ + return remark_; +} + +void DeleteSecretBlacklistRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string DeleteSecretBlacklistRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteSecretBlacklistRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteSecretBlacklistRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSecretBlacklistRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long DeleteSecretBlacklistRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSecretBlacklistRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteSecretBlacklistRequest::getPoolKey()const +{ + return poolKey_; +} + +void DeleteSecretBlacklistRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + +std::string DeleteSecretBlacklistRequest::getBlackNo()const +{ + return blackNo_; +} + +void DeleteSecretBlacklistRequest::setBlackNo(const std::string& blackNo) +{ + blackNo_ = blackNo; + setParameter("BlackNo", blackNo); +} + diff --git a/dyplsapi/src/model/DeleteSecretBlacklistResult.cc b/dyplsapi/src/model/DeleteSecretBlacklistResult.cc new file mode 100644 index 000000000..39714257d --- /dev/null +++ b/dyplsapi/src/model/DeleteSecretBlacklistResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +DeleteSecretBlacklistResult::DeleteSecretBlacklistResult() : + ServiceResult() +{} + +DeleteSecretBlacklistResult::DeleteSecretBlacklistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecretBlacklistResult::~DeleteSecretBlacklistResult() +{} + +void DeleteSecretBlacklistResult::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 DeleteSecretBlacklistResult::getMessage()const +{ + return message_; +} + +std::string DeleteSecretBlacklistResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/GetSecretAsrDetailRequest.cc b/dyplsapi/src/model/GetSecretAsrDetailRequest.cc new file mode 100644 index 000000000..ab76bd10e --- /dev/null +++ b/dyplsapi/src/model/GetSecretAsrDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::GetSecretAsrDetailRequest; + +GetSecretAsrDetailRequest::GetSecretAsrDetailRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "GetSecretAsrDetail") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSecretAsrDetailRequest::~GetSecretAsrDetailRequest() +{} + +std::string GetSecretAsrDetailRequest::getCallId()const +{ + return callId_; +} + +void GetSecretAsrDetailRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setParameter("CallId", callId); +} + +long GetSecretAsrDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void GetSecretAsrDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string GetSecretAsrDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetSecretAsrDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string GetSecretAsrDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void GetSecretAsrDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long GetSecretAsrDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void GetSecretAsrDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string GetSecretAsrDetailRequest::getCallTime()const +{ + return callTime_; +} + +void GetSecretAsrDetailRequest::setCallTime(const std::string& callTime) +{ + callTime_ = callTime; + setParameter("CallTime", callTime); +} + +std::string GetSecretAsrDetailRequest::getPoolKey()const +{ + return poolKey_; +} + +void GetSecretAsrDetailRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/GetSecretAsrDetailResult.cc b/dyplsapi/src/model/GetSecretAsrDetailResult.cc new file mode 100644 index 000000000..c357a6be5 --- /dev/null +++ b/dyplsapi/src/model/GetSecretAsrDetailResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +GetSecretAsrDetailResult::GetSecretAsrDetailResult() : + ServiceResult() +{} + +GetSecretAsrDetailResult::GetSecretAsrDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSecretAsrDetailResult::~GetSecretAsrDetailResult() +{} + +void GetSecretAsrDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetSecretAsrDetailResult::getMessage()const +{ + return message_; +} + +std::string GetSecretAsrDetailResult::getData()const +{ + return data_; +} + +std::string GetSecretAsrDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/LockSecretNoRequest.cc b/dyplsapi/src/model/LockSecretNoRequest.cc new file mode 100644 index 000000000..ba09ac0a0 --- /dev/null +++ b/dyplsapi/src/model/LockSecretNoRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::LockSecretNoRequest; + +LockSecretNoRequest::LockSecretNoRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "LockSecretNo") +{ + setMethod(HttpRequest::Method::Post); +} + +LockSecretNoRequest::~LockSecretNoRequest() +{} + +long LockSecretNoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void LockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string LockSecretNoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void LockSecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long LockSecretNoRequest::getOwnerId()const +{ + return ownerId_; +} + +void LockSecretNoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string LockSecretNoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void LockSecretNoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string LockSecretNoRequest::getPoolKey()const +{ + return poolKey_; +} + +void LockSecretNoRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + +std::string LockSecretNoRequest::getSecretNo()const +{ + return secretNo_; +} + +void LockSecretNoRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + diff --git a/dyplsapi/src/model/LockSecretNoResult.cc b/dyplsapi/src/model/LockSecretNoResult.cc new file mode 100644 index 000000000..a1cbd2342 --- /dev/null +++ b/dyplsapi/src/model/LockSecretNoResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +LockSecretNoResult::LockSecretNoResult() : + ServiceResult() +{} + +LockSecretNoResult::LockSecretNoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LockSecretNoResult::~LockSecretNoResult() +{} + +void LockSecretNoResult::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 LockSecretNoResult::getMessage()const +{ + return message_; +} + +std::string LockSecretNoResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/QuerySubscriptionDetailResult.cc b/dyplsapi/src/model/QuerySubscriptionDetailResult.cc index 60c01c0d5..4688c68f8 100644 --- a/dyplsapi/src/model/QuerySubscriptionDetailResult.cc +++ b/dyplsapi/src/model/QuerySubscriptionDetailResult.cc @@ -62,6 +62,10 @@ void QuerySubscriptionDetailResult::parse(const std::string &payload) secretBindDetailDTO_.callRestrict = secretBindDetailDTONode["CallRestrict"].asString(); if(!secretBindDetailDTONode["Status"].isNull()) secretBindDetailDTO_.status = std::stol(secretBindDetailDTONode["Status"].asString()); + if(!secretBindDetailDTONode["ASRStatus"].isNull()) + secretBindDetailDTO_.aSRStatus = secretBindDetailDTONode["ASRStatus"].asString() == "true"; + if(!secretBindDetailDTONode["ASRModelId"].isNull()) + secretBindDetailDTO_.aSRModelId = secretBindDetailDTONode["ASRModelId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/dyplsapi/src/model/UnlockSecretNoRequest.cc b/dyplsapi/src/model/UnlockSecretNoRequest.cc new file mode 100644 index 000000000..4abbf933f --- /dev/null +++ b/dyplsapi/src/model/UnlockSecretNoRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dyplsapi::Model::UnlockSecretNoRequest; + +UnlockSecretNoRequest::UnlockSecretNoRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UnlockSecretNo") +{ + setMethod(HttpRequest::Method::Post); +} + +UnlockSecretNoRequest::~UnlockSecretNoRequest() +{} + +long UnlockSecretNoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnlockSecretNoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnlockSecretNoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnlockSecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long UnlockSecretNoRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnlockSecretNoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnlockSecretNoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnlockSecretNoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UnlockSecretNoRequest::getPoolKey()const +{ + return poolKey_; +} + +void UnlockSecretNoRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setParameter("PoolKey", poolKey); +} + +std::string UnlockSecretNoRequest::getSecretNo()const +{ + return secretNo_; +} + +void UnlockSecretNoRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setParameter("SecretNo", secretNo); +} + diff --git a/dyplsapi/src/model/UnlockSecretNoResult.cc b/dyplsapi/src/model/UnlockSecretNoResult.cc new file mode 100644 index 000000000..55cf4185e --- /dev/null +++ b/dyplsapi/src/model/UnlockSecretNoResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +UnlockSecretNoResult::UnlockSecretNoResult() : + ServiceResult() +{} + +UnlockSecretNoResult::UnlockSecretNoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnlockSecretNoResult::~UnlockSecretNoResult() +{} + +void UnlockSecretNoResult::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 UnlockSecretNoResult::getMessage()const +{ + return message_; +} + +std::string UnlockSecretNoResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UpdateSubscriptionRequest.cc b/dyplsapi/src/model/UpdateSubscriptionRequest.cc index d1034e70d..ff0d1ed46 100644 --- a/dyplsapi/src/model/UpdateSubscriptionRequest.cc +++ b/dyplsapi/src/model/UpdateSubscriptionRequest.cc @@ -104,6 +104,17 @@ void UpdateSubscriptionRequest::setRingConfig(const std::string& ringConfig) setParameter("RingConfig", ringConfig); } +bool UpdateSubscriptionRequest::getASRStatus()const +{ + return aSRStatus_; +} + +void UpdateSubscriptionRequest::setASRStatus(bool aSRStatus) +{ + aSRStatus_ = aSRStatus; + setParameter("ASRStatus", aSRStatus ? "true" : "false"); +} + std::string UpdateSubscriptionRequest::getPhoneNoB()const { return phoneNoB_; @@ -214,6 +225,17 @@ void UpdateSubscriptionRequest::setOperateType(const std::string& operateType) setParameter("OperateType", operateType); } +std::string UpdateSubscriptionRequest::getASRModelId()const +{ + return aSRModelId_; +} + +void UpdateSubscriptionRequest::setASRModelId(const std::string& aSRModelId) +{ + aSRModelId_ = aSRModelId; + setParameter("ASRModelId", aSRModelId); +} + std::string UpdateSubscriptionRequest::getCallRestrict()const { return callRestrict_;