OPENANALYTICS SDK Auto Released By shenshi,Version:1.34.31

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-15 15:50:09 +08:00
parent e0174350ec
commit 7f97b2de78
43 changed files with 3799 additions and 2 deletions

View File

@@ -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}
)

View File

@@ -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 <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#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<Error, Model::SetAllowIPResult> SetAllowIPOutcome;
typedef std::future<SetAllowIPOutcome> SetAllowIPOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::SetAllowIPRequest&, const SetAllowIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAllowIPAsyncHandler;
typedef Outcome<Error, Model::GetRegionStatusResult> GetRegionStatusOutcome;
typedef std::future<GetRegionStatusOutcome> GetRegionStatusOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::GetRegionStatusRequest&, const GetRegionStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRegionStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionListResult> DescribeRegionListOutcome;
typedef std::future<DescribeRegionListOutcome> DescribeRegionListOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::DescribeRegionListRequest&, const DescribeRegionListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionListAsyncHandler;
typedef Outcome<Error, Model::OpenProductAccountResult> OpenProductAccountOutcome;
typedef std::future<OpenProductAccountOutcome> OpenProductAccountOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::OpenProductAccountRequest&, const OpenProductAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenProductAccountAsyncHandler;
typedef Outcome<Error, Model::CloseProductAccountResult> CloseProductAccountOutcome;
typedef std::future<CloseProductAccountOutcome> CloseProductAccountOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::CloseProductAccountRequest&, const CloseProductAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseProductAccountAsyncHandler;
typedef Outcome<Error, Model::GetEndPointByDomainResult> GetEndPointByDomainOutcome;
typedef std::future<GetEndPointByDomainOutcome> GetEndPointByDomainOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::GetEndPointByDomainRequest&, const GetEndPointByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEndPointByDomainAsyncHandler;
typedef Outcome<Error, Model::GetAllowIPResult> GetAllowIPOutcome;
typedef std::future<GetAllowIPOutcome> GetAllowIPOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::GetAllowIPRequest&, const GetAllowIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAllowIPAsyncHandler;
typedef Outcome<Error, Model::GetProductStatusResult> GetProductStatusOutcome;
typedef std::future<GetProductStatusOutcome> GetProductStatusOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::GetProductStatusRequest&, const GetProductStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProductStatusAsyncHandler;
typedef Outcome<Error, Model::QueryEndPointListResult> QueryEndPointListOutcome;
typedef std::future<QueryEndPointListOutcome> QueryEndPointListOutcomeCallable;
typedef std::function<void(const OpenanalyticsClient*, const Model::QueryEndPointListRequest&, const QueryEndPointListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEndPointListAsyncHandler;
OpenanalyticsClient(const Credentials &credentials, const ClientConfiguration &configuration);
OpenanalyticsClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
QueryEndPointListOutcomeCallable queryEndPointListCallable(const Model::QueryEndPointListRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_OPENANALYTICS_OPENANALYTICSCLIENT_H_

View File

@@ -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 <alibabacloud/core/Global.h>
#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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTREQUEST_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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<RegionListItem> getRegionList()const;
std::string getRegionId()const;
protected:
void parse(const std::string &payload);
private:
std::vector<RegionListItem> regionList_;
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_DESCRIBEREGIONLISTRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPRESULT_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETALLOWIPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSRESULT_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETPRODUCTSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSRESULT_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_GETREGIONSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTRESULT_H_
#define ALIBABACLOUD_OPENANALYTICS_MODEL_OPENPRODUCTACCOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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<EndPointListItem> getEndPointList()const;
std::string getRegionId()const;
protected:
void parse(const std::string &payload);
private:
std::vector<EndPointListItem> endPointList_;
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OPENANALYTICS_MODEL_QUERYENDPOINTLISTRESULT_H_

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/openanalytics/OpenanalyticsExport.h>
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_

View File

@@ -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 <alibabacloud/openanalytics/OpenanalyticsClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
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<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "openanalytics");
}
OpenanalyticsClient::OpenanalyticsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(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<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(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<const AsyncCallerContext>& 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<std::packaged_task<SetAllowIPOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<GetRegionStatusOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeRegionListOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<OpenProductAccountOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<CloseProductAccountOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<GetEndPointByDomainOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<GetAllowIPOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<GetProductStatusOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<QueryEndPointListOutcome()>>(
[this, request]()
{
return this->queryEndPointList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -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 <alibabacloud/openanalytics/model/CloseProductAccountRequest.h>
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);
}

View File

@@ -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 <alibabacloud/openanalytics/model/CloseProductAccountResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/DescribeRegionListRequest.h>
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);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/openanalytics/model/DescribeRegionListResult.h>
#include <json/json.h>
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::RegionListItem> DescribeRegionListResult::getRegionList()const
{
return regionList_;
}
std::string DescribeRegionListResult::getRegionId()const
{
return regionId_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetAllowIPRequest.h>
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);
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetAllowIPResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetEndPointByDomainRequest.h>
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);
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetEndPointByDomainResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetProductStatusRequest.h>
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);
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetProductStatusResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetRegionStatusRequest.h>
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));
}

View File

@@ -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 <alibabacloud/openanalytics/model/GetRegionStatusResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/OpenProductAccountRequest.h>
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);
}

View File

@@ -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 <alibabacloud/openanalytics/model/OpenProductAccountResult.h>
#include <json/json.h>
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_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/QueryEndPointListRequest.h>
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));
}

View File

@@ -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 <alibabacloud/openanalytics/model/QueryEndPointListResult.h>
#include <json/json.h>
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::EndPointListItem> QueryEndPointListResult::getEndPointList()const
{
return endPointList_;
}
std::string QueryEndPointListResult::getRegionId()const
{
return regionId_;
}

View File

@@ -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 <alibabacloud/openanalytics/model/SetAllowIPRequest.h>
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));
}

View File

@@ -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 <alibabacloud/openanalytics/model/SetAllowIPResult.h>
#include <json/json.h>
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_;
}