diff --git a/CHANGELOG b/CHANGELOG index 042bb129b..80db82608 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-15 Version: 1.34.31 +1, Update Dependency + 2019-03-15 Version: 1.34.30 1, Update Dependency diff --git a/CMakeLists.txt b/CMakeLists.txt index d4afcbc4f..0db2dc7d1 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,4 +100,5 @@ add_subdirectory(sts) add_subdirectory(gpdb) add_subdirectory(sas-api) add_subdirectory(cr) -add_subdirectory(finmall) \ No newline at end of file +add_subdirectory(finmall) +add_subdirectory(openanalytics) \ No newline at end of file diff --git a/VERSION b/VERSION index d9db82960..4837c97d3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.30 \ No newline at end of file +1.34.31 \ No newline at end of file diff --git a/openanalytics/CMakeLists.txt b/openanalytics/CMakeLists.txt new file mode 100644 index 000000000..b95d75a17 --- /dev/null +++ b/openanalytics/CMakeLists.txt @@ -0,0 +1,118 @@ +# +# 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(openanalytics_public_header + include/alibabacloud/openanalytics/OpenanalyticsClient.h + include/alibabacloud/openanalytics/OpenanalyticsExport.h ) + +set(openanalytics_public_header_model + include/alibabacloud/openanalytics/model/SetAllowIPRequest.h + include/alibabacloud/openanalytics/model/SetAllowIPResult.h + include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h + include/alibabacloud/openanalytics/model/GetRegionStatusResult.h + include/alibabacloud/openanalytics/model/DescribeRegionListRequest.h + include/alibabacloud/openanalytics/model/DescribeRegionListResult.h + include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h + include/alibabacloud/openanalytics/model/OpenProductAccountResult.h + include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h + include/alibabacloud/openanalytics/model/CloseProductAccountResult.h + include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h + include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h + include/alibabacloud/openanalytics/model/GetAllowIPRequest.h + include/alibabacloud/openanalytics/model/GetAllowIPResult.h + include/alibabacloud/openanalytics/model/GetProductStatusRequest.h + include/alibabacloud/openanalytics/model/GetProductStatusResult.h + include/alibabacloud/openanalytics/model/QueryEndPointListRequest.h + include/alibabacloud/openanalytics/model/QueryEndPointListResult.h ) + +set(openanalytics_src + src/OpenanalyticsClient.cc + src/model/SetAllowIPRequest.cc + src/model/SetAllowIPResult.cc + src/model/GetRegionStatusRequest.cc + src/model/GetRegionStatusResult.cc + src/model/DescribeRegionListRequest.cc + src/model/DescribeRegionListResult.cc + src/model/OpenProductAccountRequest.cc + src/model/OpenProductAccountResult.cc + src/model/CloseProductAccountRequest.cc + src/model/CloseProductAccountResult.cc + src/model/GetEndPointByDomainRequest.cc + src/model/GetEndPointByDomainResult.cc + src/model/GetAllowIPRequest.cc + src/model/GetAllowIPResult.cc + src/model/GetProductStatusRequest.cc + src/model/GetProductStatusResult.cc + src/model/QueryEndPointListRequest.cc + src/model/QueryEndPointListResult.cc ) + +add_library(openanalytics ${LIB_TYPE} + ${openanalytics_public_header} + ${openanalytics_public_header_model} + ${openanalytics_src}) + +set_target_properties(openanalytics + 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}openanalytics + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(openanalytics + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_OPENANALYTICS_LIBRARY) +endif() + +target_include_directories(openanalytics + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(openanalytics + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(openanalytics + jsoncpp) + target_include_directories(openanalytics + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(openanalytics + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(openanalytics + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(openanalytics + PRIVATE /usr/include/jsoncpp) + target_link_libraries(openanalytics + jsoncpp) +endif() + +install(FILES ${openanalytics_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/openanalytics) +install(FILES ${openanalytics_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/openanalytics/model) +install(TARGETS openanalytics + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h new file mode 100644 index 000000000..66d527218 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsClient.h @@ -0,0 +1,118 @@ +/* + * 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_OPENANALYTICS_OPENANALYTICSCLIENT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPENANALYTICSCLIENT_H_ + +#include +#include +#include +#include +#include "OpenanalyticsExport.h" +#include "model/SetAllowIPRequest.h" +#include "model/SetAllowIPResult.h" +#include "model/GetRegionStatusRequest.h" +#include "model/GetRegionStatusResult.h" +#include "model/DescribeRegionListRequest.h" +#include "model/DescribeRegionListResult.h" +#include "model/OpenProductAccountRequest.h" +#include "model/OpenProductAccountResult.h" +#include "model/CloseProductAccountRequest.h" +#include "model/CloseProductAccountResult.h" +#include "model/GetEndPointByDomainRequest.h" +#include "model/GetEndPointByDomainResult.h" +#include "model/GetAllowIPRequest.h" +#include "model/GetAllowIPResult.h" +#include "model/GetProductStatusRequest.h" +#include "model/GetProductStatusResult.h" +#include "model/QueryEndPointListRequest.h" +#include "model/QueryEndPointListResult.h" + + +namespace AlibabaCloud +{ + namespace Openanalytics + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT OpenanalyticsClient : public RpcServiceClient + { + public: + typedef Outcome SetAllowIPOutcome; + typedef std::future SetAllowIPOutcomeCallable; + typedef std::function&)> SetAllowIPAsyncHandler; + typedef Outcome GetRegionStatusOutcome; + typedef std::future GetRegionStatusOutcomeCallable; + typedef std::function&)> GetRegionStatusAsyncHandler; + typedef Outcome DescribeRegionListOutcome; + typedef std::future DescribeRegionListOutcomeCallable; + typedef std::function&)> DescribeRegionListAsyncHandler; + typedef Outcome OpenProductAccountOutcome; + typedef std::future OpenProductAccountOutcomeCallable; + typedef std::function&)> OpenProductAccountAsyncHandler; + typedef Outcome CloseProductAccountOutcome; + typedef std::future CloseProductAccountOutcomeCallable; + typedef std::function&)> CloseProductAccountAsyncHandler; + typedef Outcome GetEndPointByDomainOutcome; + typedef std::future GetEndPointByDomainOutcomeCallable; + typedef std::function&)> GetEndPointByDomainAsyncHandler; + typedef Outcome GetAllowIPOutcome; + typedef std::future GetAllowIPOutcomeCallable; + typedef std::function&)> GetAllowIPAsyncHandler; + typedef Outcome GetProductStatusOutcome; + typedef std::future GetProductStatusOutcomeCallable; + typedef std::function&)> GetProductStatusAsyncHandler; + typedef Outcome QueryEndPointListOutcome; + typedef std::future QueryEndPointListOutcomeCallable; + typedef std::function&)> QueryEndPointListAsyncHandler; + + OpenanalyticsClient(const Credentials &credentials, const ClientConfiguration &configuration); + OpenanalyticsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + OpenanalyticsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~OpenanalyticsClient(); + SetAllowIPOutcome setAllowIP(const Model::SetAllowIPRequest &request)const; + void setAllowIPAsync(const Model::SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAllowIPOutcomeCallable setAllowIPCallable(const Model::SetAllowIPRequest& request) const; + GetRegionStatusOutcome getRegionStatus(const Model::GetRegionStatusRequest &request)const; + void getRegionStatusAsync(const Model::GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRegionStatusOutcomeCallable getRegionStatusCallable(const Model::GetRegionStatusRequest& request) const; + DescribeRegionListOutcome describeRegionList(const Model::DescribeRegionListRequest &request)const; + void describeRegionListAsync(const Model::DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionListOutcomeCallable describeRegionListCallable(const Model::DescribeRegionListRequest& request) const; + OpenProductAccountOutcome openProductAccount(const Model::OpenProductAccountRequest &request)const; + void openProductAccountAsync(const Model::OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenProductAccountOutcomeCallable openProductAccountCallable(const Model::OpenProductAccountRequest& request) const; + CloseProductAccountOutcome closeProductAccount(const Model::CloseProductAccountRequest &request)const; + void closeProductAccountAsync(const Model::CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseProductAccountOutcomeCallable closeProductAccountCallable(const Model::CloseProductAccountRequest& request) const; + GetEndPointByDomainOutcome getEndPointByDomain(const Model::GetEndPointByDomainRequest &request)const; + void getEndPointByDomainAsync(const Model::GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEndPointByDomainOutcomeCallable getEndPointByDomainCallable(const Model::GetEndPointByDomainRequest& request) const; + GetAllowIPOutcome getAllowIP(const Model::GetAllowIPRequest &request)const; + void getAllowIPAsync(const Model::GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAllowIPOutcomeCallable getAllowIPCallable(const Model::GetAllowIPRequest& request) const; + GetProductStatusOutcome getProductStatus(const Model::GetProductStatusRequest &request)const; + void getProductStatusAsync(const Model::GetProductStatusRequest& request, const GetProductStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProductStatusOutcomeCallable getProductStatusCallable(const Model::GetProductStatusRequest& request) const; + QueryEndPointListOutcome queryEndPointList(const Model::QueryEndPointListRequest &request)const; + void queryEndPointListAsync(const Model::QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryEndPointListOutcomeCallable queryEndPointListCallable(const Model::QueryEndPointListRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_OPENANALYTICS_OPENANALYTICSCLIENT_H_ diff --git a/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsExport.h b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsExport.h new file mode 100644 index 000000000..cdd095753 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/OpenanalyticsExport.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_OPENANALYTICS_OPENANALYTICSEXPORT_H_ +#define ALIBABACLOUD_OPENANALYTICS_OPENANALYTICSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_OPENANALYTICS_LIBRARY) +# define ALIBABACLOUD_OPENANALYTICS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_OPENANALYTICS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_OPENANALYTICS_EXPORT +#endif + +#endif // !ALIBABACLOUD_OPENANALYTICS_OPENANALYTICSEXPORT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h new file mode 100644 index 000000000..f979e1a98 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountRequest.h @@ -0,0 +1,84 @@ +/* + * 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_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT CloseProductAccountRequest : public RpcServiceRequest + { + + public: + CloseProductAccountRequest(); + ~CloseProductAccountRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + std::string getProductAccessKey()const; + void setProductAccessKey(const std::string& productAccessKey); + std::string getTargetUid()const; + void setTargetUid(const std::string& targetUid); + std::string getTargetArnRole()const; + void setTargetArnRole(const std::string& targetArnRole); + + private: + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerUid_; + std::string productCode_; + std::string productAccessKey_; + std::string targetUid_; + std::string targetArnRole_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountResult.h b/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountResult.h new file mode 100644 index 000000000..09446b31e --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/CloseProductAccountResult.h @@ -0,0 +1,51 @@ +/* + * 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_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT CloseProductAccountResult : public ServiceResult + { + public: + + + CloseProductAccountResult(); + explicit CloseProductAccountResult(const std::string &payload); + ~CloseProductAccountResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_CLOSEPRODUCTACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListRequest.h new file mode 100644 index 000000000..29fb0a9ac --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListRequest.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_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT DescribeRegionListRequest : public RpcServiceRequest + { + + public: + DescribeRegionListRequest(); + ~DescribeRegionListRequest(); + + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + bool security_transport_; + std::string requestId_; + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + long callerUid_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListResult.h b/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListResult.h new file mode 100644 index 000000000..bb9a757f9 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/DescribeRegionListResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT DescribeRegionListResult : public ServiceResult + { + public: + struct RegionListItem + { + std::string regionID; + }; + + + DescribeRegionListResult(); + explicit DescribeRegionListResult(const std::string &payload); + ~DescribeRegionListResult(); + std::vector getRegionList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regionList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPRequest.h new file mode 100644 index 000000000..9cf3a3c32 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetAllowIPRequest : public RpcServiceRequest + { + + public: + GetAllowIPRequest(); + ~GetAllowIPRequest(); + + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getUserID()const; + void setUserID(long userID); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + + private: + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + long callerUid_; + std::string accessKeyId_; + long userID_; + std::string networkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPResult.h b/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPResult.h new file mode 100644 index 000000000..435fa38b8 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetAllowIPResult.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_OPENANALYTICS_MODEL_GETALLOWIPRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetAllowIPResult : public ServiceResult + { + public: + + + GetAllowIPResult(); + explicit GetAllowIPResult(const std::string &payload); + ~GetAllowIPResult(); + std::string getAllowIP()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string allowIP_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h new file mode 100644 index 000000000..3f4da41f8 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetEndPointByDomainRequest : public RpcServiceRequest + { + + public: + GetEndPointByDomainRequest(); + ~GetEndPointByDomainRequest(); + + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getUserID()const; + void setUserID(long userID); + std::string getDomainURL()const; + void setDomainURL(const std::string& domainURL); + + private: + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + long callerUid_; + std::string accessKeyId_; + long userID_; + std::string domainURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h b/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.h new file mode 100644 index 000000000..041a669aa --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetEndPointByDomainResult.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_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetEndPointByDomainResult : public ServiceResult + { + public: + struct EndPointInfo + { + std::string endPointID; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string networkType; + std::string zone; + std::string allowIP; + std::string port; + std::string host; + std::string cloudInstanceID; + }; + + + GetEndPointByDomainResult(); + explicit GetEndPointByDomainResult(const std::string &payload); + ~GetEndPointByDomainResult(); + EndPointInfo getEndPointInfo()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + EndPointInfo endPointInfo_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETENDPOINTBYDOMAINRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusRequest.h new file mode 100644 index 000000000..814dc15b4 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusRequest.h @@ -0,0 +1,84 @@ +/* + * 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_OPENANALYTICS_MODEL_GETPRODUCTSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetProductStatusRequest : public RpcServiceRequest + { + + public: + GetProductStatusRequest(); + ~GetProductStatusRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + std::string getProductAccessKey()const; + void setProductAccessKey(const std::string& productAccessKey); + std::string getTargetUid()const; + void setTargetUid(const std::string& targetUid); + std::string getTargetArnRole()const; + void setTargetArnRole(const std::string& targetArnRole); + + private: + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerUid_; + std::string productCode_; + std::string productAccessKey_; + std::string targetUid_; + std::string targetArnRole_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusResult.h b/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusResult.h new file mode 100644 index 000000000..cb0520289 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetProductStatusResult.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_OPENANALYTICS_MODEL_GETPRODUCTSTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetProductStatusResult : public ServiceResult + { + public: + + + GetProductStatusResult(); + explicit GetProductStatusResult(const std::string &payload); + ~GetProductStatusResult(); + std::string getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h new file mode 100644 index 000000000..38bb7a68b --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusRequest.h @@ -0,0 +1,75 @@ +/* + * 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_OPENANALYTICS_MODEL_GETREGIONSTATUSREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetRegionStatusRequest : public RpcServiceRequest + { + + public: + GetRegionStatusRequest(); + ~GetRegionStatusRequest(); + + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getTargetUid()const; + void setTargetUid(long targetUid); + + private: + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + long callerUid_; + std::string accessKeyId_; + long targetUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusResult.h b/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusResult.h new file mode 100644 index 000000000..e513ae350 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/GetRegionStatusResult.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_OPENANALYTICS_MODEL_GETREGIONSTATUSRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT GetRegionStatusResult : public ServiceResult + { + public: + + + GetRegionStatusResult(); + explicit GetRegionStatusResult(const std::string &payload); + ~GetRegionStatusResult(); + std::string getStatus()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h new file mode 100644 index 000000000..d7a824175 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountRequest.h @@ -0,0 +1,84 @@ +/* + * 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_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT OpenProductAccountRequest : public RpcServiceRequest + { + + public: + OpenProductAccountRequest(); + ~OpenProductAccountRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getProductCode()const; + void setProductCode(const std::string& productCode); + std::string getProductAccessKey()const; + void setProductAccessKey(const std::string& productAccessKey); + std::string getTargetUid()const; + void setTargetUid(const std::string& targetUid); + std::string getTargetArnRole()const; + void setTargetArnRole(const std::string& targetArnRole); + + private: + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerUid_; + std::string productCode_; + std::string productAccessKey_; + std::string targetUid_; + std::string targetArnRole_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountResult.h b/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountResult.h new file mode 100644 index 000000000..940f150ad --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/OpenProductAccountResult.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_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT OpenProductAccountResult : public ServiceResult + { + public: + + + OpenProductAccountResult(); + explicit OpenProductAccountResult(const std::string &payload); + ~OpenProductAccountResult(); + std::string getData()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string data_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListRequest.h new file mode 100644 index 000000000..71eaecf57 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListRequest.h @@ -0,0 +1,75 @@ +/* + * 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_OPENANALYTICS_MODEL_QUERYENDPOINTLISTREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_QUERYENDPOINTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT QueryEndPointListRequest : public RpcServiceRequest + { + + public: + QueryEndPointListRequest(); + ~QueryEndPointListRequest(); + + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + long getUserID()const; + void setUserID(long userID); + + private: + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + long callerUid_; + std::string accessKeyId_; + long userID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_QUERYENDPOINTLISTREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListResult.h b/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListResult.h new file mode 100644 index 000000000..e3ff6e7e8 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/QueryEndPointListResult.h @@ -0,0 +1,67 @@ +/* + * 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_OPENANALYTICS_MODEL_QUERYENDPOINTLISTRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_QUERYENDPOINTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT QueryEndPointListResult : public ServiceResult + { + public: + struct EndPointListItem + { + std::string endPointID; + std::string status; + std::string vSwitch; + std::string domainURL; + std::string vpcID; + std::string zone; + std::string networkType; + std::string allowIP; + std::string port; + std::string host; + std::string cloudInstanceID; + }; + + + QueryEndPointListResult(); + explicit QueryEndPointListResult(const std::string &payload); + ~QueryEndPointListResult(); + std::vector getEndPointList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector endPointList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_QUERYENDPOINTLISTRESULT_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPRequest.h b/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPRequest.h new file mode 100644 index 000000000..0c51bed15 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPRequest.h @@ -0,0 +1,84 @@ +/* + * 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_OPENANALYTICS_MODEL_SETALLOWIPREQUEST_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_SETALLOWIPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT SetAllowIPRequest : public RpcServiceRequest + { + + public: + SetAllowIPRequest(); + ~SetAllowIPRequest(); + + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + long getCallerBid()const; + void setCallerBid(long callerBid); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRegionID()const; + void setRegionID(const std::string& regionID); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + long getCallerUid()const; + void setCallerUid(long callerUid); + long getUserID()const; + void setUserID(long userID); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getAllowIP()const; + void setAllowIP(const std::string& allowIP); + bool getAppend()const; + void setAppend(bool append); + + private: + long callerParentId_; + long callerBid_; + std::string callerType_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string regionID_; + std::string requestId_; + long callerUid_; + long userID_; + std::string networkType_; + std::string allowIP_; + bool append_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_SETALLOWIPREQUEST_H_ \ No newline at end of file diff --git a/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPResult.h b/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPResult.h new file mode 100644 index 000000000..a527120b5 --- /dev/null +++ b/openanalytics/include/alibabacloud/openanalytics/model/SetAllowIPResult.h @@ -0,0 +1,51 @@ +/* + * 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_OPENANALYTICS_MODEL_SETALLOWIPRESULT_H_ +#define ALIBABACLOUD_OPENANALYTICS_MODEL_SETALLOWIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Openanalytics + { + namespace Model + { + class ALIBABACLOUD_OPENANALYTICS_EXPORT SetAllowIPResult : public ServiceResult + { + public: + + + SetAllowIPResult(); + explicit SetAllowIPResult(const std::string &payload); + ~SetAllowIPResult(); + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_SETALLOWIPRESULT_H_ \ No newline at end of file diff --git a/openanalytics/src/OpenanalyticsClient.cc b/openanalytics/src/OpenanalyticsClient.cc new file mode 100644 index 000000000..7514d07d1 --- /dev/null +++ b/openanalytics/src/OpenanalyticsClient.cc @@ -0,0 +1,377 @@ +/* + * 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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +namespace +{ + const std::string SERVICE_NAME = "openanalytics"; +} + +OpenanalyticsClient::OpenanalyticsClient(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, "openanalytics"); +} + +OpenanalyticsClient::OpenanalyticsClient(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, "openanalytics"); +} + +OpenanalyticsClient::OpenanalyticsClient(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, "openanalytics"); +} + +OpenanalyticsClient::~OpenanalyticsClient() +{} + +OpenanalyticsClient::SetAllowIPOutcome OpenanalyticsClient::setAllowIP(const SetAllowIPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAllowIPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAllowIPOutcome(SetAllowIPResult(outcome.result())); + else + return SetAllowIPOutcome(outcome.error()); +} + +void OpenanalyticsClient::setAllowIPAsync(const SetAllowIPRequest& request, const SetAllowIPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAllowIP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::SetAllowIPOutcomeCallable OpenanalyticsClient::setAllowIPCallable(const SetAllowIPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAllowIP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::GetRegionStatusOutcome OpenanalyticsClient::getRegionStatus(const GetRegionStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRegionStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRegionStatusOutcome(GetRegionStatusResult(outcome.result())); + else + return GetRegionStatusOutcome(outcome.error()); +} + +void OpenanalyticsClient::getRegionStatusAsync(const GetRegionStatusRequest& request, const GetRegionStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRegionStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::GetRegionStatusOutcomeCallable OpenanalyticsClient::getRegionStatusCallable(const GetRegionStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRegionStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::DescribeRegionListOutcome OpenanalyticsClient::describeRegionList(const DescribeRegionListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionListOutcome(DescribeRegionListResult(outcome.result())); + else + return DescribeRegionListOutcome(outcome.error()); +} + +void OpenanalyticsClient::describeRegionListAsync(const DescribeRegionListRequest& request, const DescribeRegionListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegionList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::DescribeRegionListOutcomeCallable OpenanalyticsClient::describeRegionListCallable(const DescribeRegionListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegionList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::OpenProductAccountOutcome OpenanalyticsClient::openProductAccount(const OpenProductAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenProductAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenProductAccountOutcome(OpenProductAccountResult(outcome.result())); + else + return OpenProductAccountOutcome(outcome.error()); +} + +void OpenanalyticsClient::openProductAccountAsync(const OpenProductAccountRequest& request, const OpenProductAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openProductAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::OpenProductAccountOutcomeCallable OpenanalyticsClient::openProductAccountCallable(const OpenProductAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openProductAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::CloseProductAccountOutcome OpenanalyticsClient::closeProductAccount(const CloseProductAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseProductAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseProductAccountOutcome(CloseProductAccountResult(outcome.result())); + else + return CloseProductAccountOutcome(outcome.error()); +} + +void OpenanalyticsClient::closeProductAccountAsync(const CloseProductAccountRequest& request, const CloseProductAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeProductAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::CloseProductAccountOutcomeCallable OpenanalyticsClient::closeProductAccountCallable(const CloseProductAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeProductAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::GetEndPointByDomainOutcome OpenanalyticsClient::getEndPointByDomain(const GetEndPointByDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEndPointByDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEndPointByDomainOutcome(GetEndPointByDomainResult(outcome.result())); + else + return GetEndPointByDomainOutcome(outcome.error()); +} + +void OpenanalyticsClient::getEndPointByDomainAsync(const GetEndPointByDomainRequest& request, const GetEndPointByDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEndPointByDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::GetEndPointByDomainOutcomeCallable OpenanalyticsClient::getEndPointByDomainCallable(const GetEndPointByDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEndPointByDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::GetAllowIPOutcome OpenanalyticsClient::getAllowIP(const GetAllowIPRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAllowIPOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAllowIPOutcome(GetAllowIPResult(outcome.result())); + else + return GetAllowIPOutcome(outcome.error()); +} + +void OpenanalyticsClient::getAllowIPAsync(const GetAllowIPRequest& request, const GetAllowIPAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAllowIP(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::GetAllowIPOutcomeCallable OpenanalyticsClient::getAllowIPCallable(const GetAllowIPRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAllowIP(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::GetProductStatusOutcome OpenanalyticsClient::getProductStatus(const GetProductStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProductStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProductStatusOutcome(GetProductStatusResult(outcome.result())); + else + return GetProductStatusOutcome(outcome.error()); +} + +void OpenanalyticsClient::getProductStatusAsync(const GetProductStatusRequest& request, const GetProductStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProductStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::GetProductStatusOutcomeCallable OpenanalyticsClient::getProductStatusCallable(const GetProductStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProductStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OpenanalyticsClient::QueryEndPointListOutcome OpenanalyticsClient::queryEndPointList(const QueryEndPointListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryEndPointListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryEndPointListOutcome(QueryEndPointListResult(outcome.result())); + else + return QueryEndPointListOutcome(outcome.error()); +} + +void OpenanalyticsClient::queryEndPointListAsync(const QueryEndPointListRequest& request, const QueryEndPointListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryEndPointList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OpenanalyticsClient::QueryEndPointListOutcomeCallable OpenanalyticsClient::queryEndPointListCallable(const QueryEndPointListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryEndPointList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/openanalytics/src/model/CloseProductAccountRequest.cc b/openanalytics/src/model/CloseProductAccountRequest.cc new file mode 100644 index 000000000..e44dff214 --- /dev/null +++ b/openanalytics/src/model/CloseProductAccountRequest.cc @@ -0,0 +1,170 @@ +/* + * 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::Openanalytics::Model::CloseProductAccountRequest; + +CloseProductAccountRequest::CloseProductAccountRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "CloseProductAccount") +{} + +CloseProductAccountRequest::~CloseProductAccountRequest() +{} + +long CloseProductAccountRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CloseProductAccountRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long CloseProductAccountRequest::getCallerBid()const +{ + return callerBid_; +} + +void CloseProductAccountRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string CloseProductAccountRequest::getCallerType()const +{ + return callerType_; +} + +void CloseProductAccountRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool CloseProductAccountRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CloseProductAccountRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string CloseProductAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CloseProductAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool CloseProductAccountRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CloseProductAccountRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CloseProductAccountRequest::getRegionID()const +{ + return regionID_; +} + +void CloseProductAccountRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string CloseProductAccountRequest::getRequestId()const +{ + return requestId_; +} + +void CloseProductAccountRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long CloseProductAccountRequest::getCallerUid()const +{ + return callerUid_; +} + +void CloseProductAccountRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CloseProductAccountRequest::getProductCode()const +{ + return productCode_; +} + +void CloseProductAccountRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setParameter("ProductCode", productCode); +} + +std::string CloseProductAccountRequest::getProductAccessKey()const +{ + return productAccessKey_; +} + +void CloseProductAccountRequest::setProductAccessKey(const std::string& productAccessKey) +{ + productAccessKey_ = productAccessKey; + setParameter("ProductAccessKey", productAccessKey); +} + +std::string CloseProductAccountRequest::getTargetUid()const +{ + return targetUid_; +} + +void CloseProductAccountRequest::setTargetUid(const std::string& targetUid) +{ + targetUid_ = targetUid; + setParameter("TargetUid", targetUid); +} + +std::string CloseProductAccountRequest::getTargetArnRole()const +{ + return targetArnRole_; +} + +void CloseProductAccountRequest::setTargetArnRole(const std::string& targetArnRole) +{ + targetArnRole_ = targetArnRole; + setParameter("TargetArnRole", targetArnRole); +} + diff --git a/openanalytics/src/model/CloseProductAccountResult.cc b/openanalytics/src/model/CloseProductAccountResult.cc new file mode 100644 index 000000000..14f553b94 --- /dev/null +++ b/openanalytics/src/model/CloseProductAccountResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +CloseProductAccountResult::CloseProductAccountResult() : + ServiceResult() +{} + +CloseProductAccountResult::CloseProductAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseProductAccountResult::~CloseProductAccountResult() +{} + +void CloseProductAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string CloseProductAccountResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/DescribeRegionListRequest.cc b/openanalytics/src/model/DescribeRegionListRequest.cc new file mode 100644 index 000000000..3128cda18 --- /dev/null +++ b/openanalytics/src/model/DescribeRegionListRequest.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::Openanalytics::Model::DescribeRegionListRequest; + +DescribeRegionListRequest::DescribeRegionListRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "DescribeRegionList") +{} + +DescribeRegionListRequest::~DescribeRegionListRequest() +{} + +bool DescribeRegionListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeRegionListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeRegionListRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeRegionListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long DescribeRegionListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeRegionListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long DescribeRegionListRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeRegionListRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string DescribeRegionListRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeRegionListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool DescribeRegionListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeRegionListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +long DescribeRegionListRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeRegionListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeRegionListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/openanalytics/src/model/DescribeRegionListResult.cc b/openanalytics/src/model/DescribeRegionListResult.cc new file mode 100644 index 000000000..b83b89cda --- /dev/null +++ b/openanalytics/src/model/DescribeRegionListResult.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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +DescribeRegionListResult::DescribeRegionListResult() : + ServiceResult() +{} + +DescribeRegionListResult::DescribeRegionListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionListResult::~DescribeRegionListResult() +{} + +void DescribeRegionListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegionList = value["RegionList"]["RegionListItem"]; + for (auto value : allRegionList) + { + RegionListItem regionListObject; + if(!value["regionID"].isNull()) + regionListObject.regionID = value["regionID"].asString(); + regionList_.push_back(regionListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector DescribeRegionListResult::getRegionList()const +{ + return regionList_; +} + +std::string DescribeRegionListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/GetAllowIPRequest.cc b/openanalytics/src/model/GetAllowIPRequest.cc new file mode 100644 index 000000000..ec812cdba --- /dev/null +++ b/openanalytics/src/model/GetAllowIPRequest.cc @@ -0,0 +1,148 @@ +/* + * 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::Openanalytics::Model::GetAllowIPRequest; + +GetAllowIPRequest::GetAllowIPRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "GetAllowIP") +{} + +GetAllowIPRequest::~GetAllowIPRequest() +{} + +bool GetAllowIPRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetAllowIPRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetAllowIPRequest::getRegionID()const +{ + return regionID_; +} + +void GetAllowIPRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string GetAllowIPRequest::getRequestId()const +{ + return requestId_; +} + +void GetAllowIPRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long GetAllowIPRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetAllowIPRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long GetAllowIPRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetAllowIPRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string GetAllowIPRequest::getCallerType()const +{ + return callerType_; +} + +void GetAllowIPRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetAllowIPRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +long GetAllowIPRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetAllowIPRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetAllowIPRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long GetAllowIPRequest::getUserID()const +{ + return userID_; +} + +void GetAllowIPRequest::setUserID(long userID) +{ + userID_ = userID; + setParameter("UserID", std::to_string(userID)); +} + +std::string GetAllowIPRequest::getNetworkType()const +{ + return networkType_; +} + +void GetAllowIPRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + diff --git a/openanalytics/src/model/GetAllowIPResult.cc b/openanalytics/src/model/GetAllowIPResult.cc new file mode 100644 index 000000000..083d6c37f --- /dev/null +++ b/openanalytics/src/model/GetAllowIPResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +GetAllowIPResult::GetAllowIPResult() : + ServiceResult() +{} + +GetAllowIPResult::GetAllowIPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAllowIPResult::~GetAllowIPResult() +{} + +void GetAllowIPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["AllowIP"].isNull()) + allowIP_ = value["AllowIP"].asString(); + +} + +std::string GetAllowIPResult::getAllowIP()const +{ + return allowIP_; +} + +std::string GetAllowIPResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/GetEndPointByDomainRequest.cc b/openanalytics/src/model/GetEndPointByDomainRequest.cc new file mode 100644 index 000000000..685297e81 --- /dev/null +++ b/openanalytics/src/model/GetEndPointByDomainRequest.cc @@ -0,0 +1,148 @@ +/* + * 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::Openanalytics::Model::GetEndPointByDomainRequest; + +GetEndPointByDomainRequest::GetEndPointByDomainRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "GetEndPointByDomain") +{} + +GetEndPointByDomainRequest::~GetEndPointByDomainRequest() +{} + +bool GetEndPointByDomainRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetEndPointByDomainRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetEndPointByDomainRequest::getRegionID()const +{ + return regionID_; +} + +void GetEndPointByDomainRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string GetEndPointByDomainRequest::getRequestId()const +{ + return requestId_; +} + +void GetEndPointByDomainRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long GetEndPointByDomainRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetEndPointByDomainRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long GetEndPointByDomainRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetEndPointByDomainRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string GetEndPointByDomainRequest::getCallerType()const +{ + return callerType_; +} + +void GetEndPointByDomainRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetEndPointByDomainRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetEndPointByDomainRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +long GetEndPointByDomainRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetEndPointByDomainRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetEndPointByDomainRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetEndPointByDomainRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long GetEndPointByDomainRequest::getUserID()const +{ + return userID_; +} + +void GetEndPointByDomainRequest::setUserID(long userID) +{ + userID_ = userID; + setParameter("UserID", std::to_string(userID)); +} + +std::string GetEndPointByDomainRequest::getDomainURL()const +{ + return domainURL_; +} + +void GetEndPointByDomainRequest::setDomainURL(const std::string& domainURL) +{ + domainURL_ = domainURL; + setParameter("DomainURL", domainURL); +} + diff --git a/openanalytics/src/model/GetEndPointByDomainResult.cc b/openanalytics/src/model/GetEndPointByDomainResult.cc new file mode 100644 index 000000000..3880c8a0d --- /dev/null +++ b/openanalytics/src/model/GetEndPointByDomainResult.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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +GetEndPointByDomainResult::GetEndPointByDomainResult() : + ServiceResult() +{} + +GetEndPointByDomainResult::GetEndPointByDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEndPointByDomainResult::~GetEndPointByDomainResult() +{} + +void GetEndPointByDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto endPointInfoNode = value["EndPointInfo"]; + if(!endPointInfoNode["endPointID"].isNull()) + endPointInfo_.endPointID = endPointInfoNode["endPointID"].asString(); + if(!endPointInfoNode["domainURL"].isNull()) + endPointInfo_.domainURL = endPointInfoNode["domainURL"].asString(); + if(!endPointInfoNode["host"].isNull()) + endPointInfo_.host = endPointInfoNode["host"].asString(); + if(!endPointInfoNode["port"].isNull()) + endPointInfo_.port = endPointInfoNode["port"].asString(); + if(!endPointInfoNode["networkType"].isNull()) + endPointInfo_.networkType = endPointInfoNode["networkType"].asString(); + if(!endPointInfoNode["vpcID"].isNull()) + endPointInfo_.vpcID = endPointInfoNode["vpcID"].asString(); + if(!endPointInfoNode["vSwitch"].isNull()) + endPointInfo_.vSwitch = endPointInfoNode["vSwitch"].asString(); + if(!endPointInfoNode["zone"].isNull()) + endPointInfo_.zone = endPointInfoNode["zone"].asString(); + if(!endPointInfoNode["allowIP"].isNull()) + endPointInfo_.allowIP = endPointInfoNode["allowIP"].asString(); + if(!endPointInfoNode["cloudInstanceID"].isNull()) + endPointInfo_.cloudInstanceID = endPointInfoNode["cloudInstanceID"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +GetEndPointByDomainResult::EndPointInfo GetEndPointByDomainResult::getEndPointInfo()const +{ + return endPointInfo_; +} + +std::string GetEndPointByDomainResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/GetProductStatusRequest.cc b/openanalytics/src/model/GetProductStatusRequest.cc new file mode 100644 index 000000000..9b65ba587 --- /dev/null +++ b/openanalytics/src/model/GetProductStatusRequest.cc @@ -0,0 +1,170 @@ +/* + * 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::Openanalytics::Model::GetProductStatusRequest; + +GetProductStatusRequest::GetProductStatusRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "GetProductStatus") +{} + +GetProductStatusRequest::~GetProductStatusRequest() +{} + +long GetProductStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetProductStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long GetProductStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetProductStatusRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string GetProductStatusRequest::getCallerType()const +{ + return callerType_; +} + +void GetProductStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetProductStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetProductStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string GetProductStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetProductStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool GetProductStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetProductStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetProductStatusRequest::getRegionID()const +{ + return regionID_; +} + +void GetProductStatusRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string GetProductStatusRequest::getRequestId()const +{ + return requestId_; +} + +void GetProductStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long GetProductStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetProductStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetProductStatusRequest::getProductCode()const +{ + return productCode_; +} + +void GetProductStatusRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setParameter("ProductCode", productCode); +} + +std::string GetProductStatusRequest::getProductAccessKey()const +{ + return productAccessKey_; +} + +void GetProductStatusRequest::setProductAccessKey(const std::string& productAccessKey) +{ + productAccessKey_ = productAccessKey; + setParameter("ProductAccessKey", productAccessKey); +} + +std::string GetProductStatusRequest::getTargetUid()const +{ + return targetUid_; +} + +void GetProductStatusRequest::setTargetUid(const std::string& targetUid) +{ + targetUid_ = targetUid; + setParameter("TargetUid", targetUid); +} + +std::string GetProductStatusRequest::getTargetArnRole()const +{ + return targetArnRole_; +} + +void GetProductStatusRequest::setTargetArnRole(const std::string& targetArnRole) +{ + targetArnRole_ = targetArnRole; + setParameter("TargetArnRole", targetArnRole); +} + diff --git a/openanalytics/src/model/GetProductStatusResult.cc b/openanalytics/src/model/GetProductStatusResult.cc new file mode 100644 index 000000000..022bf947d --- /dev/null +++ b/openanalytics/src/model/GetProductStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +GetProductStatusResult::GetProductStatusResult() : + ServiceResult() +{} + +GetProductStatusResult::GetProductStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProductStatusResult::~GetProductStatusResult() +{} + +void GetProductStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string GetProductStatusResult::getData()const +{ + return data_; +} + +std::string GetProductStatusResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/GetRegionStatusRequest.cc b/openanalytics/src/model/GetRegionStatusRequest.cc new file mode 100644 index 000000000..036311cd2 --- /dev/null +++ b/openanalytics/src/model/GetRegionStatusRequest.cc @@ -0,0 +1,137 @@ +/* + * 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::Openanalytics::Model::GetRegionStatusRequest; + +GetRegionStatusRequest::GetRegionStatusRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "GetRegionStatus") +{} + +GetRegionStatusRequest::~GetRegionStatusRequest() +{} + +bool GetRegionStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void GetRegionStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string GetRegionStatusRequest::getRegionID()const +{ + return regionID_; +} + +void GetRegionStatusRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string GetRegionStatusRequest::getRequestId()const +{ + return requestId_; +} + +void GetRegionStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long GetRegionStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void GetRegionStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long GetRegionStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void GetRegionStatusRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string GetRegionStatusRequest::getCallerType()const +{ + return callerType_; +} + +void GetRegionStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool GetRegionStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void GetRegionStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +long GetRegionStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void GetRegionStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string GetRegionStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetRegionStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long GetRegionStatusRequest::getTargetUid()const +{ + return targetUid_; +} + +void GetRegionStatusRequest::setTargetUid(long targetUid) +{ + targetUid_ = targetUid; + setParameter("TargetUid", std::to_string(targetUid)); +} + diff --git a/openanalytics/src/model/GetRegionStatusResult.cc b/openanalytics/src/model/GetRegionStatusResult.cc new file mode 100644 index 000000000..45df2cc8f --- /dev/null +++ b/openanalytics/src/model/GetRegionStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +GetRegionStatusResult::GetRegionStatusResult() : + ServiceResult() +{} + +GetRegionStatusResult::GetRegionStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRegionStatusResult::~GetRegionStatusResult() +{} + +void GetRegionStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetRegionStatusResult::getStatus()const +{ + return status_; +} + +std::string GetRegionStatusResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/OpenProductAccountRequest.cc b/openanalytics/src/model/OpenProductAccountRequest.cc new file mode 100644 index 000000000..f3b121f2f --- /dev/null +++ b/openanalytics/src/model/OpenProductAccountRequest.cc @@ -0,0 +1,170 @@ +/* + * 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::Openanalytics::Model::OpenProductAccountRequest; + +OpenProductAccountRequest::OpenProductAccountRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "OpenProductAccount") +{} + +OpenProductAccountRequest::~OpenProductAccountRequest() +{} + +long OpenProductAccountRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void OpenProductAccountRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long OpenProductAccountRequest::getCallerBid()const +{ + return callerBid_; +} + +void OpenProductAccountRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string OpenProductAccountRequest::getCallerType()const +{ + return callerType_; +} + +void OpenProductAccountRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool OpenProductAccountRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void OpenProductAccountRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string OpenProductAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void OpenProductAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool OpenProductAccountRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void OpenProductAccountRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string OpenProductAccountRequest::getRegionID()const +{ + return regionID_; +} + +void OpenProductAccountRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string OpenProductAccountRequest::getRequestId()const +{ + return requestId_; +} + +void OpenProductAccountRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long OpenProductAccountRequest::getCallerUid()const +{ + return callerUid_; +} + +void OpenProductAccountRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string OpenProductAccountRequest::getProductCode()const +{ + return productCode_; +} + +void OpenProductAccountRequest::setProductCode(const std::string& productCode) +{ + productCode_ = productCode; + setParameter("ProductCode", productCode); +} + +std::string OpenProductAccountRequest::getProductAccessKey()const +{ + return productAccessKey_; +} + +void OpenProductAccountRequest::setProductAccessKey(const std::string& productAccessKey) +{ + productAccessKey_ = productAccessKey; + setParameter("ProductAccessKey", productAccessKey); +} + +std::string OpenProductAccountRequest::getTargetUid()const +{ + return targetUid_; +} + +void OpenProductAccountRequest::setTargetUid(const std::string& targetUid) +{ + targetUid_ = targetUid; + setParameter("TargetUid", targetUid); +} + +std::string OpenProductAccountRequest::getTargetArnRole()const +{ + return targetArnRole_; +} + +void OpenProductAccountRequest::setTargetArnRole(const std::string& targetArnRole) +{ + targetArnRole_ = targetArnRole; + setParameter("TargetArnRole", targetArnRole); +} + diff --git a/openanalytics/src/model/OpenProductAccountResult.cc b/openanalytics/src/model/OpenProductAccountResult.cc new file mode 100644 index 000000000..46320289d --- /dev/null +++ b/openanalytics/src/model/OpenProductAccountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +OpenProductAccountResult::OpenProductAccountResult() : + ServiceResult() +{} + +OpenProductAccountResult::OpenProductAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenProductAccountResult::~OpenProductAccountResult() +{} + +void OpenProductAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string OpenProductAccountResult::getData()const +{ + return data_; +} + +std::string OpenProductAccountResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/QueryEndPointListRequest.cc b/openanalytics/src/model/QueryEndPointListRequest.cc new file mode 100644 index 000000000..86737f1a7 --- /dev/null +++ b/openanalytics/src/model/QueryEndPointListRequest.cc @@ -0,0 +1,137 @@ +/* + * 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::Openanalytics::Model::QueryEndPointListRequest; + +QueryEndPointListRequest::QueryEndPointListRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "QueryEndPointList") +{} + +QueryEndPointListRequest::~QueryEndPointListRequest() +{} + +bool QueryEndPointListRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void QueryEndPointListRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string QueryEndPointListRequest::getRegionID()const +{ + return regionID_; +} + +void QueryEndPointListRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string QueryEndPointListRequest::getRequestId()const +{ + return requestId_; +} + +void QueryEndPointListRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long QueryEndPointListRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void QueryEndPointListRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long QueryEndPointListRequest::getCallerBid()const +{ + return callerBid_; +} + +void QueryEndPointListRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string QueryEndPointListRequest::getCallerType()const +{ + return callerType_; +} + +void QueryEndPointListRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool QueryEndPointListRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void QueryEndPointListRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +long QueryEndPointListRequest::getCallerUid()const +{ + return callerUid_; +} + +void QueryEndPointListRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string QueryEndPointListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void QueryEndPointListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +long QueryEndPointListRequest::getUserID()const +{ + return userID_; +} + +void QueryEndPointListRequest::setUserID(long userID) +{ + userID_ = userID; + setParameter("UserID", std::to_string(userID)); +} + diff --git a/openanalytics/src/model/QueryEndPointListResult.cc b/openanalytics/src/model/QueryEndPointListResult.cc new file mode 100644 index 000000000..93d5f11c9 --- /dev/null +++ b/openanalytics/src/model/QueryEndPointListResult.cc @@ -0,0 +1,85 @@ +/* + * 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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +QueryEndPointListResult::QueryEndPointListResult() : + ServiceResult() +{} + +QueryEndPointListResult::QueryEndPointListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryEndPointListResult::~QueryEndPointListResult() +{} + +void QueryEndPointListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEndPointList = value["EndPointList"]["EndPointListItem"]; + for (auto value : allEndPointList) + { + EndPointListItem endPointListObject; + if(!value["endPointID"].isNull()) + endPointListObject.endPointID = value["endPointID"].asString(); + if(!value["zone"].isNull()) + endPointListObject.zone = value["zone"].asString(); + if(!value["vSwitch"].isNull()) + endPointListObject.vSwitch = value["vSwitch"].asString(); + if(!value["status"].isNull()) + endPointListObject.status = value["status"].asString(); + if(!value["vpcID"].isNull()) + endPointListObject.vpcID = value["vpcID"].asString(); + if(!value["host"].isNull()) + endPointListObject.host = value["host"].asString(); + if(!value["domainURL"].isNull()) + endPointListObject.domainURL = value["domainURL"].asString(); + if(!value["networkType"].isNull()) + endPointListObject.networkType = value["networkType"].asString(); + if(!value["allowIP"].isNull()) + endPointListObject.allowIP = value["allowIP"].asString(); + if(!value["port"].isNull()) + endPointListObject.port = value["port"].asString(); + if(!value["cloudInstanceID"].isNull()) + endPointListObject.cloudInstanceID = value["cloudInstanceID"].asString(); + endPointList_.push_back(endPointListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector QueryEndPointListResult::getEndPointList()const +{ + return endPointList_; +} + +std::string QueryEndPointListResult::getRegionId()const +{ + return regionId_; +} + diff --git a/openanalytics/src/model/SetAllowIPRequest.cc b/openanalytics/src/model/SetAllowIPRequest.cc new file mode 100644 index 000000000..77e6f814d --- /dev/null +++ b/openanalytics/src/model/SetAllowIPRequest.cc @@ -0,0 +1,170 @@ +/* + * 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::Openanalytics::Model::SetAllowIPRequest; + +SetAllowIPRequest::SetAllowIPRequest() : + RpcServiceRequest("openanalytics", "2018-03-01", "SetAllowIP") +{} + +SetAllowIPRequest::~SetAllowIPRequest() +{} + +long SetAllowIPRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void SetAllowIPRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +long SetAllowIPRequest::getCallerBid()const +{ + return callerBid_; +} + +void SetAllowIPRequest::setCallerBid(long callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", std::to_string(callerBid)); +} + +std::string SetAllowIPRequest::getCallerType()const +{ + return callerType_; +} + +void SetAllowIPRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool SetAllowIPRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void SetAllowIPRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string SetAllowIPRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SetAllowIPRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool SetAllowIPRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void SetAllowIPRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string SetAllowIPRequest::getRegionID()const +{ + return regionID_; +} + +void SetAllowIPRequest::setRegionID(const std::string& regionID) +{ + regionID_ = regionID; + setParameter("RegionID", regionID); +} + +std::string SetAllowIPRequest::getRequestId()const +{ + return requestId_; +} + +void SetAllowIPRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +long SetAllowIPRequest::getCallerUid()const +{ + return callerUid_; +} + +void SetAllowIPRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +long SetAllowIPRequest::getUserID()const +{ + return userID_; +} + +void SetAllowIPRequest::setUserID(long userID) +{ + userID_ = userID; + setParameter("UserID", std::to_string(userID)); +} + +std::string SetAllowIPRequest::getNetworkType()const +{ + return networkType_; +} + +void SetAllowIPRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +std::string SetAllowIPRequest::getAllowIP()const +{ + return allowIP_; +} + +void SetAllowIPRequest::setAllowIP(const std::string& allowIP) +{ + allowIP_ = allowIP; + setParameter("AllowIP", allowIP); +} + +bool SetAllowIPRequest::getAppend()const +{ + return append_; +} + +void SetAllowIPRequest::setAppend(bool append) +{ + append_ = append; + setParameter("Append", std::to_string(append)); +} + diff --git a/openanalytics/src/model/SetAllowIPResult.cc b/openanalytics/src/model/SetAllowIPResult.cc new file mode 100644 index 000000000..50ac4e25e --- /dev/null +++ b/openanalytics/src/model/SetAllowIPResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Openanalytics; +using namespace AlibabaCloud::Openanalytics::Model; + +SetAllowIPResult::SetAllowIPResult() : + ServiceResult() +{} + +SetAllowIPResult::SetAllowIPResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAllowIPResult::~SetAllowIPResult() +{} + +void SetAllowIPResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::string SetAllowIPResult::getRegionId()const +{ + return regionId_; +} +