diff --git a/CHANGELOG b/CHANGELOG index d30f002b9..a6b93301e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2019-09-26 Version 1.36.143 +- Supported RingConfig for BindAxb,BindAxn,BindAxg,BindAxnExtension. +- Add QuerySubsId. + 2019-09-23 Version 1.36.142 - Add param, DescribePrice supprot ReservedInstance. diff --git a/VERSION b/VERSION index 2a1b3e0a7..71f253e77 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.142 \ No newline at end of file +1.36.143 \ No newline at end of file diff --git a/dyplsapi/CMakeLists.txt b/dyplsapi/CMakeLists.txt new file mode 100644 index 000000000..92e329ca8 --- /dev/null +++ b/dyplsapi/CMakeLists.txt @@ -0,0 +1,142 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(dyplsapi_public_header + include/alibabacloud/dyplsapi/DyplsapiClient.h + include/alibabacloud/dyplsapi/DyplsapiExport.h ) + +set(dyplsapi_public_header_model + include/alibabacloud/dyplsapi/model/BindAxbRequest.h + include/alibabacloud/dyplsapi/model/BindAxbResult.h + include/alibabacloud/dyplsapi/model/BindAxgRequest.h + include/alibabacloud/dyplsapi/model/BindAxgResult.h + include/alibabacloud/dyplsapi/model/BindAxnRequest.h + include/alibabacloud/dyplsapi/model/BindAxnResult.h + include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h + include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h + include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h + include/alibabacloud/dyplsapi/model/BuySecretNoResult.h + include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h + include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h + include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h + include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h + include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.h + include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h + include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h + include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h + include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.h + include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h + include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h + include/alibabacloud/dyplsapi/model/QuerySubsIdResult.h + include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailRequest.h + include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.h + include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h + include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.h + include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.h + include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h + include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h + include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h ) + +set(dyplsapi_src + src/DyplsapiClient.cc + src/model/BindAxbRequest.cc + src/model/BindAxbResult.cc + src/model/BindAxgRequest.cc + src/model/BindAxgResult.cc + src/model/BindAxnRequest.cc + src/model/BindAxnResult.cc + src/model/BindAxnExtensionRequest.cc + src/model/BindAxnExtensionResult.cc + src/model/BuySecretNoRequest.cc + src/model/BuySecretNoResult.cc + src/model/CreateAxgGroupRequest.cc + src/model/CreateAxgGroupResult.cc + src/model/OperateAxgGroupRequest.cc + src/model/OperateAxgGroupResult.cc + src/model/QueryCallStatusRequest.cc + src/model/QueryCallStatusResult.cc + src/model/QueryRecordFileDownloadUrlRequest.cc + src/model/QueryRecordFileDownloadUrlResult.cc + src/model/QuerySecretNoRemainRequest.cc + src/model/QuerySecretNoRemainResult.cc + src/model/QuerySubsIdRequest.cc + src/model/QuerySubsIdResult.cc + src/model/QuerySubscriptionDetailRequest.cc + src/model/QuerySubscriptionDetailResult.cc + src/model/ReleaseSecretNoRequest.cc + src/model/ReleaseSecretNoResult.cc + src/model/UnbindSubscriptionRequest.cc + src/model/UnbindSubscriptionResult.cc + src/model/UpdateSubscriptionRequest.cc + src/model/UpdateSubscriptionResult.cc ) + +add_library(dyplsapi ${LIB_TYPE} + ${dyplsapi_public_header} + ${dyplsapi_public_header_model} + ${dyplsapi_src}) + +set_target_properties(dyplsapi + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dyplsapi + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(dyplsapi + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DYPLSAPI_LIBRARY) +endif() + +target_include_directories(dyplsapi + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(dyplsapi + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(dyplsapi + jsoncpp) + target_include_directories(dyplsapi + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(dyplsapi + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(dyplsapi + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(dyplsapi + PRIVATE /usr/include/jsoncpp) + target_link_libraries(dyplsapi + jsoncpp) +endif() + +install(FILES ${dyplsapi_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dyplsapi) +install(FILES ${dyplsapi_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dyplsapi/model) +install(TARGETS dyplsapi + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h new file mode 100644 index 000000000..7fb5289f2 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiClient.h @@ -0,0 +1,166 @@ +/* + * 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_DYPLSAPICLIENT_H_ +#define ALIBABACLOUD_DYPLSAPI_DYPLSAPICLIENT_H_ + +#include +#include +#include +#include +#include "DyplsapiExport.h" +#include "model/BindAxbRequest.h" +#include "model/BindAxbResult.h" +#include "model/BindAxgRequest.h" +#include "model/BindAxgResult.h" +#include "model/BindAxnRequest.h" +#include "model/BindAxnResult.h" +#include "model/BindAxnExtensionRequest.h" +#include "model/BindAxnExtensionResult.h" +#include "model/BuySecretNoRequest.h" +#include "model/BuySecretNoResult.h" +#include "model/CreateAxgGroupRequest.h" +#include "model/CreateAxgGroupResult.h" +#include "model/OperateAxgGroupRequest.h" +#include "model/OperateAxgGroupResult.h" +#include "model/QueryCallStatusRequest.h" +#include "model/QueryCallStatusResult.h" +#include "model/QueryRecordFileDownloadUrlRequest.h" +#include "model/QueryRecordFileDownloadUrlResult.h" +#include "model/QuerySecretNoRemainRequest.h" +#include "model/QuerySecretNoRemainResult.h" +#include "model/QuerySubsIdRequest.h" +#include "model/QuerySubsIdResult.h" +#include "model/QuerySubscriptionDetailRequest.h" +#include "model/QuerySubscriptionDetailResult.h" +#include "model/ReleaseSecretNoRequest.h" +#include "model/ReleaseSecretNoResult.h" +#include "model/UnbindSubscriptionRequest.h" +#include "model/UnbindSubscriptionResult.h" +#include "model/UpdateSubscriptionRequest.h" +#include "model/UpdateSubscriptionResult.h" + + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + class ALIBABACLOUD_DYPLSAPI_EXPORT DyplsapiClient : public RpcServiceClient + { + public: + typedef Outcome BindAxbOutcome; + typedef std::future BindAxbOutcomeCallable; + typedef std::function&)> BindAxbAsyncHandler; + typedef Outcome BindAxgOutcome; + typedef std::future BindAxgOutcomeCallable; + typedef std::function&)> BindAxgAsyncHandler; + typedef Outcome BindAxnOutcome; + typedef std::future BindAxnOutcomeCallable; + typedef std::function&)> BindAxnAsyncHandler; + typedef Outcome BindAxnExtensionOutcome; + typedef std::future BindAxnExtensionOutcomeCallable; + typedef std::function&)> BindAxnExtensionAsyncHandler; + typedef Outcome BuySecretNoOutcome; + typedef std::future BuySecretNoOutcomeCallable; + typedef std::function&)> BuySecretNoAsyncHandler; + typedef Outcome CreateAxgGroupOutcome; + typedef std::future CreateAxgGroupOutcomeCallable; + typedef std::function&)> CreateAxgGroupAsyncHandler; + typedef Outcome OperateAxgGroupOutcome; + typedef std::future OperateAxgGroupOutcomeCallable; + typedef std::function&)> OperateAxgGroupAsyncHandler; + typedef Outcome QueryCallStatusOutcome; + typedef std::future QueryCallStatusOutcomeCallable; + typedef std::function&)> QueryCallStatusAsyncHandler; + typedef Outcome QueryRecordFileDownloadUrlOutcome; + typedef std::future QueryRecordFileDownloadUrlOutcomeCallable; + typedef std::function&)> QueryRecordFileDownloadUrlAsyncHandler; + typedef Outcome QuerySecretNoRemainOutcome; + typedef std::future QuerySecretNoRemainOutcomeCallable; + typedef std::function&)> QuerySecretNoRemainAsyncHandler; + typedef Outcome QuerySubsIdOutcome; + typedef std::future QuerySubsIdOutcomeCallable; + typedef std::function&)> QuerySubsIdAsyncHandler; + typedef Outcome QuerySubscriptionDetailOutcome; + typedef std::future QuerySubscriptionDetailOutcomeCallable; + typedef std::function&)> QuerySubscriptionDetailAsyncHandler; + typedef Outcome ReleaseSecretNoOutcome; + typedef std::future ReleaseSecretNoOutcomeCallable; + typedef std::function&)> ReleaseSecretNoAsyncHandler; + typedef Outcome UnbindSubscriptionOutcome; + typedef std::future UnbindSubscriptionOutcomeCallable; + typedef std::function&)> UnbindSubscriptionAsyncHandler; + typedef Outcome UpdateSubscriptionOutcome; + typedef std::future UpdateSubscriptionOutcomeCallable; + typedef std::function&)> UpdateSubscriptionAsyncHandler; + + DyplsapiClient(const Credentials &credentials, const ClientConfiguration &configuration); + DyplsapiClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + DyplsapiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~DyplsapiClient(); + 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; + BindAxgOutcome bindAxg(const Model::BindAxgRequest &request)const; + void bindAxgAsync(const Model::BindAxgRequest& request, const BindAxgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindAxgOutcomeCallable bindAxgCallable(const Model::BindAxgRequest& request) const; + BindAxnOutcome bindAxn(const Model::BindAxnRequest &request)const; + void bindAxnAsync(const Model::BindAxnRequest& request, const BindAxnAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindAxnOutcomeCallable bindAxnCallable(const Model::BindAxnRequest& request) const; + BindAxnExtensionOutcome bindAxnExtension(const Model::BindAxnExtensionRequest &request)const; + void bindAxnExtensionAsync(const Model::BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindAxnExtensionOutcomeCallable bindAxnExtensionCallable(const Model::BindAxnExtensionRequest& request) const; + BuySecretNoOutcome buySecretNo(const Model::BuySecretNoRequest &request)const; + void buySecretNoAsync(const Model::BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BuySecretNoOutcomeCallable buySecretNoCallable(const Model::BuySecretNoRequest& request) const; + 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; + 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; + QueryCallStatusOutcome queryCallStatus(const Model::QueryCallStatusRequest &request)const; + void queryCallStatusAsync(const Model::QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCallStatusOutcomeCallable queryCallStatusCallable(const Model::QueryCallStatusRequest& request) const; + QueryRecordFileDownloadUrlOutcome queryRecordFileDownloadUrl(const Model::QueryRecordFileDownloadUrlRequest &request)const; + void queryRecordFileDownloadUrlAsync(const Model::QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryRecordFileDownloadUrlOutcomeCallable queryRecordFileDownloadUrlCallable(const Model::QueryRecordFileDownloadUrlRequest& request) const; + QuerySecretNoRemainOutcome querySecretNoRemain(const Model::QuerySecretNoRemainRequest &request)const; + void querySecretNoRemainAsync(const Model::QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySecretNoRemainOutcomeCallable querySecretNoRemainCallable(const Model::QuerySecretNoRemainRequest& request) const; + QuerySubsIdOutcome querySubsId(const Model::QuerySubsIdRequest &request)const; + void querySubsIdAsync(const Model::QuerySubsIdRequest& request, const QuerySubsIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySubsIdOutcomeCallable querySubsIdCallable(const Model::QuerySubsIdRequest& request) const; + QuerySubscriptionDetailOutcome querySubscriptionDetail(const Model::QuerySubscriptionDetailRequest &request)const; + void querySubscriptionDetailAsync(const Model::QuerySubscriptionDetailRequest& request, const QuerySubscriptionDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySubscriptionDetailOutcomeCallable querySubscriptionDetailCallable(const Model::QuerySubscriptionDetailRequest& request) const; + ReleaseSecretNoOutcome releaseSecretNo(const Model::ReleaseSecretNoRequest &request)const; + void releaseSecretNoAsync(const Model::ReleaseSecretNoRequest& request, const ReleaseSecretNoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseSecretNoOutcomeCallable releaseSecretNoCallable(const Model::ReleaseSecretNoRequest& request) const; + 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; + 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; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DYPLSAPI_DYPLSAPICLIENT_H_ diff --git a/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiExport.h b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiExport.h new file mode 100644 index 000000000..d3053aff9 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/DyplsapiExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_H_ +#define ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DYPLSAPI_LIBRARY) +# define ALIBABACLOUD_DYPLSAPI_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DYPLSAPI_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DYPLSAPI_EXPORT +#endif + +#endif // !ALIBABACLOUD_DYPLSAPI_DYPLSAPIEXPORT_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 new file mode 100644 index 000000000..a34431437 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbRequest.h @@ -0,0 +1,90 @@ +/* + * 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_BINDAXBREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxbRequest : public RpcServiceRequest + { + + public: + BindAxbRequest(); + ~BindAxbRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getCallDisplayType()const; + void setCallDisplayType(int callDisplayType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + std::string getRingConfig()const; + void setRingConfig(const std::string& ringConfig); + std::string getPhoneNoB()const; + void setPhoneNoB(const std::string& phoneNoB); + std::string getPhoneNoA()const; + void setPhoneNoA(const std::string& phoneNoA); + std::string getExpectCity()const; + void setExpectCity(const std::string& expectCity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOutOrderId()const; + void setOutOrderId(const std::string& outOrderId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getExpiration()const; + void setExpiration(const std::string& expiration); + bool getIsRecordingEnabled()const; + void setIsRecordingEnabled(bool isRecordingEnabled); + std::string getOutId()const; + void setOutId(const std::string& outId); + + private: + long resourceOwnerId_; + int callDisplayType_; + std::string accessKeyId_; + std::string phoneNoX_; + std::string ringConfig_; + std::string phoneNoB_; + std::string phoneNoA_; + std::string expectCity_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string outOrderId_; + std::string poolKey_; + std::string expiration_; + bool isRecordingEnabled_; + std::string outId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbResult.h new file mode 100644 index 000000000..cbfe4d258 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxbResult.h @@ -0,0 +1,61 @@ +/* + * 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_BINDAXBRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxbResult : public ServiceResult + { + public: + struct SecretBindDTO + { + std::string extension; + std::string secretNo; + std::string subsId; + }; + + + BindAxbResult(); + explicit BindAxbResult(const std::string &payload); + ~BindAxbResult(); + SecretBindDTO getSecretBindDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretBindDTO secretBindDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXBRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h new file mode 100644 index 000000000..e209d8b54 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgRequest.h @@ -0,0 +1,93 @@ +/* + * 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_BINDAXGREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxgRequest : public RpcServiceRequest + { + + public: + BindAxgRequest(); + ~BindAxgRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getCallDisplayType()const; + void setCallDisplayType(int callDisplayType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + std::string getRingConfig()const; + void setRingConfig(const std::string& ringConfig); + std::string getPhoneNoB()const; + void setPhoneNoB(const std::string& phoneNoB); + std::string getPhoneNoA()const; + void setPhoneNoA(const std::string& phoneNoA); + std::string getExpectCity()const; + void setExpectCity(const std::string& expectCity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOutOrderId()const; + void setOutOrderId(const std::string& outOrderId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getExpiration()const; + void setExpiration(const std::string& expiration); + bool getIsRecordingEnabled()const; + void setIsRecordingEnabled(bool isRecordingEnabled); + std::string getOutId()const; + void setOutId(const std::string& outId); + + private: + long resourceOwnerId_; + int callDisplayType_; + std::string accessKeyId_; + std::string phoneNoX_; + std::string ringConfig_; + std::string phoneNoB_; + std::string phoneNoA_; + std::string expectCity_; + std::string resourceOwnerAccount_; + std::string groupId_; + long ownerId_; + std::string outOrderId_; + std::string poolKey_; + std::string expiration_; + bool isRecordingEnabled_; + std::string outId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgResult.h new file mode 100644 index 000000000..2b9b554ad --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxgResult.h @@ -0,0 +1,61 @@ +/* + * 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_BINDAXGRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxgResult : public ServiceResult + { + public: + struct SecretBindDTO + { + std::string extension; + std::string secretNo; + std::string subsId; + }; + + + BindAxgResult(); + explicit BindAxgResult(const std::string &payload); + ~BindAxgResult(); + SecretBindDTO getSecretBindDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretBindDTO secretBindDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXGRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h new file mode 100644 index 000000000..cde83890e --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionRequest.h @@ -0,0 +1,93 @@ +/* + * 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_BINDAXNEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnExtensionRequest : public RpcServiceRequest + { + + public: + BindAxnExtensionRequest(); + ~BindAxnExtensionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExtension()const; + void setExtension(const std::string& extension); + int getCallDisplayType()const; + void setCallDisplayType(int callDisplayType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + std::string getRingConfig()const; + void setRingConfig(const std::string& ringConfig); + std::string getPhoneNoB()const; + void setPhoneNoB(const std::string& phoneNoB); + std::string getPhoneNoA()const; + void setPhoneNoA(const std::string& phoneNoA); + std::string getExpectCity()const; + void setExpectCity(const std::string& expectCity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOutOrderId()const; + void setOutOrderId(const std::string& outOrderId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getExpiration()const; + void setExpiration(const std::string& expiration); + bool getIsRecordingEnabled()const; + void setIsRecordingEnabled(bool isRecordingEnabled); + std::string getOutId()const; + void setOutId(const std::string& outId); + + private: + long resourceOwnerId_; + std::string extension_; + int callDisplayType_; + std::string accessKeyId_; + std::string phoneNoX_; + std::string ringConfig_; + std::string phoneNoB_; + std::string phoneNoA_; + std::string expectCity_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string outOrderId_; + std::string poolKey_; + std::string expiration_; + bool isRecordingEnabled_; + std::string outId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h new file mode 100644 index 000000000..69424721b --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnExtensionResult.h @@ -0,0 +1,61 @@ +/* + * 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_BINDAXNEXTENSIONRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnExtensionResult : public ServiceResult + { + public: + struct SecretBindDTO + { + std::string extension; + std::string secretNo; + std::string subsId; + }; + + + BindAxnExtensionResult(); + explicit BindAxnExtensionResult(const std::string &payload); + ~BindAxnExtensionResult(); + SecretBindDTO getSecretBindDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretBindDTO secretBindDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h new file mode 100644 index 000000000..0858da9c4 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnRequest.h @@ -0,0 +1,93 @@ +/* + * 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_BINDAXNREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnRequest : public RpcServiceRequest + { + + public: + BindAxnRequest(); + ~BindAxnRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getCallDisplayType()const; + void setCallDisplayType(int callDisplayType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + std::string getRingConfig()const; + void setRingConfig(const std::string& ringConfig); + std::string getPhoneNoB()const; + void setPhoneNoB(const std::string& phoneNoB); + std::string getPhoneNoA()const; + void setPhoneNoA(const std::string& phoneNoA); + std::string getExpectCity()const; + void setExpectCity(const std::string& expectCity); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOutOrderId()const; + void setOutOrderId(const std::string& outOrderId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getExpiration()const; + void setExpiration(const std::string& expiration); + bool getIsRecordingEnabled()const; + void setIsRecordingEnabled(bool isRecordingEnabled); + std::string getOutId()const; + void setOutId(const std::string& outId); + std::string getNoType()const; + void setNoType(const std::string& noType); + + private: + long resourceOwnerId_; + int callDisplayType_; + std::string accessKeyId_; + std::string phoneNoX_; + std::string ringConfig_; + std::string phoneNoB_; + std::string phoneNoA_; + std::string expectCity_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string outOrderId_; + std::string poolKey_; + std::string expiration_; + bool isRecordingEnabled_; + std::string outId_; + std::string noType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnResult.h new file mode 100644 index 000000000..b3487b483 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BindAxnResult.h @@ -0,0 +1,61 @@ +/* + * 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_BINDAXNRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BindAxnResult : public ServiceResult + { + public: + struct SecretBindDTO + { + std::string extension; + std::string secretNo; + std::string subsId; + }; + + + BindAxnResult(); + explicit BindAxnResult(const std::string &payload); + ~BindAxnResult(); + SecretBindDTO getSecretBindDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretBindDTO secretBindDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BINDAXNRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h new file mode 100644 index 000000000..a1dfb8aa0 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BuySecretNoRequest : public RpcServiceRequest + { + + public: + BuySecretNoRequest(); + ~BuySecretNoRequest(); + + long getSpecId()const; + void setSpecId(long specId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCity()const; + void setCity(const std::string& city); + 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); + bool getDisplayPool()const; + void setDisplayPool(bool displayPool); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long specId_; + long resourceOwnerId_; + std::string city_; + std::string accessKeyId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + bool displayPool_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNOREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoResult.h new file mode 100644 index 000000000..65466fe8f --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/BuySecretNoResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT BuySecretNoResult : public ServiceResult + { + public: + struct SecretBuyInfoDTO + { + std::string secretNo; + }; + + + BuySecretNoResult(); + explicit BuySecretNoResult(const std::string &payload); + ~BuySecretNoResult(); + std::string getMessage()const; + SecretBuyInfoDTO getSecretBuyInfoDTO()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + SecretBuyInfoDTO secretBuyInfoDTO_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_BUYSECRETNORESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.h new file mode 100644 index 000000000..4146bb77a --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupRequest.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_CREATEAXGGROUPREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreateAxgGroupRequest : public RpcServiceRequest + { + + public: + CreateAxgGroupRequest(); + ~CreateAxgGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNumbers()const; + void setNumbers(const std::string& numbers); + 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 getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string numbers_; + std::string remark_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.h new file mode 100644 index 000000000..67d0ff4d0 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/CreateAxgGroupResult.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_CREATEAXGGROUPRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT CreateAxgGroupResult : public ServiceResult + { + public: + + + CreateAxgGroupResult(); + explicit CreateAxgGroupResult(const std::string &payload); + ~CreateAxgGroupResult(); + std::string getMessage()const; + std::string getCode()const; + long getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_CREATEAXGGROUPRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.h new file mode 100644 index 000000000..6535a418f --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupRequest.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_OPERATEAXGGROUPREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT OperateAxgGroupRequest : public RpcServiceRequest + { + + public: + OperateAxgGroupRequest(); + ~OperateAxgGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNumbers()const; + void setNumbers(const std::string& numbers); + 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); + std::string getOperateType()const; + void setOperateType(const std::string& operateType); + + private: + long resourceOwnerId_; + std::string numbers_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + long groupId_; + long ownerId_; + std::string poolKey_; + std::string operateType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.h new file mode 100644 index 000000000..7ba2e7963 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/OperateAxgGroupResult.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_OPERATEAXGGROUPRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_OPERATEAXGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT OperateAxgGroupResult : public ServiceResult + { + public: + + + OperateAxgGroupResult(); + explicit OperateAxgGroupResult(const std::string &payload); + ~OperateAxgGroupResult(); + 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_OPERATEAXGGROUPRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.h new file mode 100644 index 000000000..4709db07c --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusRequest.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_QUERYCALLSTATUSREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QueryCallStatusRequest : public RpcServiceRequest + { + + public: + QueryCallStatusRequest(); + ~QueryCallStatusRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSubsId()const; + void setSubsId(const std::string& subsId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getCallNo()const; + void setCallNo(const std::string& callNo); + 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 subsId_; + std::string resourceOwnerAccount_; + std::string callNo_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h new file mode 100644 index 000000000..03f90b45a --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryCallStatusResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QueryCallStatusResult : public ServiceResult + { + public: + struct SecretCallStatusDTO + { + int status; + std::string calledNo; + }; + + + QueryCallStatusResult(); + explicit QueryCallStatusResult(const std::string &payload); + ~QueryCallStatusResult(); + std::string getMessage()const; + std::string getCode()const; + SecretCallStatusDTO getSecretCallStatusDTO()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + SecretCallStatusDTO secretCallStatusDTO_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYCALLSTATUSRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.h new file mode 100644 index 000000000..132fabb64 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlRequest.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_QUERYRECORDFILEDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QueryRecordFileDownloadUrlRequest : public RpcServiceRequest + { + + public: + QueryRecordFileDownloadUrlRequest(); + ~QueryRecordFileDownloadUrlRequest(); + + 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 getProductType()const; + void setProductType(const std::string& productType); + 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 productType_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string callTime_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.h new file mode 100644 index 000000000..40a41de0f --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QueryRecordFileDownloadUrlResult.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_QUERYRECORDFILEDOWNLOADURLRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QueryRecordFileDownloadUrlResult : public ServiceResult + { + public: + + + QueryRecordFileDownloadUrlResult(); + explicit QueryRecordFileDownloadUrlResult(const std::string &payload); + ~QueryRecordFileDownloadUrlResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getDownloadUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string downloadUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYRECORDFILEDOWNLOADURLRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.h new file mode 100644 index 000000000..5fa2f1fd0 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainRequest.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_QUERYSECRETNOREMAINREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoRemainRequest : public RpcServiceRequest + { + + public: + QuerySecretNoRemainRequest(); + ~QuerySecretNoRemainRequest(); + + long getSpecId()const; + void setSpecId(long specId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCity()const; + void setCity(const std::string& city); + 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); + + private: + long specId_; + long resourceOwnerId_; + std::string city_; + std::string accessKeyId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.h new file mode 100644 index 000000000..0b19050b4 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySecretNoRemainResult.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_QUERYSECRETNOREMAINRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySecretNoRemainResult : public ServiceResult + { + public: + struct SecretRemainDTO + { + struct RemainDTO + { + long amount; + std::string city; + }; + std::vector remainDTOList; + long amount; + std::string city; + }; + + + QuerySecretNoRemainResult(); + explicit QuerySecretNoRemainResult(const std::string &payload); + ~QuerySecretNoRemainResult(); + SecretRemainDTO getSecretRemainDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretRemainDTO secretRemainDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSECRETNOREMAINRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.h new file mode 100644 index 000000000..68d5da26c --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdRequest.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_QUERYSUBSIDREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubsIdRequest : public RpcServiceRequest + { + + public: + QuerySubsIdRequest(); + ~QuerySubsIdRequest(); + + 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 getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string poolKey_; + std::string phoneNoX_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdResult.h new file mode 100644 index 000000000..d5b026770 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubsIdResult.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_QUERYSUBSIDRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubsIdResult : public ServiceResult + { + public: + + + QuerySubsIdResult(); + explicit QuerySubsIdResult(const std::string &payload); + ~QuerySubsIdResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getSubsId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string subsId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSIDRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailRequest.h new file mode 100644 index 000000000..28a0df1fc --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailRequest.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_QUERYSUBSCRIPTIONDETAILREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubscriptionDetailRequest : public RpcServiceRequest + { + + public: + QuerySubscriptionDetailRequest(); + ~QuerySubscriptionDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProductType()const; + void setProductType(const std::string& productType); + std::string getSubsId()const; + void setSubsId(const std::string& subsId); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string productType_; + std::string subsId_; + std::string phoneNoX_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILREQUEST_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 new file mode 100644 index 000000000..b197d3321 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/QuerySubscriptionDetailResult.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_QUERYSUBSCRIPTIONDETAILRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT QuerySubscriptionDetailResult : public ServiceResult + { + public: + struct SecretBindDetailDTO + { + std::string extension; + long status; + std::string callRestrict; + std::string gmtCreate; + std::string phoneNoX; + std::string expireDate; + bool needRecord; + std::string phoneNoB; + std::string subsId; + std::string phoneNoA; + long groupId; + }; + + + QuerySubscriptionDetailResult(); + explicit QuerySubscriptionDetailResult(const std::string &payload); + ~QuerySubscriptionDetailResult(); + SecretBindDetailDTO getSecretBindDetailDTO()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + SecretBindDetailDTO secretBindDetailDTO_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_QUERYSUBSCRIPTIONDETAILRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.h new file mode 100644 index 000000000..2e9061bc1 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoRequest.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_RELEASESECRETNOREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT ReleaseSecretNoRequest : public RpcServiceRequest + { + + public: + ReleaseSecretNoRequest(); + ~ReleaseSecretNoRequest(); + + 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_RELEASESECRETNOREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.h new file mode 100644 index 000000000..f44aa86ee --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/ReleaseSecretNoResult.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_RELEASESECRETNORESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_RELEASESECRETNORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT ReleaseSecretNoResult : public ServiceResult + { + public: + + + ReleaseSecretNoResult(); + explicit ReleaseSecretNoResult(const std::string &payload); + ~ReleaseSecretNoResult(); + 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_RELEASESECRETNORESULT_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.h new file mode 100644 index 000000000..32b0b3e41 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionRequest.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_UNBINDSUBSCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UnbindSubscriptionRequest : public RpcServiceRequest + { + + public: + UnbindSubscriptionRequest(); + ~UnbindSubscriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProductType()const; + void setProductType(const std::string& productType); + std::string getSubsId()const; + void setSubsId(const std::string& subsId); + 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 getPoolKey()const; + void setPoolKey(const std::string& poolKey); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string productType_; + std::string subsId_; + std::string secretNo_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string poolKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.h new file mode 100644 index 000000000..00f104e63 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UnbindSubscriptionResult.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_UNBINDSUBSCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UnbindSubscriptionResult : public ServiceResult + { + public: + + + UnbindSubscriptionResult(); + explicit UnbindSubscriptionResult(const std::string &payload); + ~UnbindSubscriptionResult(); + std::string getMessage()const; + std::string getChargeId()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string chargeId_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UNBINDSUBSCRIPTIONRESULT_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 new file mode 100644 index 000000000..84436b421 --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionRequest.h @@ -0,0 +1,99 @@ +/* + * 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_UPDATESUBSCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateSubscriptionRequest : public RpcServiceRequest + { + + public: + UpdateSubscriptionRequest(); + ~UpdateSubscriptionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getCallDisplayType()const; + void setCallDisplayType(int callDisplayType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getProductType()const; + void setProductType(const std::string& productType); + std::string getSubsId()const; + void setSubsId(const std::string& subsId); + std::string getPhoneNoX()const; + void setPhoneNoX(const std::string& phoneNoX); + std::string getRingConfig()const; + void setRingConfig(const std::string& ringConfig); + std::string getPhoneNoB()const; + void setPhoneNoB(const std::string& phoneNoB); + std::string getPhoneNoA()const; + void setPhoneNoA(const std::string& phoneNoA); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPoolKey()const; + void setPoolKey(const std::string& poolKey); + std::string getExpiration()const; + void setExpiration(const std::string& expiration); + std::string getOutId()const; + void setOutId(const std::string& outId); + bool getIsRecordingEnabled()const; + void setIsRecordingEnabled(bool isRecordingEnabled); + std::string getOperateType()const; + void setOperateType(const std::string& operateType); + std::string getCallRestrict()const; + void setCallRestrict(const std::string& callRestrict); + + private: + long resourceOwnerId_; + int callDisplayType_; + std::string accessKeyId_; + std::string productType_; + std::string subsId_; + std::string phoneNoX_; + std::string ringConfig_; + std::string phoneNoB_; + std::string phoneNoA_; + std::string resourceOwnerAccount_; + std::string groupId_; + long ownerId_; + std::string poolKey_; + std::string expiration_; + std::string outId_; + bool isRecordingEnabled_; + std::string operateType_; + std::string callRestrict_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.h new file mode 100644 index 000000000..4610b603b --- /dev/null +++ b/dyplsapi/include/alibabacloud/dyplsapi/model/UpdateSubscriptionResult.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_UPDATESUBSCRIPTIONRESULT_H_ +#define ALIBABACLOUD_DYPLSAPI_MODEL_UPDATESUBSCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dyplsapi + { + namespace Model + { + class ALIBABACLOUD_DYPLSAPI_EXPORT UpdateSubscriptionResult : public ServiceResult + { + public: + + + UpdateSubscriptionResult(); + explicit UpdateSubscriptionResult(const std::string &payload); + ~UpdateSubscriptionResult(); + 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_UPDATESUBSCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dyplsapi/src/DyplsapiClient.cc b/dyplsapi/src/DyplsapiClient.cc new file mode 100644 index 000000000..8123509ce --- /dev/null +++ b/dyplsapi/src/DyplsapiClient.cc @@ -0,0 +1,593 @@ +/* + * 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +namespace +{ + const std::string SERVICE_NAME = "Dyplsapi"; +} + +DyplsapiClient::DyplsapiClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); +} + +DyplsapiClient::DyplsapiClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); +} + +DyplsapiClient::DyplsapiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dypls"); +} + +DyplsapiClient::~DyplsapiClient() +{} + +DyplsapiClient::BindAxbOutcome DyplsapiClient::bindAxb(const BindAxbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAxbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAxbOutcome(BindAxbResult(outcome.result())); + else + return BindAxbOutcome(outcome.error()); +} + +void DyplsapiClient::bindAxbAsync(const BindAxbRequest& request, const BindAxbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAxb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BindAxbOutcomeCallable DyplsapiClient::bindAxbCallable(const BindAxbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAxb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::BindAxgOutcome DyplsapiClient::bindAxg(const BindAxgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAxgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAxgOutcome(BindAxgResult(outcome.result())); + else + return BindAxgOutcome(outcome.error()); +} + +void DyplsapiClient::bindAxgAsync(const BindAxgRequest& request, const BindAxgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAxg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BindAxgOutcomeCallable DyplsapiClient::bindAxgCallable(const BindAxgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAxg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::BindAxnOutcome DyplsapiClient::bindAxn(const BindAxnRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAxnOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAxnOutcome(BindAxnResult(outcome.result())); + else + return BindAxnOutcome(outcome.error()); +} + +void DyplsapiClient::bindAxnAsync(const BindAxnRequest& request, const BindAxnAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAxn(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BindAxnOutcomeCallable DyplsapiClient::bindAxnCallable(const BindAxnRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAxn(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::BindAxnExtensionOutcome DyplsapiClient::bindAxnExtension(const BindAxnExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindAxnExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindAxnExtensionOutcome(BindAxnExtensionResult(outcome.result())); + else + return BindAxnExtensionOutcome(outcome.error()); +} + +void DyplsapiClient::bindAxnExtensionAsync(const BindAxnExtensionRequest& request, const BindAxnExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindAxnExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BindAxnExtensionOutcomeCallable DyplsapiClient::bindAxnExtensionCallable(const BindAxnExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindAxnExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::BuySecretNoOutcome DyplsapiClient::buySecretNo(const BuySecretNoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BuySecretNoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BuySecretNoOutcome(BuySecretNoResult(outcome.result())); + else + return BuySecretNoOutcome(outcome.error()); +} + +void DyplsapiClient::buySecretNoAsync(const BuySecretNoRequest& request, const BuySecretNoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, buySecretNo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::BuySecretNoOutcomeCallable DyplsapiClient::buySecretNoCallable(const BuySecretNoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->buySecretNo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::CreateAxgGroupOutcome DyplsapiClient::createAxgGroup(const CreateAxgGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAxgGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAxgGroupOutcome(CreateAxgGroupResult(outcome.result())); + else + return CreateAxgGroupOutcome(outcome.error()); +} + +void DyplsapiClient::createAxgGroupAsync(const CreateAxgGroupRequest& request, const CreateAxgGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAxgGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::CreateAxgGroupOutcomeCallable DyplsapiClient::createAxgGroupCallable(const CreateAxgGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAxgGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::OperateAxgGroupOutcome DyplsapiClient::operateAxgGroup(const OperateAxgGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OperateAxgGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OperateAxgGroupOutcome(OperateAxgGroupResult(outcome.result())); + else + return OperateAxgGroupOutcome(outcome.error()); +} + +void DyplsapiClient::operateAxgGroupAsync(const OperateAxgGroupRequest& request, const OperateAxgGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, operateAxgGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::OperateAxgGroupOutcomeCallable DyplsapiClient::operateAxgGroupCallable(const OperateAxgGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->operateAxgGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::QueryCallStatusOutcome DyplsapiClient::queryCallStatus(const QueryCallStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCallStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCallStatusOutcome(QueryCallStatusResult(outcome.result())); + else + return QueryCallStatusOutcome(outcome.error()); +} + +void DyplsapiClient::queryCallStatusAsync(const QueryCallStatusRequest& request, const QueryCallStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCallStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QueryCallStatusOutcomeCallable DyplsapiClient::queryCallStatusCallable(const QueryCallStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCallStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::QueryRecordFileDownloadUrlOutcome DyplsapiClient::queryRecordFileDownloadUrl(const QueryRecordFileDownloadUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryRecordFileDownloadUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryRecordFileDownloadUrlOutcome(QueryRecordFileDownloadUrlResult(outcome.result())); + else + return QueryRecordFileDownloadUrlOutcome(outcome.error()); +} + +void DyplsapiClient::queryRecordFileDownloadUrlAsync(const QueryRecordFileDownloadUrlRequest& request, const QueryRecordFileDownloadUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryRecordFileDownloadUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QueryRecordFileDownloadUrlOutcomeCallable DyplsapiClient::queryRecordFileDownloadUrlCallable(const QueryRecordFileDownloadUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryRecordFileDownloadUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::QuerySecretNoRemainOutcome DyplsapiClient::querySecretNoRemain(const QuerySecretNoRemainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySecretNoRemainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySecretNoRemainOutcome(QuerySecretNoRemainResult(outcome.result())); + else + return QuerySecretNoRemainOutcome(outcome.error()); +} + +void DyplsapiClient::querySecretNoRemainAsync(const QuerySecretNoRemainRequest& request, const QuerySecretNoRemainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySecretNoRemain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QuerySecretNoRemainOutcomeCallable DyplsapiClient::querySecretNoRemainCallable(const QuerySecretNoRemainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySecretNoRemain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::QuerySubsIdOutcome DyplsapiClient::querySubsId(const QuerySubsIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySubsIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySubsIdOutcome(QuerySubsIdResult(outcome.result())); + else + return QuerySubsIdOutcome(outcome.error()); +} + +void DyplsapiClient::querySubsIdAsync(const QuerySubsIdRequest& request, const QuerySubsIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySubsId(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QuerySubsIdOutcomeCallable DyplsapiClient::querySubsIdCallable(const QuerySubsIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySubsId(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::QuerySubscriptionDetailOutcome DyplsapiClient::querySubscriptionDetail(const QuerySubscriptionDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySubscriptionDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySubscriptionDetailOutcome(QuerySubscriptionDetailResult(outcome.result())); + else + return QuerySubscriptionDetailOutcome(outcome.error()); +} + +void DyplsapiClient::querySubscriptionDetailAsync(const QuerySubscriptionDetailRequest& request, const QuerySubscriptionDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySubscriptionDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::QuerySubscriptionDetailOutcomeCallable DyplsapiClient::querySubscriptionDetailCallable(const QuerySubscriptionDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySubscriptionDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::ReleaseSecretNoOutcome DyplsapiClient::releaseSecretNo(const ReleaseSecretNoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseSecretNoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseSecretNoOutcome(ReleaseSecretNoResult(outcome.result())); + else + return ReleaseSecretNoOutcome(outcome.error()); +} + +void DyplsapiClient::releaseSecretNoAsync(const ReleaseSecretNoRequest& request, const ReleaseSecretNoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseSecretNo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::ReleaseSecretNoOutcomeCallable DyplsapiClient::releaseSecretNoCallable(const ReleaseSecretNoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseSecretNo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::UnbindSubscriptionOutcome DyplsapiClient::unbindSubscription(const UnbindSubscriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindSubscriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindSubscriptionOutcome(UnbindSubscriptionResult(outcome.result())); + else + return UnbindSubscriptionOutcome(outcome.error()); +} + +void DyplsapiClient::unbindSubscriptionAsync(const UnbindSubscriptionRequest& request, const UnbindSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindSubscription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UnbindSubscriptionOutcomeCallable DyplsapiClient::unbindSubscriptionCallable(const UnbindSubscriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindSubscription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DyplsapiClient::UpdateSubscriptionOutcome DyplsapiClient::updateSubscription(const UpdateSubscriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSubscriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSubscriptionOutcome(UpdateSubscriptionResult(outcome.result())); + else + return UpdateSubscriptionOutcome(outcome.error()); +} + +void DyplsapiClient::updateSubscriptionAsync(const UpdateSubscriptionRequest& request, const UpdateSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSubscription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DyplsapiClient::UpdateSubscriptionOutcomeCallable DyplsapiClient::updateSubscriptionCallable(const UpdateSubscriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSubscription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dyplsapi/src/model/BindAxbRequest.cc b/dyplsapi/src/model/BindAxbRequest.cc new file mode 100644 index 000000000..6b66c5667 --- /dev/null +++ b/dyplsapi/src/model/BindAxbRequest.cc @@ -0,0 +1,192 @@ +/* + * 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::BindAxbRequest; + +BindAxbRequest::BindAxbRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxb") +{} + +BindAxbRequest::~BindAxbRequest() +{} + +long BindAxbRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindAxbRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int BindAxbRequest::getCallDisplayType()const +{ + return callDisplayType_; +} + +void BindAxbRequest::setCallDisplayType(int callDisplayType) +{ + callDisplayType_ = callDisplayType; + setCoreParameter("CallDisplayType", std::to_string(callDisplayType)); +} + +std::string BindAxbRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BindAxbRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BindAxbRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void BindAxbRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string BindAxbRequest::getRingConfig()const +{ + return ringConfig_; +} + +void BindAxbRequest::setRingConfig(const std::string& ringConfig) +{ + ringConfig_ = ringConfig; + setCoreParameter("RingConfig", ringConfig); +} + +std::string BindAxbRequest::getPhoneNoB()const +{ + return phoneNoB_; +} + +void BindAxbRequest::setPhoneNoB(const std::string& phoneNoB) +{ + phoneNoB_ = phoneNoB; + setCoreParameter("PhoneNoB", phoneNoB); +} + +std::string BindAxbRequest::getPhoneNoA()const +{ + return phoneNoA_; +} + +void BindAxbRequest::setPhoneNoA(const std::string& phoneNoA) +{ + phoneNoA_ = phoneNoA; + setCoreParameter("PhoneNoA", phoneNoA); +} + +std::string BindAxbRequest::getExpectCity()const +{ + return expectCity_; +} + +void BindAxbRequest::setExpectCity(const std::string& expectCity) +{ + expectCity_ = expectCity; + setCoreParameter("ExpectCity", expectCity); +} + +std::string BindAxbRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindAxbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long BindAxbRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindAxbRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BindAxbRequest::getOutOrderId()const +{ + return outOrderId_; +} + +void BindAxbRequest::setOutOrderId(const std::string& outOrderId) +{ + outOrderId_ = outOrderId; + setCoreParameter("OutOrderId", outOrderId); +} + +std::string BindAxbRequest::getPoolKey()const +{ + return poolKey_; +} + +void BindAxbRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string BindAxbRequest::getExpiration()const +{ + return expiration_; +} + +void BindAxbRequest::setExpiration(const std::string& expiration) +{ + expiration_ = expiration; + setCoreParameter("Expiration", expiration); +} + +bool BindAxbRequest::getIsRecordingEnabled()const +{ + return isRecordingEnabled_; +} + +void BindAxbRequest::setIsRecordingEnabled(bool isRecordingEnabled) +{ + isRecordingEnabled_ = isRecordingEnabled; + setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false"); +} + +std::string BindAxbRequest::getOutId()const +{ + return outId_; +} + +void BindAxbRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + diff --git a/dyplsapi/src/model/BindAxbResult.cc b/dyplsapi/src/model/BindAxbResult.cc new file mode 100644 index 000000000..1f3b2cab4 --- /dev/null +++ b/dyplsapi/src/model/BindAxbResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +BindAxbResult::BindAxbResult() : + ServiceResult() +{} + +BindAxbResult::BindAxbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindAxbResult::~BindAxbResult() +{} + +void BindAxbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBindDTONode = value["SecretBindDTO"]; + if(!secretBindDTONode["SubsId"].isNull()) + secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString(); + if(!secretBindDTONode["SecretNo"].isNull()) + secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString(); + if(!secretBindDTONode["Extension"].isNull()) + secretBindDTO_.extension = secretBindDTONode["Extension"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +BindAxbResult::SecretBindDTO BindAxbResult::getSecretBindDTO()const +{ + return secretBindDTO_; +} + +std::string BindAxbResult::getMessage()const +{ + return message_; +} + +std::string BindAxbResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/BindAxgRequest.cc b/dyplsapi/src/model/BindAxgRequest.cc new file mode 100644 index 000000000..34bc48630 --- /dev/null +++ b/dyplsapi/src/model/BindAxgRequest.cc @@ -0,0 +1,203 @@ +/* + * 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::BindAxgRequest; + +BindAxgRequest::BindAxgRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxg") +{} + +BindAxgRequest::~BindAxgRequest() +{} + +long BindAxgRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindAxgRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int BindAxgRequest::getCallDisplayType()const +{ + return callDisplayType_; +} + +void BindAxgRequest::setCallDisplayType(int callDisplayType) +{ + callDisplayType_ = callDisplayType; + setCoreParameter("CallDisplayType", std::to_string(callDisplayType)); +} + +std::string BindAxgRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BindAxgRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BindAxgRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void BindAxgRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string BindAxgRequest::getRingConfig()const +{ + return ringConfig_; +} + +void BindAxgRequest::setRingConfig(const std::string& ringConfig) +{ + ringConfig_ = ringConfig; + setCoreParameter("RingConfig", ringConfig); +} + +std::string BindAxgRequest::getPhoneNoB()const +{ + return phoneNoB_; +} + +void BindAxgRequest::setPhoneNoB(const std::string& phoneNoB) +{ + phoneNoB_ = phoneNoB; + setCoreParameter("PhoneNoB", phoneNoB); +} + +std::string BindAxgRequest::getPhoneNoA()const +{ + return phoneNoA_; +} + +void BindAxgRequest::setPhoneNoA(const std::string& phoneNoA) +{ + phoneNoA_ = phoneNoA; + setCoreParameter("PhoneNoA", phoneNoA); +} + +std::string BindAxgRequest::getExpectCity()const +{ + return expectCity_; +} + +void BindAxgRequest::setExpectCity(const std::string& expectCity) +{ + expectCity_ = expectCity; + setCoreParameter("ExpectCity", expectCity); +} + +std::string BindAxgRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindAxgRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BindAxgRequest::getGroupId()const +{ + return groupId_; +} + +void BindAxgRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long BindAxgRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindAxgRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BindAxgRequest::getOutOrderId()const +{ + return outOrderId_; +} + +void BindAxgRequest::setOutOrderId(const std::string& outOrderId) +{ + outOrderId_ = outOrderId; + setCoreParameter("OutOrderId", outOrderId); +} + +std::string BindAxgRequest::getPoolKey()const +{ + return poolKey_; +} + +void BindAxgRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string BindAxgRequest::getExpiration()const +{ + return expiration_; +} + +void BindAxgRequest::setExpiration(const std::string& expiration) +{ + expiration_ = expiration; + setCoreParameter("Expiration", expiration); +} + +bool BindAxgRequest::getIsRecordingEnabled()const +{ + return isRecordingEnabled_; +} + +void BindAxgRequest::setIsRecordingEnabled(bool isRecordingEnabled) +{ + isRecordingEnabled_ = isRecordingEnabled; + setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false"); +} + +std::string BindAxgRequest::getOutId()const +{ + return outId_; +} + +void BindAxgRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + diff --git a/dyplsapi/src/model/BindAxgResult.cc b/dyplsapi/src/model/BindAxgResult.cc new file mode 100644 index 000000000..99dcd8dd8 --- /dev/null +++ b/dyplsapi/src/model/BindAxgResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +BindAxgResult::BindAxgResult() : + ServiceResult() +{} + +BindAxgResult::BindAxgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindAxgResult::~BindAxgResult() +{} + +void BindAxgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBindDTONode = value["SecretBindDTO"]; + if(!secretBindDTONode["SubsId"].isNull()) + secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString(); + if(!secretBindDTONode["SecretNo"].isNull()) + secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString(); + if(!secretBindDTONode["Extension"].isNull()) + secretBindDTO_.extension = secretBindDTONode["Extension"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +BindAxgResult::SecretBindDTO BindAxgResult::getSecretBindDTO()const +{ + return secretBindDTO_; +} + +std::string BindAxgResult::getMessage()const +{ + return message_; +} + +std::string BindAxgResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/BindAxnExtensionRequest.cc b/dyplsapi/src/model/BindAxnExtensionRequest.cc new file mode 100644 index 000000000..8ef55caf7 --- /dev/null +++ b/dyplsapi/src/model/BindAxnExtensionRequest.cc @@ -0,0 +1,203 @@ +/* + * 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::BindAxnExtensionRequest; + +BindAxnExtensionRequest::BindAxnExtensionRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxnExtension") +{} + +BindAxnExtensionRequest::~BindAxnExtensionRequest() +{} + +long BindAxnExtensionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindAxnExtensionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BindAxnExtensionRequest::getExtension()const +{ + return extension_; +} + +void BindAxnExtensionRequest::setExtension(const std::string& extension) +{ + extension_ = extension; + setCoreParameter("Extension", extension); +} + +int BindAxnExtensionRequest::getCallDisplayType()const +{ + return callDisplayType_; +} + +void BindAxnExtensionRequest::setCallDisplayType(int callDisplayType) +{ + callDisplayType_ = callDisplayType; + setCoreParameter("CallDisplayType", std::to_string(callDisplayType)); +} + +std::string BindAxnExtensionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BindAxnExtensionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BindAxnExtensionRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void BindAxnExtensionRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string BindAxnExtensionRequest::getRingConfig()const +{ + return ringConfig_; +} + +void BindAxnExtensionRequest::setRingConfig(const std::string& ringConfig) +{ + ringConfig_ = ringConfig; + setCoreParameter("RingConfig", ringConfig); +} + +std::string BindAxnExtensionRequest::getPhoneNoB()const +{ + return phoneNoB_; +} + +void BindAxnExtensionRequest::setPhoneNoB(const std::string& phoneNoB) +{ + phoneNoB_ = phoneNoB; + setCoreParameter("PhoneNoB", phoneNoB); +} + +std::string BindAxnExtensionRequest::getPhoneNoA()const +{ + return phoneNoA_; +} + +void BindAxnExtensionRequest::setPhoneNoA(const std::string& phoneNoA) +{ + phoneNoA_ = phoneNoA; + setCoreParameter("PhoneNoA", phoneNoA); +} + +std::string BindAxnExtensionRequest::getExpectCity()const +{ + return expectCity_; +} + +void BindAxnExtensionRequest::setExpectCity(const std::string& expectCity) +{ + expectCity_ = expectCity; + setCoreParameter("ExpectCity", expectCity); +} + +std::string BindAxnExtensionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindAxnExtensionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long BindAxnExtensionRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindAxnExtensionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BindAxnExtensionRequest::getOutOrderId()const +{ + return outOrderId_; +} + +void BindAxnExtensionRequest::setOutOrderId(const std::string& outOrderId) +{ + outOrderId_ = outOrderId; + setCoreParameter("OutOrderId", outOrderId); +} + +std::string BindAxnExtensionRequest::getPoolKey()const +{ + return poolKey_; +} + +void BindAxnExtensionRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string BindAxnExtensionRequest::getExpiration()const +{ + return expiration_; +} + +void BindAxnExtensionRequest::setExpiration(const std::string& expiration) +{ + expiration_ = expiration; + setCoreParameter("Expiration", expiration); +} + +bool BindAxnExtensionRequest::getIsRecordingEnabled()const +{ + return isRecordingEnabled_; +} + +void BindAxnExtensionRequest::setIsRecordingEnabled(bool isRecordingEnabled) +{ + isRecordingEnabled_ = isRecordingEnabled; + setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false"); +} + +std::string BindAxnExtensionRequest::getOutId()const +{ + return outId_; +} + +void BindAxnExtensionRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + diff --git a/dyplsapi/src/model/BindAxnExtensionResult.cc b/dyplsapi/src/model/BindAxnExtensionResult.cc new file mode 100644 index 000000000..3e4679c36 --- /dev/null +++ b/dyplsapi/src/model/BindAxnExtensionResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +BindAxnExtensionResult::BindAxnExtensionResult() : + ServiceResult() +{} + +BindAxnExtensionResult::BindAxnExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindAxnExtensionResult::~BindAxnExtensionResult() +{} + +void BindAxnExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBindDTONode = value["SecretBindDTO"]; + if(!secretBindDTONode["SubsId"].isNull()) + secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString(); + if(!secretBindDTONode["SecretNo"].isNull()) + secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString(); + if(!secretBindDTONode["Extension"].isNull()) + secretBindDTO_.extension = secretBindDTONode["Extension"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +BindAxnExtensionResult::SecretBindDTO BindAxnExtensionResult::getSecretBindDTO()const +{ + return secretBindDTO_; +} + +std::string BindAxnExtensionResult::getMessage()const +{ + return message_; +} + +std::string BindAxnExtensionResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/BindAxnRequest.cc b/dyplsapi/src/model/BindAxnRequest.cc new file mode 100644 index 000000000..ee880d11b --- /dev/null +++ b/dyplsapi/src/model/BindAxnRequest.cc @@ -0,0 +1,203 @@ +/* + * 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::BindAxnRequest; + +BindAxnRequest::BindAxnRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "BindAxn") +{} + +BindAxnRequest::~BindAxnRequest() +{} + +long BindAxnRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindAxnRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int BindAxnRequest::getCallDisplayType()const +{ + return callDisplayType_; +} + +void BindAxnRequest::setCallDisplayType(int callDisplayType) +{ + callDisplayType_ = callDisplayType; + setCoreParameter("CallDisplayType", std::to_string(callDisplayType)); +} + +std::string BindAxnRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BindAxnRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BindAxnRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void BindAxnRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string BindAxnRequest::getRingConfig()const +{ + return ringConfig_; +} + +void BindAxnRequest::setRingConfig(const std::string& ringConfig) +{ + ringConfig_ = ringConfig; + setCoreParameter("RingConfig", ringConfig); +} + +std::string BindAxnRequest::getPhoneNoB()const +{ + return phoneNoB_; +} + +void BindAxnRequest::setPhoneNoB(const std::string& phoneNoB) +{ + phoneNoB_ = phoneNoB; + setCoreParameter("PhoneNoB", phoneNoB); +} + +std::string BindAxnRequest::getPhoneNoA()const +{ + return phoneNoA_; +} + +void BindAxnRequest::setPhoneNoA(const std::string& phoneNoA) +{ + phoneNoA_ = phoneNoA; + setCoreParameter("PhoneNoA", phoneNoA); +} + +std::string BindAxnRequest::getExpectCity()const +{ + return expectCity_; +} + +void BindAxnRequest::setExpectCity(const std::string& expectCity) +{ + expectCity_ = expectCity; + setCoreParameter("ExpectCity", expectCity); +} + +std::string BindAxnRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindAxnRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long BindAxnRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindAxnRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BindAxnRequest::getOutOrderId()const +{ + return outOrderId_; +} + +void BindAxnRequest::setOutOrderId(const std::string& outOrderId) +{ + outOrderId_ = outOrderId; + setCoreParameter("OutOrderId", outOrderId); +} + +std::string BindAxnRequest::getPoolKey()const +{ + return poolKey_; +} + +void BindAxnRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string BindAxnRequest::getExpiration()const +{ + return expiration_; +} + +void BindAxnRequest::setExpiration(const std::string& expiration) +{ + expiration_ = expiration; + setCoreParameter("Expiration", expiration); +} + +bool BindAxnRequest::getIsRecordingEnabled()const +{ + return isRecordingEnabled_; +} + +void BindAxnRequest::setIsRecordingEnabled(bool isRecordingEnabled) +{ + isRecordingEnabled_ = isRecordingEnabled; + setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false"); +} + +std::string BindAxnRequest::getOutId()const +{ + return outId_; +} + +void BindAxnRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + +std::string BindAxnRequest::getNoType()const +{ + return noType_; +} + +void BindAxnRequest::setNoType(const std::string& noType) +{ + noType_ = noType; + setCoreParameter("NoType", noType); +} + diff --git a/dyplsapi/src/model/BindAxnResult.cc b/dyplsapi/src/model/BindAxnResult.cc new file mode 100644 index 000000000..3d82c572c --- /dev/null +++ b/dyplsapi/src/model/BindAxnResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +BindAxnResult::BindAxnResult() : + ServiceResult() +{} + +BindAxnResult::BindAxnResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindAxnResult::~BindAxnResult() +{} + +void BindAxnResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBindDTONode = value["SecretBindDTO"]; + if(!secretBindDTONode["SubsId"].isNull()) + secretBindDTO_.subsId = secretBindDTONode["SubsId"].asString(); + if(!secretBindDTONode["SecretNo"].isNull()) + secretBindDTO_.secretNo = secretBindDTONode["SecretNo"].asString(); + if(!secretBindDTONode["Extension"].isNull()) + secretBindDTO_.extension = secretBindDTONode["Extension"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +BindAxnResult::SecretBindDTO BindAxnResult::getSecretBindDTO()const +{ + return secretBindDTO_; +} + +std::string BindAxnResult::getMessage()const +{ + return message_; +} + +std::string BindAxnResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/BuySecretNoRequest.cc b/dyplsapi/src/model/BuySecretNoRequest.cc new file mode 100644 index 000000000..099d189f4 --- /dev/null +++ b/dyplsapi/src/model/BuySecretNoRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::BuySecretNoRequest; + +BuySecretNoRequest::BuySecretNoRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "BuySecretNo") +{} + +BuySecretNoRequest::~BuySecretNoRequest() +{} + +long BuySecretNoRequest::getSpecId()const +{ + return specId_; +} + +void BuySecretNoRequest::setSpecId(long specId) +{ + specId_ = specId; + setCoreParameter("SpecId", std::to_string(specId)); +} + +long BuySecretNoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BuySecretNoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BuySecretNoRequest::getCity()const +{ + return city_; +} + +void BuySecretNoRequest::setCity(const std::string& city) +{ + city_ = city; + setCoreParameter("City", city); +} + +std::string BuySecretNoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void BuySecretNoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string BuySecretNoRequest::getSecretNo()const +{ + return secretNo_; +} + +void BuySecretNoRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setCoreParameter("SecretNo", secretNo); +} + +std::string BuySecretNoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BuySecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool BuySecretNoRequest::getDisplayPool()const +{ + return displayPool_; +} + +void BuySecretNoRequest::setDisplayPool(bool displayPool) +{ + displayPool_ = displayPool; + setCoreParameter("DisplayPool", displayPool ? "true" : "false"); +} + +long BuySecretNoRequest::getOwnerId()const +{ + return ownerId_; +} + +void BuySecretNoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BuySecretNoRequest::getPoolKey()const +{ + return poolKey_; +} + +void BuySecretNoRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/BuySecretNoResult.cc b/dyplsapi/src/model/BuySecretNoResult.cc new file mode 100644 index 000000000..448c14e1e --- /dev/null +++ b/dyplsapi/src/model/BuySecretNoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +BuySecretNoResult::BuySecretNoResult() : + ServiceResult() +{} + +BuySecretNoResult::BuySecretNoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BuySecretNoResult::~BuySecretNoResult() +{} + +void BuySecretNoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBuyInfoDTONode = value["SecretBuyInfoDTO"]; + if(!secretBuyInfoDTONode["SecretNo"].isNull()) + secretBuyInfoDTO_.secretNo = secretBuyInfoDTONode["SecretNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string BuySecretNoResult::getMessage()const +{ + return message_; +} + +BuySecretNoResult::SecretBuyInfoDTO BuySecretNoResult::getSecretBuyInfoDTO()const +{ + return secretBuyInfoDTO_; +} + +std::string BuySecretNoResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/CreateAxgGroupRequest.cc b/dyplsapi/src/model/CreateAxgGroupRequest.cc new file mode 100644 index 000000000..47e4d1ad2 --- /dev/null +++ b/dyplsapi/src/model/CreateAxgGroupRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::CreateAxgGroupRequest; + +CreateAxgGroupRequest::CreateAxgGroupRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "CreateAxgGroup") +{} + +CreateAxgGroupRequest::~CreateAxgGroupRequest() +{} + +long CreateAxgGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAxgGroupRequest::getNumbers()const +{ + return numbers_; +} + +void CreateAxgGroupRequest::setNumbers(const std::string& numbers) +{ + numbers_ = numbers; + setCoreParameter("Numbers", numbers); +} + +std::string CreateAxgGroupRequest::getRemark()const +{ + return remark_; +} + +void CreateAxgGroupRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string CreateAxgGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string CreateAxgGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CreateAxgGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAxgGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAxgGroupRequest::getPoolKey()const +{ + return poolKey_; +} + +void CreateAxgGroupRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string CreateAxgGroupRequest::getName()const +{ + return name_; +} + +void CreateAxgGroupRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/dyplsapi/src/model/CreateAxgGroupResult.cc b/dyplsapi/src/model/CreateAxgGroupResult.cc new file mode 100644 index 000000000..4caf777c7 --- /dev/null +++ b/dyplsapi/src/model/CreateAxgGroupResult.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; + +CreateAxgGroupResult::CreateAxgGroupResult() : + ServiceResult() +{} + +CreateAxgGroupResult::CreateAxgGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAxgGroupResult::~CreateAxgGroupResult() +{} + +void CreateAxgGroupResult::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["GroupId"].isNull()) + groupId_ = std::stol(value["GroupId"].asString()); + +} + +std::string CreateAxgGroupResult::getMessage()const +{ + return message_; +} + +std::string CreateAxgGroupResult::getCode()const +{ + return code_; +} + +long CreateAxgGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/dyplsapi/src/model/OperateAxgGroupRequest.cc b/dyplsapi/src/model/OperateAxgGroupRequest.cc new file mode 100644 index 000000000..2f4639048 --- /dev/null +++ b/dyplsapi/src/model/OperateAxgGroupRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::OperateAxgGroupRequest; + +OperateAxgGroupRequest::OperateAxgGroupRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "OperateAxgGroup") +{} + +OperateAxgGroupRequest::~OperateAxgGroupRequest() +{} + +long OperateAxgGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void OperateAxgGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string OperateAxgGroupRequest::getNumbers()const +{ + return numbers_; +} + +void OperateAxgGroupRequest::setNumbers(const std::string& numbers) +{ + numbers_ = numbers; + setCoreParameter("Numbers", numbers); +} + +std::string OperateAxgGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void OperateAxgGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string OperateAxgGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void OperateAxgGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long OperateAxgGroupRequest::getGroupId()const +{ + return groupId_; +} + +void OperateAxgGroupRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +long OperateAxgGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void OperateAxgGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string OperateAxgGroupRequest::getPoolKey()const +{ + return poolKey_; +} + +void OperateAxgGroupRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string OperateAxgGroupRequest::getOperateType()const +{ + return operateType_; +} + +void OperateAxgGroupRequest::setOperateType(const std::string& operateType) +{ + operateType_ = operateType; + setCoreParameter("OperateType", operateType); +} + diff --git a/dyplsapi/src/model/OperateAxgGroupResult.cc b/dyplsapi/src/model/OperateAxgGroupResult.cc new file mode 100644 index 000000000..4fffb8443 --- /dev/null +++ b/dyplsapi/src/model/OperateAxgGroupResult.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; + +OperateAxgGroupResult::OperateAxgGroupResult() : + ServiceResult() +{} + +OperateAxgGroupResult::OperateAxgGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OperateAxgGroupResult::~OperateAxgGroupResult() +{} + +void OperateAxgGroupResult::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 OperateAxgGroupResult::getMessage()const +{ + return message_; +} + +std::string OperateAxgGroupResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/QueryCallStatusRequest.cc b/dyplsapi/src/model/QueryCallStatusRequest.cc new file mode 100644 index 000000000..28f7ae2d0 --- /dev/null +++ b/dyplsapi/src/model/QueryCallStatusRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::QueryCallStatusRequest; + +QueryCallStatusRequest::QueryCallStatusRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QueryCallStatus") +{} + +QueryCallStatusRequest::~QueryCallStatusRequest() +{} + +long QueryCallStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryCallStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryCallStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryCallStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QueryCallStatusRequest::getSubsId()const +{ + return subsId_; +} + +void QueryCallStatusRequest::setSubsId(const std::string& subsId) +{ + subsId_ = subsId; + setCoreParameter("SubsId", subsId); +} + +std::string QueryCallStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryCallStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string QueryCallStatusRequest::getCallNo()const +{ + return callNo_; +} + +void QueryCallStatusRequest::setCallNo(const std::string& callNo) +{ + callNo_ = callNo; + setCoreParameter("CallNo", callNo); +} + +long QueryCallStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryCallStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryCallStatusRequest::getPoolKey()const +{ + return poolKey_; +} + +void QueryCallStatusRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/QueryCallStatusResult.cc b/dyplsapi/src/model/QueryCallStatusResult.cc new file mode 100644 index 000000000..b446049ed --- /dev/null +++ b/dyplsapi/src/model/QueryCallStatusResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +QueryCallStatusResult::QueryCallStatusResult() : + ServiceResult() +{} + +QueryCallStatusResult::QueryCallStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCallStatusResult::~QueryCallStatusResult() +{} + +void QueryCallStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretCallStatusDTONode = value["SecretCallStatusDTO"]; + if(!secretCallStatusDTONode["Status"].isNull()) + secretCallStatusDTO_.status = std::stoi(secretCallStatusDTONode["Status"].asString()); + if(!secretCallStatusDTONode["CalledNo"].isNull()) + secretCallStatusDTO_.calledNo = secretCallStatusDTONode["CalledNo"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryCallStatusResult::getMessage()const +{ + return message_; +} + +std::string QueryCallStatusResult::getCode()const +{ + return code_; +} + +QueryCallStatusResult::SecretCallStatusDTO QueryCallStatusResult::getSecretCallStatusDTO()const +{ + return secretCallStatusDTO_; +} + diff --git a/dyplsapi/src/model/QueryRecordFileDownloadUrlRequest.cc b/dyplsapi/src/model/QueryRecordFileDownloadUrlRequest.cc new file mode 100644 index 000000000..8783b9296 --- /dev/null +++ b/dyplsapi/src/model/QueryRecordFileDownloadUrlRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::QueryRecordFileDownloadUrlRequest; + +QueryRecordFileDownloadUrlRequest::QueryRecordFileDownloadUrlRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QueryRecordFileDownloadUrl") +{} + +QueryRecordFileDownloadUrlRequest::~QueryRecordFileDownloadUrlRequest() +{} + +std::string QueryRecordFileDownloadUrlRequest::getCallId()const +{ + return callId_; +} + +void QueryRecordFileDownloadUrlRequest::setCallId(const std::string& callId) +{ + callId_ = callId; + setCoreParameter("CallId", callId); +} + +long QueryRecordFileDownloadUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QueryRecordFileDownloadUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QueryRecordFileDownloadUrlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryRecordFileDownloadUrlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QueryRecordFileDownloadUrlRequest::getProductType()const +{ + return productType_; +} + +void QueryRecordFileDownloadUrlRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setCoreParameter("ProductType", productType); +} + +std::string QueryRecordFileDownloadUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QueryRecordFileDownloadUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QueryRecordFileDownloadUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void QueryRecordFileDownloadUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QueryRecordFileDownloadUrlRequest::getCallTime()const +{ + return callTime_; +} + +void QueryRecordFileDownloadUrlRequest::setCallTime(const std::string& callTime) +{ + callTime_ = callTime; + setCoreParameter("CallTime", callTime); +} + +std::string QueryRecordFileDownloadUrlRequest::getPoolKey()const +{ + return poolKey_; +} + +void QueryRecordFileDownloadUrlRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/QueryRecordFileDownloadUrlResult.cc b/dyplsapi/src/model/QueryRecordFileDownloadUrlResult.cc new file mode 100644 index 000000000..c968a6595 --- /dev/null +++ b/dyplsapi/src/model/QueryRecordFileDownloadUrlResult.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; + +QueryRecordFileDownloadUrlResult::QueryRecordFileDownloadUrlResult() : + ServiceResult() +{} + +QueryRecordFileDownloadUrlResult::QueryRecordFileDownloadUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryRecordFileDownloadUrlResult::~QueryRecordFileDownloadUrlResult() +{} + +void QueryRecordFileDownloadUrlResult::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["DownloadUrl"].isNull()) + downloadUrl_ = value["DownloadUrl"].asString(); + +} + +std::string QueryRecordFileDownloadUrlResult::getMessage()const +{ + return message_; +} + +std::string QueryRecordFileDownloadUrlResult::getCode()const +{ + return code_; +} + +std::string QueryRecordFileDownloadUrlResult::getDownloadUrl()const +{ + return downloadUrl_; +} + diff --git a/dyplsapi/src/model/QuerySecretNoRemainRequest.cc b/dyplsapi/src/model/QuerySecretNoRemainRequest.cc new file mode 100644 index 000000000..ce06c81dd --- /dev/null +++ b/dyplsapi/src/model/QuerySecretNoRemainRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::QuerySecretNoRemainRequest; + +QuerySecretNoRemainRequest::QuerySecretNoRemainRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySecretNoRemain") +{} + +QuerySecretNoRemainRequest::~QuerySecretNoRemainRequest() +{} + +long QuerySecretNoRemainRequest::getSpecId()const +{ + return specId_; +} + +void QuerySecretNoRemainRequest::setSpecId(long specId) +{ + specId_ = specId; + setCoreParameter("SpecId", std::to_string(specId)); +} + +long QuerySecretNoRemainRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySecretNoRemainRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySecretNoRemainRequest::getCity()const +{ + return city_; +} + +void QuerySecretNoRemainRequest::setCity(const std::string& city) +{ + city_ = city; + setCoreParameter("City", city); +} + +std::string QuerySecretNoRemainRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySecretNoRemainRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QuerySecretNoRemainRequest::getSecretNo()const +{ + return secretNo_; +} + +void QuerySecretNoRemainRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setCoreParameter("SecretNo", secretNo); +} + +std::string QuerySecretNoRemainRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySecretNoRemainRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySecretNoRemainRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySecretNoRemainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dyplsapi/src/model/QuerySecretNoRemainResult.cc b/dyplsapi/src/model/QuerySecretNoRemainResult.cc new file mode 100644 index 000000000..28ca92d44 --- /dev/null +++ b/dyplsapi/src/model/QuerySecretNoRemainResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dyplsapi; +using namespace AlibabaCloud::Dyplsapi::Model; + +QuerySecretNoRemainResult::QuerySecretNoRemainResult() : + ServiceResult() +{} + +QuerySecretNoRemainResult::QuerySecretNoRemainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySecretNoRemainResult::~QuerySecretNoRemainResult() +{} + +void QuerySecretNoRemainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretRemainDTONode = value["SecretRemainDTO"]; + if(!secretRemainDTONode["City"].isNull()) + secretRemainDTO_.city = secretRemainDTONode["City"].asString(); + if(!secretRemainDTONode["Amount"].isNull()) + secretRemainDTO_.amount = std::stol(secretRemainDTONode["Amount"].asString()); + auto allRemainDTOListNode = secretRemainDTONode["RemainDTOList"]["remainDTO"]; + for (auto secretRemainDTONodeRemainDTOListremainDTO : allRemainDTOListNode) + { + SecretRemainDTO::RemainDTO remainDTOObject; + if(!secretRemainDTONodeRemainDTOListremainDTO["City"].isNull()) + remainDTOObject.city = secretRemainDTONodeRemainDTOListremainDTO["City"].asString(); + if(!secretRemainDTONodeRemainDTOListremainDTO["Amount"].isNull()) + remainDTOObject.amount = std::stol(secretRemainDTONodeRemainDTOListremainDTO["Amount"].asString()); + secretRemainDTO_.remainDTOList.push_back(remainDTOObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +QuerySecretNoRemainResult::SecretRemainDTO QuerySecretNoRemainResult::getSecretRemainDTO()const +{ + return secretRemainDTO_; +} + +std::string QuerySecretNoRemainResult::getMessage()const +{ + return message_; +} + +std::string QuerySecretNoRemainResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/QuerySubsIdRequest.cc b/dyplsapi/src/model/QuerySubsIdRequest.cc new file mode 100644 index 000000000..f647b74f4 --- /dev/null +++ b/dyplsapi/src/model/QuerySubsIdRequest.cc @@ -0,0 +1,93 @@ +/* + * 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::QuerySubsIdRequest; + +QuerySubsIdRequest::QuerySubsIdRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubsId") +{} + +QuerySubsIdRequest::~QuerySubsIdRequest() +{} + +long QuerySubsIdRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySubsIdRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySubsIdRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySubsIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySubsIdRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySubsIdRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QuerySubsIdRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySubsIdRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QuerySubsIdRequest::getPoolKey()const +{ + return poolKey_; +} + +void QuerySubsIdRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string QuerySubsIdRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void QuerySubsIdRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + diff --git a/dyplsapi/src/model/QuerySubsIdResult.cc b/dyplsapi/src/model/QuerySubsIdResult.cc new file mode 100644 index 000000000..85fd6d774 --- /dev/null +++ b/dyplsapi/src/model/QuerySubsIdResult.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; + +QuerySubsIdResult::QuerySubsIdResult() : + ServiceResult() +{} + +QuerySubsIdResult::QuerySubsIdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySubsIdResult::~QuerySubsIdResult() +{} + +void QuerySubsIdResult::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["SubsId"].isNull()) + subsId_ = value["SubsId"].asString(); + +} + +std::string QuerySubsIdResult::getMessage()const +{ + return message_; +} + +std::string QuerySubsIdResult::getCode()const +{ + return code_; +} + +std::string QuerySubsIdResult::getSubsId()const +{ + return subsId_; +} + diff --git a/dyplsapi/src/model/QuerySubscriptionDetailRequest.cc b/dyplsapi/src/model/QuerySubscriptionDetailRequest.cc new file mode 100644 index 000000000..cb40df5ac --- /dev/null +++ b/dyplsapi/src/model/QuerySubscriptionDetailRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::QuerySubscriptionDetailRequest; + +QuerySubscriptionDetailRequest::QuerySubscriptionDetailRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "QuerySubscriptionDetail") +{} + +QuerySubscriptionDetailRequest::~QuerySubscriptionDetailRequest() +{} + +long QuerySubscriptionDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void QuerySubscriptionDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string QuerySubscriptionDetailRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QuerySubscriptionDetailRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string QuerySubscriptionDetailRequest::getProductType()const +{ + return productType_; +} + +void QuerySubscriptionDetailRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setCoreParameter("ProductType", productType); +} + +std::string QuerySubscriptionDetailRequest::getSubsId()const +{ + return subsId_; +} + +void QuerySubscriptionDetailRequest::setSubsId(const std::string& subsId) +{ + subsId_ = subsId; + setCoreParameter("SubsId", subsId); +} + +std::string QuerySubscriptionDetailRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void QuerySubscriptionDetailRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string QuerySubscriptionDetailRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void QuerySubscriptionDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long QuerySubscriptionDetailRequest::getOwnerId()const +{ + return ownerId_; +} + +void QuerySubscriptionDetailRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string QuerySubscriptionDetailRequest::getPoolKey()const +{ + return poolKey_; +} + +void QuerySubscriptionDetailRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/QuerySubscriptionDetailResult.cc b/dyplsapi/src/model/QuerySubscriptionDetailResult.cc new file mode 100644 index 000000000..60c01c0d5 --- /dev/null +++ b/dyplsapi/src/model/QuerySubscriptionDetailResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +QuerySubscriptionDetailResult::QuerySubscriptionDetailResult() : + ServiceResult() +{} + +QuerySubscriptionDetailResult::QuerySubscriptionDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySubscriptionDetailResult::~QuerySubscriptionDetailResult() +{} + +void QuerySubscriptionDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto secretBindDetailDTONode = value["SecretBindDetailDTO"]; + if(!secretBindDetailDTONode["SubsId"].isNull()) + secretBindDetailDTO_.subsId = secretBindDetailDTONode["SubsId"].asString(); + if(!secretBindDetailDTONode["PhoneNoA"].isNull()) + secretBindDetailDTO_.phoneNoA = secretBindDetailDTONode["PhoneNoA"].asString(); + if(!secretBindDetailDTONode["PhoneNoX"].isNull()) + secretBindDetailDTO_.phoneNoX = secretBindDetailDTONode["PhoneNoX"].asString(); + if(!secretBindDetailDTONode["PhoneNoB"].isNull()) + secretBindDetailDTO_.phoneNoB = secretBindDetailDTONode["PhoneNoB"].asString(); + if(!secretBindDetailDTONode["Extension"].isNull()) + secretBindDetailDTO_.extension = secretBindDetailDTONode["Extension"].asString(); + if(!secretBindDetailDTONode["GroupId"].isNull()) + secretBindDetailDTO_.groupId = std::stol(secretBindDetailDTONode["GroupId"].asString()); + if(!secretBindDetailDTONode["GmtCreate"].isNull()) + secretBindDetailDTO_.gmtCreate = secretBindDetailDTONode["GmtCreate"].asString(); + if(!secretBindDetailDTONode["ExpireDate"].isNull()) + secretBindDetailDTO_.expireDate = secretBindDetailDTONode["ExpireDate"].asString(); + if(!secretBindDetailDTONode["NeedRecord"].isNull()) + secretBindDetailDTO_.needRecord = secretBindDetailDTONode["NeedRecord"].asString() == "true"; + if(!secretBindDetailDTONode["CallRestrict"].isNull()) + secretBindDetailDTO_.callRestrict = secretBindDetailDTONode["CallRestrict"].asString(); + if(!secretBindDetailDTONode["Status"].isNull()) + secretBindDetailDTO_.status = std::stol(secretBindDetailDTONode["Status"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +QuerySubscriptionDetailResult::SecretBindDetailDTO QuerySubscriptionDetailResult::getSecretBindDetailDTO()const +{ + return secretBindDetailDTO_; +} + +std::string QuerySubscriptionDetailResult::getMessage()const +{ + return message_; +} + +std::string QuerySubscriptionDetailResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/ReleaseSecretNoRequest.cc b/dyplsapi/src/model/ReleaseSecretNoRequest.cc new file mode 100644 index 000000000..396015ca3 --- /dev/null +++ b/dyplsapi/src/model/ReleaseSecretNoRequest.cc @@ -0,0 +1,93 @@ +/* + * 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::ReleaseSecretNoRequest; + +ReleaseSecretNoRequest::ReleaseSecretNoRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "ReleaseSecretNo") +{} + +ReleaseSecretNoRequest::~ReleaseSecretNoRequest() +{} + +long ReleaseSecretNoRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseSecretNoRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseSecretNoRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseSecretNoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ReleaseSecretNoRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseSecretNoRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReleaseSecretNoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseSecretNoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string ReleaseSecretNoRequest::getPoolKey()const +{ + return poolKey_; +} + +void ReleaseSecretNoRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string ReleaseSecretNoRequest::getSecretNo()const +{ + return secretNo_; +} + +void ReleaseSecretNoRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setCoreParameter("SecretNo", secretNo); +} + diff --git a/dyplsapi/src/model/ReleaseSecretNoResult.cc b/dyplsapi/src/model/ReleaseSecretNoResult.cc new file mode 100644 index 000000000..9612e949a --- /dev/null +++ b/dyplsapi/src/model/ReleaseSecretNoResult.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; + +ReleaseSecretNoResult::ReleaseSecretNoResult() : + ServiceResult() +{} + +ReleaseSecretNoResult::ReleaseSecretNoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseSecretNoResult::~ReleaseSecretNoResult() +{} + +void ReleaseSecretNoResult::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 ReleaseSecretNoResult::getMessage()const +{ + return message_; +} + +std::string ReleaseSecretNoResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UnbindSubscriptionRequest.cc b/dyplsapi/src/model/UnbindSubscriptionRequest.cc new file mode 100644 index 000000000..a9091d1ca --- /dev/null +++ b/dyplsapi/src/model/UnbindSubscriptionRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::UnbindSubscriptionRequest; + +UnbindSubscriptionRequest::UnbindSubscriptionRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UnbindSubscription") +{} + +UnbindSubscriptionRequest::~UnbindSubscriptionRequest() +{} + +long UnbindSubscriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnbindSubscriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnbindSubscriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UnbindSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UnbindSubscriptionRequest::getProductType()const +{ + return productType_; +} + +void UnbindSubscriptionRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setCoreParameter("ProductType", productType); +} + +std::string UnbindSubscriptionRequest::getSubsId()const +{ + return subsId_; +} + +void UnbindSubscriptionRequest::setSubsId(const std::string& subsId) +{ + subsId_ = subsId; + setCoreParameter("SubsId", subsId); +} + +std::string UnbindSubscriptionRequest::getSecretNo()const +{ + return secretNo_; +} + +void UnbindSubscriptionRequest::setSecretNo(const std::string& secretNo) +{ + secretNo_ = secretNo; + setCoreParameter("SecretNo", secretNo); +} + +std::string UnbindSubscriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnbindSubscriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long UnbindSubscriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnbindSubscriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UnbindSubscriptionRequest::getPoolKey()const +{ + return poolKey_; +} + +void UnbindSubscriptionRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + diff --git a/dyplsapi/src/model/UnbindSubscriptionResult.cc b/dyplsapi/src/model/UnbindSubscriptionResult.cc new file mode 100644 index 000000000..26ed34763 --- /dev/null +++ b/dyplsapi/src/model/UnbindSubscriptionResult.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; + +UnbindSubscriptionResult::UnbindSubscriptionResult() : + ServiceResult() +{} + +UnbindSubscriptionResult::UnbindSubscriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindSubscriptionResult::~UnbindSubscriptionResult() +{} + +void UnbindSubscriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ChargeId"].isNull()) + chargeId_ = value["ChargeId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UnbindSubscriptionResult::getMessage()const +{ + return message_; +} + +std::string UnbindSubscriptionResult::getChargeId()const +{ + return chargeId_; +} + +std::string UnbindSubscriptionResult::getCode()const +{ + return code_; +} + diff --git a/dyplsapi/src/model/UpdateSubscriptionRequest.cc b/dyplsapi/src/model/UpdateSubscriptionRequest.cc new file mode 100644 index 000000000..de690d8f9 --- /dev/null +++ b/dyplsapi/src/model/UpdateSubscriptionRequest.cc @@ -0,0 +1,225 @@ +/* + * 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::UpdateSubscriptionRequest; + +UpdateSubscriptionRequest::UpdateSubscriptionRequest() : + RpcServiceRequest("dyplsapi", "2017-05-25", "UpdateSubscription") +{} + +UpdateSubscriptionRequest::~UpdateSubscriptionRequest() +{} + +long UpdateSubscriptionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateSubscriptionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int UpdateSubscriptionRequest::getCallDisplayType()const +{ + return callDisplayType_; +} + +void UpdateSubscriptionRequest::setCallDisplayType(int callDisplayType) +{ + callDisplayType_ = callDisplayType; + setCoreParameter("CallDisplayType", std::to_string(callDisplayType)); +} + +std::string UpdateSubscriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateSubscriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setCoreParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateSubscriptionRequest::getProductType()const +{ + return productType_; +} + +void UpdateSubscriptionRequest::setProductType(const std::string& productType) +{ + productType_ = productType; + setCoreParameter("ProductType", productType); +} + +std::string UpdateSubscriptionRequest::getSubsId()const +{ + return subsId_; +} + +void UpdateSubscriptionRequest::setSubsId(const std::string& subsId) +{ + subsId_ = subsId; + setCoreParameter("SubsId", subsId); +} + +std::string UpdateSubscriptionRequest::getPhoneNoX()const +{ + return phoneNoX_; +} + +void UpdateSubscriptionRequest::setPhoneNoX(const std::string& phoneNoX) +{ + phoneNoX_ = phoneNoX; + setCoreParameter("PhoneNoX", phoneNoX); +} + +std::string UpdateSubscriptionRequest::getRingConfig()const +{ + return ringConfig_; +} + +void UpdateSubscriptionRequest::setRingConfig(const std::string& ringConfig) +{ + ringConfig_ = ringConfig; + setCoreParameter("RingConfig", ringConfig); +} + +std::string UpdateSubscriptionRequest::getPhoneNoB()const +{ + return phoneNoB_; +} + +void UpdateSubscriptionRequest::setPhoneNoB(const std::string& phoneNoB) +{ + phoneNoB_ = phoneNoB; + setCoreParameter("PhoneNoB", phoneNoB); +} + +std::string UpdateSubscriptionRequest::getPhoneNoA()const +{ + return phoneNoA_; +} + +void UpdateSubscriptionRequest::setPhoneNoA(const std::string& phoneNoA) +{ + phoneNoA_ = phoneNoA; + setCoreParameter("PhoneNoA", phoneNoA); +} + +std::string UpdateSubscriptionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateSubscriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateSubscriptionRequest::getGroupId()const +{ + return groupId_; +} + +void UpdateSubscriptionRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long UpdateSubscriptionRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateSubscriptionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setCoreParameter("OwnerId", std::to_string(ownerId)); +} + +std::string UpdateSubscriptionRequest::getPoolKey()const +{ + return poolKey_; +} + +void UpdateSubscriptionRequest::setPoolKey(const std::string& poolKey) +{ + poolKey_ = poolKey; + setCoreParameter("PoolKey", poolKey); +} + +std::string UpdateSubscriptionRequest::getExpiration()const +{ + return expiration_; +} + +void UpdateSubscriptionRequest::setExpiration(const std::string& expiration) +{ + expiration_ = expiration; + setCoreParameter("Expiration", expiration); +} + +std::string UpdateSubscriptionRequest::getOutId()const +{ + return outId_; +} + +void UpdateSubscriptionRequest::setOutId(const std::string& outId) +{ + outId_ = outId; + setCoreParameter("OutId", outId); +} + +bool UpdateSubscriptionRequest::getIsRecordingEnabled()const +{ + return isRecordingEnabled_; +} + +void UpdateSubscriptionRequest::setIsRecordingEnabled(bool isRecordingEnabled) +{ + isRecordingEnabled_ = isRecordingEnabled; + setCoreParameter("IsRecordingEnabled", isRecordingEnabled ? "true" : "false"); +} + +std::string UpdateSubscriptionRequest::getOperateType()const +{ + return operateType_; +} + +void UpdateSubscriptionRequest::setOperateType(const std::string& operateType) +{ + operateType_ = operateType; + setCoreParameter("OperateType", operateType); +} + +std::string UpdateSubscriptionRequest::getCallRestrict()const +{ + return callRestrict_; +} + +void UpdateSubscriptionRequest::setCallRestrict(const std::string& callRestrict) +{ + callRestrict_ = callRestrict; + setCoreParameter("CallRestrict", callRestrict); +} + diff --git a/dyplsapi/src/model/UpdateSubscriptionResult.cc b/dyplsapi/src/model/UpdateSubscriptionResult.cc new file mode 100644 index 000000000..ee4ff708c --- /dev/null +++ b/dyplsapi/src/model/UpdateSubscriptionResult.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; + +UpdateSubscriptionResult::UpdateSubscriptionResult() : + ServiceResult() +{} + +UpdateSubscriptionResult::UpdateSubscriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSubscriptionResult::~UpdateSubscriptionResult() +{} + +void UpdateSubscriptionResult::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 UpdateSubscriptionResult::getMessage()const +{ + return message_; +} + +std::string UpdateSubscriptionResult::getCode()const +{ + return code_; +} +