Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d5cbb556b | ||
|
|
32f06474af | ||
|
|
9117549b3d | ||
|
|
4c070ae8ee | ||
|
|
8eb39b6f8f | ||
|
|
ff2fa8f66f | ||
|
|
a6256086a8 | ||
|
|
9e756213fa | ||
|
|
87f2db5065 | ||
|
|
8bc596cc81 | ||
|
|
dacb1c69b7 | ||
|
|
4c89122ae8 | ||
|
|
b333d4f03c | ||
|
|
b1d844c587 | ||
|
|
383f1e0cd3 | ||
|
|
6d41511442 | ||
|
|
d3de3f8736 | ||
|
|
02c620b5a5 | ||
|
|
459c875c7d | ||
|
|
3d5f029c8a |
74
CHANGELOG
74
CHANGELOG
@@ -1,3 +1,77 @@
|
||||
2018-06-27 Version: 1.17.10
|
||||
1, DescribeNetworkInterfaces support query with vpcId
|
||||
|
||||
2018-06-22 Version: 1.17.9
|
||||
1, rtc openapi
|
||||
|
||||
|
||||
2018-06-21 Version: 1.17.8
|
||||
1, This is add InstanceList.
|
||||
|
||||
2018-06-20 Version: 1.17.7
|
||||
1, Add InstanceList in product security information query.
|
||||
|
||||
2018-06-20 Version: 1.17.6
|
||||
1, Add InstanceList in product security information query.
|
||||
|
||||
2018-06-14 Version: 1.17.5
|
||||
1, Add passwordInherit.
|
||||
|
||||
2018-06-13 Version: 1.17.4
|
||||
1, Add API AddCasterEpisodeGroupContent,CreateCaster.
|
||||
2, Add Parameter fillMode for AddCasterLayout,ModifyCasterLayout.
|
||||
3, Add return value fillMode DescribeCasterLayouts.
|
||||
4, Update ErrorCode for StartCaster,StartCasterScene,DescribeCasters,CopyCaster.
|
||||
5, Update ErrorCode for ModifyCasterLayout,DeleteCasterLayout,DeleteLiveAppRecordConfig.
|
||||
6, Update ForbidLiveStream,DescribeLiveStreamsPublishList,DescribeLiveStreamsOnlineList.
|
||||
|
||||
2018-06-13 Version: 1.17.3
|
||||
1, Add lifecycleHook.
|
||||
|
||||
2018-06-08 Version: 1.17.2
|
||||
1, Add scdn interface,support scdn.
|
||||
|
||||
2018-06-06 Version: 1.17.1
|
||||
1, Change the type of srcUid to int.
|
||||
|
||||
2018-06-06 Version: 1.17.0
|
||||
1, Add interface DescribePhoneInfo, DescribeDdosDefenseInfo, DescribeRiskListDetail, DescribePunishList.
|
||||
|
||||
2018-05-29 Version: 1.16.0
|
||||
1, Add new interface DescribePhoneInfo to SDK.
|
||||
|
||||
2018-05-28 Version: 1.15.0
|
||||
1, Add face 1-N,1-1 scan interface.
|
||||
|
||||
2018-05-28 Version: 1.14.0
|
||||
1, ValidateSecurityGroup API
|
||||
|
||||
2018-05-28 Version: 1.13.0
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-05-23 Version: 1.12.0
|
||||
1, Add CreateDrdsAccount API, to support creating account for all databases of a DRDS instance.
|
||||
|
||||
2018-05-23 Version: 1.11.0
|
||||
1, Update API version to 2018-04-12.
|
||||
2, New APIs in this new version: StartCluster, StopCluster, RecoverCluster, StartNodes, StopNodes, ListCustomImages. Support stopping a post-paid cluster or partial nodes of a cluster to save cost.
|
||||
3, New parameters for CreateCluster API: EcsChargeType. Support creating a pre-paid cluster.
|
||||
4, New parameters for CreateCluster API: DeploymentMode. Support creating a cluster with fewer manager nodes.
|
||||
|
||||
2018-05-23 Version: 1.10.3
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2018-05-22 Version: 1.10.2
|
||||
1, add DescribeMigrateTasks,DescribeOssDownloads,CheckRecoveryConditions.
|
||||
2, modify DescribeDBInstanceAttribute.
|
||||
|
||||
2018-05-17 Version: 1.10.1
|
||||
1, Supporting ethnicGroup and idCardStartDate fields in GetMaterials api
|
||||
|
||||
2018-05-17 Version: 1.10.0
|
||||
1, the first version of private dns SDK
|
||||
|
||||
|
||||
@@ -71,4 +71,11 @@ add_subdirectory(domain)
|
||||
add_subdirectory(green)
|
||||
add_subdirectory(hsm)
|
||||
add_subdirectory(dcdn)
|
||||
add_subdirectory(pvtz)
|
||||
add_subdirectory(pvtz)
|
||||
add_subdirectory(cloudauth)
|
||||
add_subdirectory(dyvmsapi)
|
||||
add_subdirectory(drds)
|
||||
add_subdirectory(jarvis)
|
||||
add_subdirectory(scdn)
|
||||
add_subdirectory(live)
|
||||
add_subdirectory(rtc)
|
||||
102
cloudauth/CMakeLists.txt
Normal file
102
cloudauth/CMakeLists.txt
Normal file
@@ -0,0 +1,102 @@
|
||||
#
|
||||
# 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(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthClient.h
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusResult.h )
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetVerifyTokenRequest.cc
|
||||
src/model/GetVerifyTokenResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
src/model/SubmitMaterialsResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
src/model/GetStatusResult.cc )
|
||||
|
||||
add_library(cloudauth ${LIB_TYPE}
|
||||
${cloudauth_public_header}
|
||||
${cloudauth_public_header_model}
|
||||
${cloudauth_src})
|
||||
|
||||
set_target_properties(cloudauth
|
||||
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}cloudauth
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth)
|
||||
install(FILES ${cloudauth_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model)
|
||||
install(TARGETS cloudauth
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
86
cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h
Normal file
86
cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
#include "model/GetMaterialsResult.h"
|
||||
#include "model/GetVerifyTokenRequest.h"
|
||||
#include "model/GetVerifyTokenResult.h"
|
||||
#include "model/CompareFacesRequest.h"
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/SubmitMaterialsRequest.h"
|
||||
#include "model/SubmitMaterialsResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
#include "model/GetStatusResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
|
||||
|
||||
CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
32
cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h
Normal file
32
cloudauth/include/alibabacloud/cloudauth/CloudauthExport.h
Normal 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_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFacesRequest();
|
||||
~CompareFacesRequest();
|
||||
|
||||
std::string getSourceImageType()const;
|
||||
void setSourceImageType(const std::string& sourceImageType);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTargetImageType()const;
|
||||
void setTargetImageType(const std::string& targetImageType);
|
||||
std::string getSourceImageValue()const;
|
||||
void setSourceImageValue(const std::string& sourceImageValue);
|
||||
std::string getTargetImageValue()const;
|
||||
void setTargetImageValue(const std::string& targetImageValue);
|
||||
|
||||
private:
|
||||
std::string sourceImageType_;
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::string targetImageType_;
|
||||
std::string sourceImageValue_;
|
||||
std::string targetImageValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string confidenceThresholds;
|
||||
float similarityScore;
|
||||
};
|
||||
|
||||
|
||||
CompareFacesResult();
|
||||
explicit CompareFacesResult(const std::string &payload);
|
||||
~CompareFacesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string facePic;
|
||||
std::string identificationNumber;
|
||||
std::string idCardStartDate;
|
||||
std::string address;
|
||||
std::string idCardFrontPic;
|
||||
std::string ethnicGroup;
|
||||
std::string sex;
|
||||
std::string idCardExpiry;
|
||||
std::string idCardType;
|
||||
std::string idCardBackPic;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
std::string getUserData()const;
|
||||
void setUserData(const std::string& userData);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBinding()const;
|
||||
void setBinding(const std::string& binding);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string userData_;
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string binding_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyToken
|
||||
{
|
||||
std::string token;
|
||||
int durationSeconds;
|
||||
};
|
||||
struct StsToken
|
||||
{
|
||||
std::string path;
|
||||
std::string bucketName;
|
||||
std::string accessKeyId;
|
||||
std::string accessKeySecret;
|
||||
std::string expiration;
|
||||
std::string token;
|
||||
std::string endPoint;
|
||||
};
|
||||
StsToken stsToken;
|
||||
VerifyToken verifyToken;
|
||||
};
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::vector<Material> getMaterial()const;
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getVerifyToken()const;
|
||||
void setVerifyToken(const std::string& verifyToken);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string verifyToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
{
|
||||
float trustedScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
233
cloudauth/src/CloudauthClient.cc
Normal file
233
cloudauth/src/CloudauthClient.cc
Normal file
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* 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/cloudauth/CloudauthClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth";
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(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, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFacesOutcome(CompareFacesResult(outcome.result()));
|
||||
else
|
||||
return CompareFacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
93
cloudauth/src/model/CompareFacesRequest.cc
Normal file
93
cloudauth/src/model/CompareFacesRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-05-04", "CompareFaces")
|
||||
{}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageType()const
|
||||
{
|
||||
return sourceImageType_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
|
||||
{
|
||||
sourceImageType_ = sourceImageType;
|
||||
setParameter("SourceImageType", sourceImageType);
|
||||
}
|
||||
|
||||
long CompareFacesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageValue()const
|
||||
{
|
||||
return sourceImageValue_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
|
||||
{
|
||||
sourceImageValue_ = sourceImageValue;
|
||||
setParameter("SourceImageValue", sourceImageValue);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageValue()const
|
||||
{
|
||||
return targetImageValue_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
|
||||
{
|
||||
targetImageValue_ = targetImageValue;
|
||||
setParameter("TargetImageValue", targetImageValue);
|
||||
}
|
||||
|
||||
76
cloudauth/src/model/CompareFacesResult.cc
Normal file
76
cloudauth/src/model/CompareFacesResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/cloudauth/model/CompareFacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFacesResult::CompareFacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFacesResult::CompareFacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFacesResult::~CompareFacesResult()
|
||||
{}
|
||||
|
||||
void CompareFacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["SimilarityScore"].isNull())
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
if(!dataNode["ConfidenceThresholds"].isNull())
|
||||
data_.confidenceThresholds = dataNode["ConfidenceThresholds"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CompareFacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CompareFacesResult::Data CompareFacesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CompareFacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CompareFacesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
cloudauth/src/model/GetMaterialsRequest.cc
Normal file
71
cloudauth/src/model/GetMaterialsRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/cloudauth/model/GetMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetMaterialsRequest;
|
||||
|
||||
GetMaterialsRequest::GetMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-05-04", "GetMaterials")
|
||||
{}
|
||||
|
||||
GetMaterialsRequest::~GetMaterialsRequest()
|
||||
{}
|
||||
|
||||
long GetMaterialsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
94
cloudauth/src/model/GetMaterialsResult.cc
Normal file
94
cloudauth/src/model/GetMaterialsResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/cloudauth/model/GetMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMaterialsResult::~GetMaterialsResult()
|
||||
{}
|
||||
|
||||
void GetMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["IdentificationNumber"].isNull())
|
||||
data_.identificationNumber = dataNode["IdentificationNumber"].asString();
|
||||
if(!dataNode["IdCardType"].isNull())
|
||||
data_.idCardType = dataNode["IdCardType"].asString();
|
||||
if(!dataNode["IdCardStartDate"].isNull())
|
||||
data_.idCardStartDate = dataNode["IdCardStartDate"].asString();
|
||||
if(!dataNode["IdCardExpiry"].isNull())
|
||||
data_.idCardExpiry = dataNode["IdCardExpiry"].asString();
|
||||
if(!dataNode["Address"].isNull())
|
||||
data_.address = dataNode["Address"].asString();
|
||||
if(!dataNode["Sex"].isNull())
|
||||
data_.sex = dataNode["Sex"].asString();
|
||||
if(!dataNode["IdCardFrontPic"].isNull())
|
||||
data_.idCardFrontPic = dataNode["IdCardFrontPic"].asString();
|
||||
if(!dataNode["IdCardBackPic"].isNull())
|
||||
data_.idCardBackPic = dataNode["IdCardBackPic"].asString();
|
||||
if(!dataNode["FacePic"].isNull())
|
||||
data_.facePic = dataNode["FacePic"].asString();
|
||||
if(!dataNode["EthnicGroup"].isNull())
|
||||
data_.ethnicGroup = dataNode["EthnicGroup"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMaterialsResult::Data GetMaterialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
cloudauth/src/model/GetStatusRequest.cc
Normal file
71
cloudauth/src/model/GetStatusRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/cloudauth/model/GetStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetStatusRequest;
|
||||
|
||||
GetStatusRequest::GetStatusRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-05-04", "GetStatus")
|
||||
{}
|
||||
|
||||
GetStatusRequest::~GetStatusRequest()
|
||||
{}
|
||||
|
||||
long GetStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
80
cloudauth/src/model/GetStatusResult.cc
Normal file
80
cloudauth/src/model/GetStatusResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/cloudauth/model/GetStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetStatusResult::GetStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStatusResult::GetStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStatusResult::~GetStatusResult()
|
||||
{}
|
||||
|
||||
void GetStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["StatusCode"].isNull())
|
||||
data_.statusCode = std::stoi(dataNode["StatusCode"].asString());
|
||||
if(!dataNode["TrustedScore"].isNull())
|
||||
data_.trustedScore = std::stof(dataNode["TrustedScore"].asString());
|
||||
if(!dataNode["SimilarityScore"].isNull())
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
if(!dataNode["AuditConclusions"].isNull())
|
||||
data_.auditConclusions = dataNode["AuditConclusions"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetStatusResult::Data GetStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
93
cloudauth/src/model/GetVerifyTokenRequest.cc
Normal file
93
cloudauth/src/model/GetVerifyTokenRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetVerifyTokenRequest;
|
||||
|
||||
GetVerifyTokenRequest::GetVerifyTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-05-04", "GetVerifyToken")
|
||||
{}
|
||||
|
||||
GetVerifyTokenRequest::~GetVerifyTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetVerifyTokenRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
}
|
||||
|
||||
long GetVerifyTokenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBinding()const
|
||||
{
|
||||
return binding_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setBinding(const std::string& binding)
|
||||
{
|
||||
binding_ = binding;
|
||||
setParameter("Binding", binding);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
92
cloudauth/src/model/GetVerifyTokenResult.cc
Normal file
92
cloudauth/src/model/GetVerifyTokenResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/cloudauth/model/GetVerifyTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::~GetVerifyTokenResult()
|
||||
{}
|
||||
|
||||
void GetVerifyTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyTokenNode = dataNode["VerifyToken"];
|
||||
if(!verifyTokenNode["Token"].isNull())
|
||||
data_.verifyToken.token = verifyTokenNode["Token"].asString();
|
||||
if(!verifyTokenNode["DurationSeconds"].isNull())
|
||||
data_.verifyToken.durationSeconds = std::stoi(verifyTokenNode["DurationSeconds"].asString());
|
||||
auto stsTokenNode = dataNode["StsToken"];
|
||||
if(!stsTokenNode["AccessKeyId"].isNull())
|
||||
data_.stsToken.accessKeyId = stsTokenNode["AccessKeyId"].asString();
|
||||
if(!stsTokenNode["AccessKeySecret"].isNull())
|
||||
data_.stsToken.accessKeySecret = stsTokenNode["AccessKeySecret"].asString();
|
||||
if(!stsTokenNode["Expiration"].isNull())
|
||||
data_.stsToken.expiration = stsTokenNode["Expiration"].asString();
|
||||
if(!stsTokenNode["EndPoint"].isNull())
|
||||
data_.stsToken.endPoint = stsTokenNode["EndPoint"].asString();
|
||||
if(!stsTokenNode["BucketName"].isNull())
|
||||
data_.stsToken.bucketName = stsTokenNode["BucketName"].asString();
|
||||
if(!stsTokenNode["Path"].isNull())
|
||||
data_.stsToken.path = stsTokenNode["Path"].asString();
|
||||
if(!stsTokenNode["Token"].isNull())
|
||||
data_.stsToken.token = stsTokenNode["Token"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::Data GetVerifyTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetVerifyTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
77
cloudauth/src/model/SubmitMaterialsRequest.cc
Normal file
77
cloudauth/src/model/SubmitMaterialsRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/cloudauth/model/SubmitMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitMaterialsRequest;
|
||||
|
||||
SubmitMaterialsRequest::SubmitMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-05-04", "SubmitMaterials")
|
||||
{}
|
||||
|
||||
SubmitMaterialsRequest::~SubmitMaterialsRequest()
|
||||
{}
|
||||
|
||||
long SubmitMaterialsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<SubmitMaterialsRequest::Material> SubmitMaterialsRequest::getMaterial()const
|
||||
{
|
||||
return material_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setMaterial(const std::vector<Material>& material)
|
||||
{
|
||||
material_ = material;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= material.size(); i++) {
|
||||
auto obj = material.at(i);
|
||||
std::string str ="Material."+ std::to_string(i);
|
||||
setParameter(str + ".MaterialType", obj.materialType);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsRequest::getVerifyToken()const
|
||||
{
|
||||
return verifyToken_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setVerifyToken(const std::string& verifyToken)
|
||||
{
|
||||
verifyToken_ = verifyToken;
|
||||
setParameter("VerifyToken", verifyToken);
|
||||
}
|
||||
|
||||
79
cloudauth/src/model/SubmitMaterialsResult.cc
Normal file
79
cloudauth/src/model/SubmitMaterialsResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/cloudauth/model/SubmitMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::~SubmitMaterialsResult()
|
||||
{}
|
||||
|
||||
void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
|
||||
if(!verifyStatusNode["TrustedScore"].isNull())
|
||||
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
|
||||
if(!verifyStatusNode["SimilarityScore"].isNull())
|
||||
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::Data SubmitMaterialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubmitMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
190
drds/CMakeLists.txt
Normal file
190
drds/CMakeLists.txt
Normal file
@@ -0,0 +1,190 @@
|
||||
#
|
||||
# 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(drds_public_header
|
||||
include/alibabacloud/drds/DrdsClient.h
|
||||
include/alibabacloud/drds/DrdsExport.h )
|
||||
|
||||
set(drds_public_header_model
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBResult.h
|
||||
include/alibabacloud/drds/model/DeleteDrdsDBRequest.h
|
||||
include/alibabacloud/drds/model/DeleteDrdsDBResult.h
|
||||
include/alibabacloud/drds/model/CreateReadOnlyAccountRequest.h
|
||||
include/alibabacloud/drds/model/CreateReadOnlyAccountResult.h
|
||||
include/alibabacloud/drds/model/DescribeShardDBsRequest.h
|
||||
include/alibabacloud/drds/model/DescribeShardDBsResult.h
|
||||
include/alibabacloud/drds/model/RemoveDrdsInstanceRequest.h
|
||||
include/alibabacloud/drds/model/RemoveDrdsInstanceResult.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsIpWhiteListRequest.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsIpWhiteListResult.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsInstanceDescriptionRequest.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsInstanceDescriptionResult.h
|
||||
include/alibabacloud/drds/model/CreateDrdsDBRequest.h
|
||||
include/alibabacloud/drds/model/CreateDrdsDBResult.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstanceNetInfoForInnerRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstanceNetInfoForInnerResult.h
|
||||
include/alibabacloud/drds/model/CreateDrdsAccountRequest.h
|
||||
include/alibabacloud/drds/model/CreateDrdsAccountResult.h
|
||||
include/alibabacloud/drds/model/DescribeReadOnlyAccountRequest.h
|
||||
include/alibabacloud/drds/model/DescribeReadOnlyAccountResult.h
|
||||
include/alibabacloud/drds/model/ModifyRdsReadWeightRequest.h
|
||||
include/alibabacloud/drds/model/ModifyRdsReadWeightResult.h
|
||||
include/alibabacloud/drds/model/CreateDrdsInstanceRequest.h
|
||||
include/alibabacloud/drds/model/CreateDrdsInstanceResult.h
|
||||
include/alibabacloud/drds/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/drds/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBIpWhiteListRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBIpWhiteListResult.h
|
||||
include/alibabacloud/drds/model/DescribeRdsListRequest.h
|
||||
include/alibabacloud/drds/model/DescribeRdsListResult.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstancesRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstancesResult.h
|
||||
include/alibabacloud/drds/model/ModifyReadOnlyAccountPasswordRequest.h
|
||||
include/alibabacloud/drds/model/ModifyReadOnlyAccountPasswordResult.h
|
||||
include/alibabacloud/drds/model/DescribeShardDbConnectionInfoRequest.h
|
||||
include/alibabacloud/drds/model/DescribeShardDbConnectionInfoResult.h
|
||||
include/alibabacloud/drds/model/RemoveReadOnlyAccountRequest.h
|
||||
include/alibabacloud/drds/model/RemoveReadOnlyAccountResult.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsDBPasswdRequest.h
|
||||
include/alibabacloud/drds/model/ModifyDrdsDBPasswdResult.h
|
||||
include/alibabacloud/drds/model/DeleteFailedDrdsDBRequest.h
|
||||
include/alibabacloud/drds/model/DeleteFailedDrdsDBResult.h
|
||||
include/alibabacloud/drds/model/DescribeCreateDrdsInstanceStatusRequest.h
|
||||
include/alibabacloud/drds/model/DescribeCreateDrdsInstanceStatusResult.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBsRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsDBsResult.h
|
||||
include/alibabacloud/drds/model/QueryInstanceInfoByConnRequest.h
|
||||
include/alibabacloud/drds/model/QueryInstanceInfoByConnResult.h
|
||||
include/alibabacloud/drds/model/ModifyFullTableScanRequest.h
|
||||
include/alibabacloud/drds/model/ModifyFullTableScanResult.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstanceRequest.h
|
||||
include/alibabacloud/drds/model/DescribeDrdsInstanceResult.h )
|
||||
|
||||
set(drds_src
|
||||
src/DrdsClient.cc
|
||||
src/model/DescribeDrdsDBRequest.cc
|
||||
src/model/DescribeDrdsDBResult.cc
|
||||
src/model/DeleteDrdsDBRequest.cc
|
||||
src/model/DeleteDrdsDBResult.cc
|
||||
src/model/CreateReadOnlyAccountRequest.cc
|
||||
src/model/CreateReadOnlyAccountResult.cc
|
||||
src/model/DescribeShardDBsRequest.cc
|
||||
src/model/DescribeShardDBsResult.cc
|
||||
src/model/RemoveDrdsInstanceRequest.cc
|
||||
src/model/RemoveDrdsInstanceResult.cc
|
||||
src/model/ModifyDrdsIpWhiteListRequest.cc
|
||||
src/model/ModifyDrdsIpWhiteListResult.cc
|
||||
src/model/ModifyDrdsInstanceDescriptionRequest.cc
|
||||
src/model/ModifyDrdsInstanceDescriptionResult.cc
|
||||
src/model/CreateDrdsDBRequest.cc
|
||||
src/model/CreateDrdsDBResult.cc
|
||||
src/model/DescribeDrdsInstanceNetInfoForInnerRequest.cc
|
||||
src/model/DescribeDrdsInstanceNetInfoForInnerResult.cc
|
||||
src/model/CreateDrdsAccountRequest.cc
|
||||
src/model/CreateDrdsAccountResult.cc
|
||||
src/model/DescribeReadOnlyAccountRequest.cc
|
||||
src/model/DescribeReadOnlyAccountResult.cc
|
||||
src/model/ModifyRdsReadWeightRequest.cc
|
||||
src/model/ModifyRdsReadWeightResult.cc
|
||||
src/model/CreateDrdsInstanceRequest.cc
|
||||
src/model/CreateDrdsInstanceResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeDrdsDBIpWhiteListRequest.cc
|
||||
src/model/DescribeDrdsDBIpWhiteListResult.cc
|
||||
src/model/DescribeRdsListRequest.cc
|
||||
src/model/DescribeRdsListResult.cc
|
||||
src/model/DescribeDrdsInstancesRequest.cc
|
||||
src/model/DescribeDrdsInstancesResult.cc
|
||||
src/model/ModifyReadOnlyAccountPasswordRequest.cc
|
||||
src/model/ModifyReadOnlyAccountPasswordResult.cc
|
||||
src/model/DescribeShardDbConnectionInfoRequest.cc
|
||||
src/model/DescribeShardDbConnectionInfoResult.cc
|
||||
src/model/RemoveReadOnlyAccountRequest.cc
|
||||
src/model/RemoveReadOnlyAccountResult.cc
|
||||
src/model/ModifyDrdsDBPasswdRequest.cc
|
||||
src/model/ModifyDrdsDBPasswdResult.cc
|
||||
src/model/DeleteFailedDrdsDBRequest.cc
|
||||
src/model/DeleteFailedDrdsDBResult.cc
|
||||
src/model/DescribeCreateDrdsInstanceStatusRequest.cc
|
||||
src/model/DescribeCreateDrdsInstanceStatusResult.cc
|
||||
src/model/DescribeDrdsDBsRequest.cc
|
||||
src/model/DescribeDrdsDBsResult.cc
|
||||
src/model/QueryInstanceInfoByConnRequest.cc
|
||||
src/model/QueryInstanceInfoByConnResult.cc
|
||||
src/model/ModifyFullTableScanRequest.cc
|
||||
src/model/ModifyFullTableScanResult.cc
|
||||
src/model/DescribeDrdsInstanceRequest.cc
|
||||
src/model/DescribeDrdsInstanceResult.cc )
|
||||
|
||||
add_library(drds ${LIB_TYPE}
|
||||
${drds_public_header}
|
||||
${drds_public_header_model}
|
||||
${drds_src})
|
||||
|
||||
set_target_properties(drds
|
||||
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}drds
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(drds
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DRDS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(drds
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(drds
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(drds
|
||||
jsoncpp)
|
||||
target_include_directories(drds
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(drds
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(drds
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(drds
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(drds
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${drds_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/drds)
|
||||
install(FILES ${drds_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/drds/model)
|
||||
install(TARGETS drds
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
262
drds/include/alibabacloud/drds/DrdsClient.h
Normal file
262
drds/include/alibabacloud/drds/DrdsClient.h
Normal file
@@ -0,0 +1,262 @@
|
||||
/*
|
||||
* 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_DRDS_DRDSCLIENT_H_
|
||||
#define ALIBABACLOUD_DRDS_DRDSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DrdsExport.h"
|
||||
#include "model/DescribeDrdsDBRequest.h"
|
||||
#include "model/DescribeDrdsDBResult.h"
|
||||
#include "model/DeleteDrdsDBRequest.h"
|
||||
#include "model/DeleteDrdsDBResult.h"
|
||||
#include "model/CreateReadOnlyAccountRequest.h"
|
||||
#include "model/CreateReadOnlyAccountResult.h"
|
||||
#include "model/DescribeShardDBsRequest.h"
|
||||
#include "model/DescribeShardDBsResult.h"
|
||||
#include "model/RemoveDrdsInstanceRequest.h"
|
||||
#include "model/RemoveDrdsInstanceResult.h"
|
||||
#include "model/ModifyDrdsIpWhiteListRequest.h"
|
||||
#include "model/ModifyDrdsIpWhiteListResult.h"
|
||||
#include "model/ModifyDrdsInstanceDescriptionRequest.h"
|
||||
#include "model/ModifyDrdsInstanceDescriptionResult.h"
|
||||
#include "model/CreateDrdsDBRequest.h"
|
||||
#include "model/CreateDrdsDBResult.h"
|
||||
#include "model/DescribeDrdsInstanceNetInfoForInnerRequest.h"
|
||||
#include "model/DescribeDrdsInstanceNetInfoForInnerResult.h"
|
||||
#include "model/CreateDrdsAccountRequest.h"
|
||||
#include "model/CreateDrdsAccountResult.h"
|
||||
#include "model/DescribeReadOnlyAccountRequest.h"
|
||||
#include "model/DescribeReadOnlyAccountResult.h"
|
||||
#include "model/ModifyRdsReadWeightRequest.h"
|
||||
#include "model/ModifyRdsReadWeightResult.h"
|
||||
#include "model/CreateDrdsInstanceRequest.h"
|
||||
#include "model/CreateDrdsInstanceResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeDrdsDBIpWhiteListRequest.h"
|
||||
#include "model/DescribeDrdsDBIpWhiteListResult.h"
|
||||
#include "model/DescribeRdsListRequest.h"
|
||||
#include "model/DescribeRdsListResult.h"
|
||||
#include "model/DescribeDrdsInstancesRequest.h"
|
||||
#include "model/DescribeDrdsInstancesResult.h"
|
||||
#include "model/ModifyReadOnlyAccountPasswordRequest.h"
|
||||
#include "model/ModifyReadOnlyAccountPasswordResult.h"
|
||||
#include "model/DescribeShardDbConnectionInfoRequest.h"
|
||||
#include "model/DescribeShardDbConnectionInfoResult.h"
|
||||
#include "model/RemoveReadOnlyAccountRequest.h"
|
||||
#include "model/RemoveReadOnlyAccountResult.h"
|
||||
#include "model/ModifyDrdsDBPasswdRequest.h"
|
||||
#include "model/ModifyDrdsDBPasswdResult.h"
|
||||
#include "model/DeleteFailedDrdsDBRequest.h"
|
||||
#include "model/DeleteFailedDrdsDBResult.h"
|
||||
#include "model/DescribeCreateDrdsInstanceStatusRequest.h"
|
||||
#include "model/DescribeCreateDrdsInstanceStatusResult.h"
|
||||
#include "model/DescribeDrdsDBsRequest.h"
|
||||
#include "model/DescribeDrdsDBsResult.h"
|
||||
#include "model/QueryInstanceInfoByConnRequest.h"
|
||||
#include "model/QueryInstanceInfoByConnResult.h"
|
||||
#include "model/ModifyFullTableScanRequest.h"
|
||||
#include "model/ModifyFullTableScanResult.h"
|
||||
#include "model/DescribeDrdsInstanceRequest.h"
|
||||
#include "model/DescribeDrdsInstanceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DrdsClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDrdsDBResult> DescribeDrdsDBOutcome;
|
||||
typedef std::future<DescribeDrdsDBOutcome> DescribeDrdsDBOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsDBRequest&, const DescribeDrdsDBOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsDBAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDrdsDBResult> DeleteDrdsDBOutcome;
|
||||
typedef std::future<DeleteDrdsDBOutcome> DeleteDrdsDBOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DeleteDrdsDBRequest&, const DeleteDrdsDBOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDrdsDBAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateReadOnlyAccountResult> CreateReadOnlyAccountOutcome;
|
||||
typedef std::future<CreateReadOnlyAccountOutcome> CreateReadOnlyAccountOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::CreateReadOnlyAccountRequest&, const CreateReadOnlyAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateReadOnlyAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeShardDBsResult> DescribeShardDBsOutcome;
|
||||
typedef std::future<DescribeShardDBsOutcome> DescribeShardDBsOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeShardDBsRequest&, const DescribeShardDBsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeShardDBsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveDrdsInstanceResult> RemoveDrdsInstanceOutcome;
|
||||
typedef std::future<RemoveDrdsInstanceOutcome> RemoveDrdsInstanceOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::RemoveDrdsInstanceRequest&, const RemoveDrdsInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveDrdsInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDrdsIpWhiteListResult> ModifyDrdsIpWhiteListOutcome;
|
||||
typedef std::future<ModifyDrdsIpWhiteListOutcome> ModifyDrdsIpWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyDrdsIpWhiteListRequest&, const ModifyDrdsIpWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDrdsIpWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDrdsInstanceDescriptionResult> ModifyDrdsInstanceDescriptionOutcome;
|
||||
typedef std::future<ModifyDrdsInstanceDescriptionOutcome> ModifyDrdsInstanceDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyDrdsInstanceDescriptionRequest&, const ModifyDrdsInstanceDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDrdsInstanceDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDrdsDBResult> CreateDrdsDBOutcome;
|
||||
typedef std::future<CreateDrdsDBOutcome> CreateDrdsDBOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::CreateDrdsDBRequest&, const CreateDrdsDBOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDrdsDBAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDrdsInstanceNetInfoForInnerResult> DescribeDrdsInstanceNetInfoForInnerOutcome;
|
||||
typedef std::future<DescribeDrdsInstanceNetInfoForInnerOutcome> DescribeDrdsInstanceNetInfoForInnerOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsInstanceNetInfoForInnerRequest&, const DescribeDrdsInstanceNetInfoForInnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsInstanceNetInfoForInnerAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDrdsAccountResult> CreateDrdsAccountOutcome;
|
||||
typedef std::future<CreateDrdsAccountOutcome> CreateDrdsAccountOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::CreateDrdsAccountRequest&, const CreateDrdsAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDrdsAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeReadOnlyAccountResult> DescribeReadOnlyAccountOutcome;
|
||||
typedef std::future<DescribeReadOnlyAccountOutcome> DescribeReadOnlyAccountOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeReadOnlyAccountRequest&, const DescribeReadOnlyAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeReadOnlyAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyRdsReadWeightResult> ModifyRdsReadWeightOutcome;
|
||||
typedef std::future<ModifyRdsReadWeightOutcome> ModifyRdsReadWeightOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyRdsReadWeightRequest&, const ModifyRdsReadWeightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyRdsReadWeightAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDrdsInstanceResult> CreateDrdsInstanceOutcome;
|
||||
typedef std::future<CreateDrdsInstanceOutcome> CreateDrdsInstanceOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::CreateDrdsInstanceRequest&, const CreateDrdsInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDrdsInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDrdsDBIpWhiteListResult> DescribeDrdsDBIpWhiteListOutcome;
|
||||
typedef std::future<DescribeDrdsDBIpWhiteListOutcome> DescribeDrdsDBIpWhiteListOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsDBIpWhiteListRequest&, const DescribeDrdsDBIpWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsDBIpWhiteListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRdsListResult> DescribeRdsListOutcome;
|
||||
typedef std::future<DescribeRdsListOutcome> DescribeRdsListOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeRdsListRequest&, const DescribeRdsListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRdsListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDrdsInstancesResult> DescribeDrdsInstancesOutcome;
|
||||
typedef std::future<DescribeDrdsInstancesOutcome> DescribeDrdsInstancesOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsInstancesRequest&, const DescribeDrdsInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyReadOnlyAccountPasswordResult> ModifyReadOnlyAccountPasswordOutcome;
|
||||
typedef std::future<ModifyReadOnlyAccountPasswordOutcome> ModifyReadOnlyAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyReadOnlyAccountPasswordRequest&, const ModifyReadOnlyAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyReadOnlyAccountPasswordAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeShardDbConnectionInfoResult> DescribeShardDbConnectionInfoOutcome;
|
||||
typedef std::future<DescribeShardDbConnectionInfoOutcome> DescribeShardDbConnectionInfoOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeShardDbConnectionInfoRequest&, const DescribeShardDbConnectionInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeShardDbConnectionInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::RemoveReadOnlyAccountResult> RemoveReadOnlyAccountOutcome;
|
||||
typedef std::future<RemoveReadOnlyAccountOutcome> RemoveReadOnlyAccountOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::RemoveReadOnlyAccountRequest&, const RemoveReadOnlyAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveReadOnlyAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDrdsDBPasswdResult> ModifyDrdsDBPasswdOutcome;
|
||||
typedef std::future<ModifyDrdsDBPasswdOutcome> ModifyDrdsDBPasswdOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyDrdsDBPasswdRequest&, const ModifyDrdsDBPasswdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDrdsDBPasswdAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFailedDrdsDBResult> DeleteFailedDrdsDBOutcome;
|
||||
typedef std::future<DeleteFailedDrdsDBOutcome> DeleteFailedDrdsDBOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DeleteFailedDrdsDBRequest&, const DeleteFailedDrdsDBOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFailedDrdsDBAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCreateDrdsInstanceStatusResult> DescribeCreateDrdsInstanceStatusOutcome;
|
||||
typedef std::future<DescribeCreateDrdsInstanceStatusOutcome> DescribeCreateDrdsInstanceStatusOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeCreateDrdsInstanceStatusRequest&, const DescribeCreateDrdsInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCreateDrdsInstanceStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDrdsDBsResult> DescribeDrdsDBsOutcome;
|
||||
typedef std::future<DescribeDrdsDBsOutcome> DescribeDrdsDBsOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsDBsRequest&, const DescribeDrdsDBsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsDBsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInstanceInfoByConnResult> QueryInstanceInfoByConnOutcome;
|
||||
typedef std::future<QueryInstanceInfoByConnOutcome> QueryInstanceInfoByConnOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::QueryInstanceInfoByConnRequest&, const QueryInstanceInfoByConnOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceInfoByConnAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyFullTableScanResult> ModifyFullTableScanOutcome;
|
||||
typedef std::future<ModifyFullTableScanOutcome> ModifyFullTableScanOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::ModifyFullTableScanRequest&, const ModifyFullTableScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFullTableScanAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDrdsInstanceResult> DescribeDrdsInstanceOutcome;
|
||||
typedef std::future<DescribeDrdsInstanceOutcome> DescribeDrdsInstanceOutcomeCallable;
|
||||
typedef std::function<void(const DrdsClient*, const Model::DescribeDrdsInstanceRequest&, const DescribeDrdsInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDrdsInstanceAsyncHandler;
|
||||
|
||||
DrdsClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DrdsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DrdsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DrdsClient();
|
||||
DescribeDrdsDBOutcome describeDrdsDB(const Model::DescribeDrdsDBRequest &request)const;
|
||||
void describeDrdsDBAsync(const Model::DescribeDrdsDBRequest& request, const DescribeDrdsDBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsDBOutcomeCallable describeDrdsDBCallable(const Model::DescribeDrdsDBRequest& request) const;
|
||||
DeleteDrdsDBOutcome deleteDrdsDB(const Model::DeleteDrdsDBRequest &request)const;
|
||||
void deleteDrdsDBAsync(const Model::DeleteDrdsDBRequest& request, const DeleteDrdsDBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDrdsDBOutcomeCallable deleteDrdsDBCallable(const Model::DeleteDrdsDBRequest& request) const;
|
||||
CreateReadOnlyAccountOutcome createReadOnlyAccount(const Model::CreateReadOnlyAccountRequest &request)const;
|
||||
void createReadOnlyAccountAsync(const Model::CreateReadOnlyAccountRequest& request, const CreateReadOnlyAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateReadOnlyAccountOutcomeCallable createReadOnlyAccountCallable(const Model::CreateReadOnlyAccountRequest& request) const;
|
||||
DescribeShardDBsOutcome describeShardDBs(const Model::DescribeShardDBsRequest &request)const;
|
||||
void describeShardDBsAsync(const Model::DescribeShardDBsRequest& request, const DescribeShardDBsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeShardDBsOutcomeCallable describeShardDBsCallable(const Model::DescribeShardDBsRequest& request) const;
|
||||
RemoveDrdsInstanceOutcome removeDrdsInstance(const Model::RemoveDrdsInstanceRequest &request)const;
|
||||
void removeDrdsInstanceAsync(const Model::RemoveDrdsInstanceRequest& request, const RemoveDrdsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveDrdsInstanceOutcomeCallable removeDrdsInstanceCallable(const Model::RemoveDrdsInstanceRequest& request) const;
|
||||
ModifyDrdsIpWhiteListOutcome modifyDrdsIpWhiteList(const Model::ModifyDrdsIpWhiteListRequest &request)const;
|
||||
void modifyDrdsIpWhiteListAsync(const Model::ModifyDrdsIpWhiteListRequest& request, const ModifyDrdsIpWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDrdsIpWhiteListOutcomeCallable modifyDrdsIpWhiteListCallable(const Model::ModifyDrdsIpWhiteListRequest& request) const;
|
||||
ModifyDrdsInstanceDescriptionOutcome modifyDrdsInstanceDescription(const Model::ModifyDrdsInstanceDescriptionRequest &request)const;
|
||||
void modifyDrdsInstanceDescriptionAsync(const Model::ModifyDrdsInstanceDescriptionRequest& request, const ModifyDrdsInstanceDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDrdsInstanceDescriptionOutcomeCallable modifyDrdsInstanceDescriptionCallable(const Model::ModifyDrdsInstanceDescriptionRequest& request) const;
|
||||
CreateDrdsDBOutcome createDrdsDB(const Model::CreateDrdsDBRequest &request)const;
|
||||
void createDrdsDBAsync(const Model::CreateDrdsDBRequest& request, const CreateDrdsDBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDrdsDBOutcomeCallable createDrdsDBCallable(const Model::CreateDrdsDBRequest& request) const;
|
||||
DescribeDrdsInstanceNetInfoForInnerOutcome describeDrdsInstanceNetInfoForInner(const Model::DescribeDrdsInstanceNetInfoForInnerRequest &request)const;
|
||||
void describeDrdsInstanceNetInfoForInnerAsync(const Model::DescribeDrdsInstanceNetInfoForInnerRequest& request, const DescribeDrdsInstanceNetInfoForInnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsInstanceNetInfoForInnerOutcomeCallable describeDrdsInstanceNetInfoForInnerCallable(const Model::DescribeDrdsInstanceNetInfoForInnerRequest& request) const;
|
||||
CreateDrdsAccountOutcome createDrdsAccount(const Model::CreateDrdsAccountRequest &request)const;
|
||||
void createDrdsAccountAsync(const Model::CreateDrdsAccountRequest& request, const CreateDrdsAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDrdsAccountOutcomeCallable createDrdsAccountCallable(const Model::CreateDrdsAccountRequest& request) const;
|
||||
DescribeReadOnlyAccountOutcome describeReadOnlyAccount(const Model::DescribeReadOnlyAccountRequest &request)const;
|
||||
void describeReadOnlyAccountAsync(const Model::DescribeReadOnlyAccountRequest& request, const DescribeReadOnlyAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeReadOnlyAccountOutcomeCallable describeReadOnlyAccountCallable(const Model::DescribeReadOnlyAccountRequest& request) const;
|
||||
ModifyRdsReadWeightOutcome modifyRdsReadWeight(const Model::ModifyRdsReadWeightRequest &request)const;
|
||||
void modifyRdsReadWeightAsync(const Model::ModifyRdsReadWeightRequest& request, const ModifyRdsReadWeightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyRdsReadWeightOutcomeCallable modifyRdsReadWeightCallable(const Model::ModifyRdsReadWeightRequest& request) const;
|
||||
CreateDrdsInstanceOutcome createDrdsInstance(const Model::CreateDrdsInstanceRequest &request)const;
|
||||
void createDrdsInstanceAsync(const Model::CreateDrdsInstanceRequest& request, const CreateDrdsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDrdsInstanceOutcomeCallable createDrdsInstanceCallable(const Model::CreateDrdsInstanceRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeDrdsDBIpWhiteListOutcome describeDrdsDBIpWhiteList(const Model::DescribeDrdsDBIpWhiteListRequest &request)const;
|
||||
void describeDrdsDBIpWhiteListAsync(const Model::DescribeDrdsDBIpWhiteListRequest& request, const DescribeDrdsDBIpWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsDBIpWhiteListOutcomeCallable describeDrdsDBIpWhiteListCallable(const Model::DescribeDrdsDBIpWhiteListRequest& request) const;
|
||||
DescribeRdsListOutcome describeRdsList(const Model::DescribeRdsListRequest &request)const;
|
||||
void describeRdsListAsync(const Model::DescribeRdsListRequest& request, const DescribeRdsListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRdsListOutcomeCallable describeRdsListCallable(const Model::DescribeRdsListRequest& request) const;
|
||||
DescribeDrdsInstancesOutcome describeDrdsInstances(const Model::DescribeDrdsInstancesRequest &request)const;
|
||||
void describeDrdsInstancesAsync(const Model::DescribeDrdsInstancesRequest& request, const DescribeDrdsInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsInstancesOutcomeCallable describeDrdsInstancesCallable(const Model::DescribeDrdsInstancesRequest& request) const;
|
||||
ModifyReadOnlyAccountPasswordOutcome modifyReadOnlyAccountPassword(const Model::ModifyReadOnlyAccountPasswordRequest &request)const;
|
||||
void modifyReadOnlyAccountPasswordAsync(const Model::ModifyReadOnlyAccountPasswordRequest& request, const ModifyReadOnlyAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyReadOnlyAccountPasswordOutcomeCallable modifyReadOnlyAccountPasswordCallable(const Model::ModifyReadOnlyAccountPasswordRequest& request) const;
|
||||
DescribeShardDbConnectionInfoOutcome describeShardDbConnectionInfo(const Model::DescribeShardDbConnectionInfoRequest &request)const;
|
||||
void describeShardDbConnectionInfoAsync(const Model::DescribeShardDbConnectionInfoRequest& request, const DescribeShardDbConnectionInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeShardDbConnectionInfoOutcomeCallable describeShardDbConnectionInfoCallable(const Model::DescribeShardDbConnectionInfoRequest& request) const;
|
||||
RemoveReadOnlyAccountOutcome removeReadOnlyAccount(const Model::RemoveReadOnlyAccountRequest &request)const;
|
||||
void removeReadOnlyAccountAsync(const Model::RemoveReadOnlyAccountRequest& request, const RemoveReadOnlyAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RemoveReadOnlyAccountOutcomeCallable removeReadOnlyAccountCallable(const Model::RemoveReadOnlyAccountRequest& request) const;
|
||||
ModifyDrdsDBPasswdOutcome modifyDrdsDBPasswd(const Model::ModifyDrdsDBPasswdRequest &request)const;
|
||||
void modifyDrdsDBPasswdAsync(const Model::ModifyDrdsDBPasswdRequest& request, const ModifyDrdsDBPasswdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDrdsDBPasswdOutcomeCallable modifyDrdsDBPasswdCallable(const Model::ModifyDrdsDBPasswdRequest& request) const;
|
||||
DeleteFailedDrdsDBOutcome deleteFailedDrdsDB(const Model::DeleteFailedDrdsDBRequest &request)const;
|
||||
void deleteFailedDrdsDBAsync(const Model::DeleteFailedDrdsDBRequest& request, const DeleteFailedDrdsDBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFailedDrdsDBOutcomeCallable deleteFailedDrdsDBCallable(const Model::DeleteFailedDrdsDBRequest& request) const;
|
||||
DescribeCreateDrdsInstanceStatusOutcome describeCreateDrdsInstanceStatus(const Model::DescribeCreateDrdsInstanceStatusRequest &request)const;
|
||||
void describeCreateDrdsInstanceStatusAsync(const Model::DescribeCreateDrdsInstanceStatusRequest& request, const DescribeCreateDrdsInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCreateDrdsInstanceStatusOutcomeCallable describeCreateDrdsInstanceStatusCallable(const Model::DescribeCreateDrdsInstanceStatusRequest& request) const;
|
||||
DescribeDrdsDBsOutcome describeDrdsDBs(const Model::DescribeDrdsDBsRequest &request)const;
|
||||
void describeDrdsDBsAsync(const Model::DescribeDrdsDBsRequest& request, const DescribeDrdsDBsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsDBsOutcomeCallable describeDrdsDBsCallable(const Model::DescribeDrdsDBsRequest& request) const;
|
||||
QueryInstanceInfoByConnOutcome queryInstanceInfoByConn(const Model::QueryInstanceInfoByConnRequest &request)const;
|
||||
void queryInstanceInfoByConnAsync(const Model::QueryInstanceInfoByConnRequest& request, const QueryInstanceInfoByConnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceInfoByConnOutcomeCallable queryInstanceInfoByConnCallable(const Model::QueryInstanceInfoByConnRequest& request) const;
|
||||
ModifyFullTableScanOutcome modifyFullTableScan(const Model::ModifyFullTableScanRequest &request)const;
|
||||
void modifyFullTableScanAsync(const Model::ModifyFullTableScanRequest& request, const ModifyFullTableScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyFullTableScanOutcomeCallable modifyFullTableScanCallable(const Model::ModifyFullTableScanRequest& request) const;
|
||||
DescribeDrdsInstanceOutcome describeDrdsInstance(const Model::DescribeDrdsInstanceRequest &request)const;
|
||||
void describeDrdsInstanceAsync(const Model::DescribeDrdsInstanceRequest& request, const DescribeDrdsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDrdsInstanceOutcomeCallable describeDrdsInstanceCallable(const Model::DescribeDrdsInstanceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DRDS_DRDSCLIENT_H_
|
||||
32
drds/include/alibabacloud/drds/DrdsExport.h
Normal file
32
drds/include/alibabacloud/drds/DrdsExport.h
Normal 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_DRDS_DRDSEXPORT_H_
|
||||
#define ALIBABACLOUD_DRDS_DRDSEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DRDS_LIBRARY)
|
||||
# define ALIBABACLOUD_DRDS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DRDS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DRDS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DRDS_DRDSEXPORT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDrdsAccountRequest();
|
||||
~CreateDrdsAccountRequest();
|
||||
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string password_;
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string userName_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDrdsAccountResult();
|
||||
explicit CreateDrdsAccountResult(const std::string &payload);
|
||||
~CreateDrdsAccountResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSACCOUNTRESULT_H_
|
||||
63
drds/include/alibabacloud/drds/model/CreateDrdsDBRequest.h
Normal file
63
drds/include/alibabacloud/drds/model/CreateDrdsDBRequest.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEDRDSDBREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsDBRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDrdsDBRequest();
|
||||
~CreateDrdsDBRequest();
|
||||
|
||||
std::string getEncode()const;
|
||||
void setEncode(const std::string& encode);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getRdsInstances()const;
|
||||
void setRdsInstances(const std::string& rdsInstances);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string encode_;
|
||||
std::string password_;
|
||||
std::string dbName_;
|
||||
std::string rdsInstances_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSDBREQUEST_H_
|
||||
51
drds/include/alibabacloud/drds/model/CreateDrdsDBResult.h
Normal file
51
drds/include/alibabacloud/drds/model/CreateDrdsDBResult.h
Normal 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_DRDS_MODEL_CREATEDRDSDBRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsDBResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDrdsDBResult();
|
||||
explicit CreateDrdsDBResult(const std::string &payload);
|
||||
~CreateDrdsDBResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSDBRESULT_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDrdsInstanceRequest();
|
||||
~CreateDrdsInstanceRequest();
|
||||
|
||||
int getQuantity()const;
|
||||
void setQuantity(int quantity);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getSpecification()const;
|
||||
void setSpecification(const std::string& specification);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getVswitchId()const;
|
||||
void setVswitchId(const std::string& vswitchId);
|
||||
bool getIsHa()const;
|
||||
void setIsHa(bool isHa);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceSeries()const;
|
||||
void setInstanceSeries(const std::string& instanceSeries);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
int quantity_;
|
||||
std::string description_;
|
||||
std::string specification_;
|
||||
std::string type_;
|
||||
std::string accessKeyId_;
|
||||
std::string vswitchId_;
|
||||
bool isHa_;
|
||||
std::string regionId_;
|
||||
std::string instanceSeries_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateDrdsInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long orderId;
|
||||
std::vector<std::string> drdsInstanceIdList;
|
||||
};
|
||||
|
||||
|
||||
CreateDrdsInstanceResult();
|
||||
explicit CreateDrdsInstanceResult(const std::string &payload);
|
||||
~CreateDrdsInstanceResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEDRDSINSTANCERESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateReadOnlyAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateReadOnlyAccountRequest();
|
||||
~CreateReadOnlyAccountRequest();
|
||||
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string password_;
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT CreateReadOnlyAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string drdsInstanceId;
|
||||
std::string dbName;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
CreateReadOnlyAccountResult();
|
||||
explicit CreateReadOnlyAccountResult(const std::string &payload);
|
||||
~CreateReadOnlyAccountResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_CREATEREADONLYACCOUNTRESULT_H_
|
||||
54
drds/include/alibabacloud/drds/model/DeleteDrdsDBRequest.h
Normal file
54
drds/include/alibabacloud/drds/model/DeleteDrdsDBRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DELETEDRDSDBREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DELETEDRDSDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DeleteDrdsDBRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDrdsDBRequest();
|
||||
~DeleteDrdsDBRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DELETEDRDSDBREQUEST_H_
|
||||
51
drds/include/alibabacloud/drds/model/DeleteDrdsDBResult.h
Normal file
51
drds/include/alibabacloud/drds/model/DeleteDrdsDBResult.h
Normal 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_DRDS_MODEL_DELETEDRDSDBRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DELETEDRDSDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DeleteDrdsDBResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDrdsDBResult();
|
||||
explicit DeleteDrdsDBResult(const std::string &payload);
|
||||
~DeleteDrdsDBResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DELETEDRDSDBRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DELETEFAILEDDRDSDBREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DELETEFAILEDDRDSDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DeleteFailedDrdsDBRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteFailedDrdsDBRequest();
|
||||
~DeleteFailedDrdsDBRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DELETEFAILEDDRDSDBREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DELETEFAILEDDRDSDBRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DELETEFAILEDDRDSDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DeleteFailedDrdsDBResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteFailedDrdsDBResult();
|
||||
explicit DeleteFailedDrdsDBResult(const std::string &payload);
|
||||
~DeleteFailedDrdsDBResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DELETEFAILEDDRDSDBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeCreateDrdsInstanceStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCreateDrdsInstanceStatusRequest();
|
||||
~DescribeCreateDrdsInstanceStatusRequest();
|
||||
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeCreateDrdsInstanceStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
};
|
||||
|
||||
|
||||
DescribeCreateDrdsInstanceStatusResult();
|
||||
explicit DescribeCreateDrdsInstanceStatusResult(const std::string &payload);
|
||||
~DescribeCreateDrdsInstanceStatusResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBECREATEDRDSINSTANCESTATUSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBIpWhiteListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsDBIpWhiteListRequest();
|
||||
~DescribeDrdsDBIpWhiteListRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getGroupName()const;
|
||||
void setGroupName(const std::string& groupName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string groupName_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBIpWhiteListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::vector<std::string> ipWhiteList;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsDBIpWhiteListResult();
|
||||
explicit DescribeDrdsDBIpWhiteListResult(const std::string &payload);
|
||||
~DescribeDrdsDBIpWhiteListResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBIPWHITELISTRESULT_H_
|
||||
54
drds/include/alibabacloud/drds/model/DescribeDrdsDBRequest.h
Normal file
54
drds/include/alibabacloud/drds/model/DescribeDrdsDBRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEDRDSDBREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsDBRequest();
|
||||
~DescribeDrdsDBRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBREQUEST_H_
|
||||
61
drds/include/alibabacloud/drds/model/DescribeDrdsDBResult.h
Normal file
61
drds/include/alibabacloud/drds/model/DescribeDrdsDBResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int status;
|
||||
std::string msg;
|
||||
std::string createTime;
|
||||
std::string mode;
|
||||
std::string dbName;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsDBResult();
|
||||
explicit DescribeDrdsDBResult(const std::string &payload);
|
||||
~DescribeDrdsDBResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsDBsRequest();
|
||||
~DescribeDrdsDBsRequest();
|
||||
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSREQUEST_H_
|
||||
61
drds/include/alibabacloud/drds/model/DescribeDrdsDBsResult.h
Normal file
61
drds/include/alibabacloud/drds/model/DescribeDrdsDBsResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsDBsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Db
|
||||
{
|
||||
int status;
|
||||
std::string msg;
|
||||
std::string createTime;
|
||||
std::string mode;
|
||||
std::string dbName;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsDBsResult();
|
||||
explicit DescribeDrdsDBsResult(const std::string &payload);
|
||||
~DescribeDrdsDBsResult();
|
||||
std::vector<Db> getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Db> data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSDBSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceNetInfoForInnerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsInstanceNetInfoForInnerRequest();
|
||||
~DescribeDrdsInstanceNetInfoForInnerRequest();
|
||||
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceNetInfoForInnerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct NetInfo
|
||||
{
|
||||
std::string type;
|
||||
std::string iP;
|
||||
std::string port;
|
||||
bool isForVpc;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsInstanceNetInfoForInnerResult();
|
||||
explicit DescribeDrdsInstanceNetInfoForInnerResult(const std::string &payload);
|
||||
~DescribeDrdsInstanceNetInfoForInnerResult();
|
||||
std::vector<NetInfo> getNetInfos()const;
|
||||
std::string getDrdsInstanceId()const;
|
||||
std::string getNetworkType()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<NetInfo> netInfos_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string networkType_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCENETINFOFORINNERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsInstanceRequest();
|
||||
~DescribeDrdsInstanceRequest();
|
||||
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEDRDSINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Vip
|
||||
{
|
||||
std::string type;
|
||||
std::string vpcId;
|
||||
std::string iP;
|
||||
std::string port;
|
||||
std::string vswitchId;
|
||||
};
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string drdsInstanceId;
|
||||
std::string zoneId;
|
||||
long version;
|
||||
std::string networkType;
|
||||
long createTime;
|
||||
std::string vpcCloudInstanceId;
|
||||
std::string specification;
|
||||
std::string regionId;
|
||||
std::vector<Vip> vips;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsInstanceResult();
|
||||
explicit DescribeDrdsInstanceResult(const std::string &payload);
|
||||
~DescribeDrdsInstanceResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCERESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEDRDSINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDrdsInstancesRequest();
|
||||
~DescribeDrdsInstancesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string type_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCESREQUEST_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeDrdsInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct Vip
|
||||
{
|
||||
std::string type;
|
||||
std::string vpcId;
|
||||
std::string iP;
|
||||
std::string port;
|
||||
std::string vswitchId;
|
||||
};
|
||||
std::string status;
|
||||
std::string type;
|
||||
std::string description;
|
||||
std::string drdsInstanceId;
|
||||
std::string zoneId;
|
||||
long version;
|
||||
std::string networkType;
|
||||
long createTime;
|
||||
std::string vpcCloudInstanceId;
|
||||
std::string regionId;
|
||||
std::vector<Instance::Vip> vips;
|
||||
};
|
||||
|
||||
|
||||
DescribeDrdsInstancesResult();
|
||||
explicit DescribeDrdsInstancesResult(const std::string &payload);
|
||||
~DescribeDrdsInstancesResult();
|
||||
std::vector<Instance> getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Instance> data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEDRDSINSTANCESRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBERDSLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBERDSLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeRdsListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRdsListRequest();
|
||||
~DescribeRdsListRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBERDSLISTREQUEST_H_
|
||||
74
drds/include/alibabacloud/drds/model/DescribeRdsListResult.h
Normal file
74
drds/include/alibabacloud/drds/model/DescribeRdsListResult.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBERDSLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBERDSLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeRdsListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RdsInstance
|
||||
{
|
||||
struct Child
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string connectUrl;
|
||||
int readWeight;
|
||||
std::string instanceId;
|
||||
std::string instanceStatus;
|
||||
int port;
|
||||
std::string dbType;
|
||||
};
|
||||
std::vector<RdsInstance::Child> readOnlyChildren;
|
||||
std::string instanceName;
|
||||
std::string connectUrl;
|
||||
int readWeight;
|
||||
int instanceId;
|
||||
std::string instanceStatus;
|
||||
int port;
|
||||
std::string dbType;
|
||||
};
|
||||
|
||||
|
||||
DescribeRdsListResult();
|
||||
explicit DescribeRdsListResult(const std::string &payload);
|
||||
~DescribeRdsListResult();
|
||||
std::vector<RdsInstance> getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RdsInstance> data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBERDSLISTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEREADONLYACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEREADONLYACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeReadOnlyAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeReadOnlyAccountRequest();
|
||||
~DescribeReadOnlyAccountRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEREADONLYACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEREADONLYACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEREADONLYACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeReadOnlyAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string drdsInstanceId;
|
||||
std::string dbName;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
DescribeReadOnlyAccountResult();
|
||||
explicit DescribeReadOnlyAccountResult(const std::string &payload);
|
||||
~DescribeReadOnlyAccountResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEREADONLYACCOUNTRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
72
drds/include/alibabacloud/drds/model/DescribeRegionsResult.h
Normal file
72
drds/include/alibabacloud/drds/model/DescribeRegionsResult.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DrdsRegion
|
||||
{
|
||||
struct InstanceSeries
|
||||
{
|
||||
struct Spec
|
||||
{
|
||||
std::string specName;
|
||||
std::string specId;
|
||||
};
|
||||
std::string seriesId;
|
||||
std::string seriesName;
|
||||
std::vector<InstanceSeries::Spec> specList;
|
||||
};
|
||||
std::string zoneName;
|
||||
std::string zoneId;
|
||||
std::string regionName;
|
||||
std::vector<DrdsRegion::InstanceSeries> instanceSeriesList;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
std::vector<DrdsRegion> getDrdsRegions()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DrdsRegion> drdsRegions_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_DESCRIBESHARDDBSREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeShardDBsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeShardDBsRequest();
|
||||
~DescribeShardDBsRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBSREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBSRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeShardDBsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DbIntancePair
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string subDbName;
|
||||
};
|
||||
|
||||
|
||||
DescribeShardDBsResult();
|
||||
explicit DescribeShardDBsResult(const std::string &payload);
|
||||
~DescribeShardDBsResult();
|
||||
std::vector<DbIntancePair> getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DbIntancePair> data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeShardDbConnectionInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeShardDbConnectionInfoRequest();
|
||||
~DescribeShardDbConnectionInfoRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getSubDbName()const;
|
||||
void setSubDbName(const std::string& subDbName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string subDbName_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFOREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFORESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT DescribeShardDbConnectionInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConnectionInfo
|
||||
{
|
||||
std::string instanceName;
|
||||
int preparedStatementCacheSize;
|
||||
std::string userName;
|
||||
std::string instanceUrl;
|
||||
std::string dbStatus;
|
||||
std::string subDbName;
|
||||
int maxPoolSize;
|
||||
std::string connectionProperties;
|
||||
int idleTimeOut;
|
||||
int minPoolSize;
|
||||
std::string dbType;
|
||||
int blockingTimeout;
|
||||
};
|
||||
|
||||
|
||||
DescribeShardDbConnectionInfoResult();
|
||||
explicit DescribeShardDbConnectionInfoResult(const std::string &payload);
|
||||
~DescribeShardDbConnectionInfoResult();
|
||||
ConnectionInfo getConnectionInfo()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConnectionInfo connectionInfo_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_DESCRIBESHARDDBCONNECTIONINFORESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsDBPasswdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDrdsDBPasswdRequest();
|
||||
~ModifyDrdsDBPasswdRequest();
|
||||
|
||||
std::string getNewPasswd()const;
|
||||
void setNewPasswd(const std::string& newPasswd);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string newPasswd_;
|
||||
std::string dbName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsDBPasswdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDrdsDBPasswdResult();
|
||||
explicit ModifyDrdsDBPasswdResult(const std::string &payload);
|
||||
~ModifyDrdsDBPasswdResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSDBPASSWDRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsInstanceDescriptionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDrdsInstanceDescriptionRequest();
|
||||
~ModifyDrdsInstanceDescriptionRequest();
|
||||
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsInstanceDescriptionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDrdsInstanceDescriptionResult();
|
||||
explicit ModifyDrdsInstanceDescriptionResult(const std::string &payload);
|
||||
~ModifyDrdsInstanceDescriptionResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSINSTANCEDESCRIPTIONRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsIpWhiteListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDrdsIpWhiteListRequest();
|
||||
~ModifyDrdsIpWhiteListRequest();
|
||||
|
||||
bool getMode()const;
|
||||
void setMode(bool mode);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getGroupAttribute()const;
|
||||
void setGroupAttribute(const std::string& groupAttribute);
|
||||
std::string getIpWhiteList()const;
|
||||
void setIpWhiteList(const std::string& ipWhiteList);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getGroupName()const;
|
||||
void setGroupName(const std::string& groupName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
bool mode_;
|
||||
std::string dbName_;
|
||||
std::string groupAttribute_;
|
||||
std::string ipWhiteList_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string groupName_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyDrdsIpWhiteListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDrdsIpWhiteListResult();
|
||||
explicit ModifyDrdsIpWhiteListResult(const std::string &payload);
|
||||
~ModifyDrdsIpWhiteListResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYDRDSIPWHITELISTRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyFullTableScanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyFullTableScanRequest();
|
||||
~ModifyFullTableScanRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getTableNames()const;
|
||||
void setTableNames(const std::string& tableNames);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
bool getFullTableScan()const;
|
||||
void setFullTableScan(bool fullTableScan);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string tableNames_;
|
||||
std::string drdsInstanceId_;
|
||||
bool fullTableScan_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyFullTableScanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyFullTableScanResult();
|
||||
explicit ModifyFullTableScanResult(const std::string &payload);
|
||||
~ModifyFullTableScanResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYFULLTABLESCANRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyRdsReadWeightRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyRdsReadWeightRequest();
|
||||
~ModifyRdsReadWeightRequest();
|
||||
|
||||
std::string getInstanceNames()const;
|
||||
void setInstanceNames(const std::string& instanceNames);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getWeights()const;
|
||||
void setWeights(const std::string& weights);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string instanceNames_;
|
||||
std::string dbName_;
|
||||
std::string weights_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyRdsReadWeightResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyRdsReadWeightResult();
|
||||
explicit ModifyRdsReadWeightResult(const std::string &payload);
|
||||
~ModifyRdsReadWeightResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYRDSREADWEIGHTRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyReadOnlyAccountPasswordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyReadOnlyAccountPasswordRequest();
|
||||
~ModifyReadOnlyAccountPasswordRequest();
|
||||
|
||||
std::string getNewPasswd()const;
|
||||
void setNewPasswd(const std::string& newPasswd);
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
std::string getOriginPassword()const;
|
||||
void setOriginPassword(const std::string& originPassword);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string newPasswd_;
|
||||
std::string dbName_;
|
||||
std::string accountName_;
|
||||
std::string originPassword_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT ModifyReadOnlyAccountPasswordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyReadOnlyAccountPasswordResult();
|
||||
explicit ModifyReadOnlyAccountPasswordResult(const std::string &payload);
|
||||
~ModifyReadOnlyAccountPasswordResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_MODIFYREADONLYACCOUNTPASSWORDRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT QueryInstanceInfoByConnRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryInstanceInfoByConnRequest();
|
||||
~QueryInstanceInfoByConnRequest();
|
||||
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
std::string getHost()const;
|
||||
void setHost(const std::string& host);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
int port_;
|
||||
std::string host_;
|
||||
std::string userName_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNREQUEST_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT QueryInstanceInfoByConnResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Vip
|
||||
{
|
||||
std::string type;
|
||||
std::string vpcId;
|
||||
std::string iP;
|
||||
std::string port;
|
||||
std::string vswitchId;
|
||||
};
|
||||
std::string status;
|
||||
std::string description;
|
||||
std::string zoneId;
|
||||
std::string specTypeId;
|
||||
long createTime;
|
||||
std::string specification;
|
||||
std::string type;
|
||||
std::string drdsInstanceId;
|
||||
long version;
|
||||
std::string networkType;
|
||||
std::string vpcCloudInstanceId;
|
||||
std::string regionId;
|
||||
std::vector<Vip> vips;
|
||||
std::string specTypeName;
|
||||
};
|
||||
|
||||
|
||||
QueryInstanceInfoByConnResult();
|
||||
explicit QueryInstanceInfoByConnResult(const std::string &payload);
|
||||
~QueryInstanceInfoByConnResult();
|
||||
Data getData()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_QUERYINSTANCEINFOBYCONNRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT RemoveDrdsInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RemoveDrdsInstanceRequest();
|
||||
~RemoveDrdsInstanceRequest();
|
||||
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCEREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT RemoveDrdsInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RemoveDrdsInstanceResult();
|
||||
explicit RemoveDrdsInstanceResult(const std::string &payload);
|
||||
~RemoveDrdsInstanceResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_REMOVEDRDSINSTANCERESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT RemoveReadOnlyAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RemoveReadOnlyAccountRequest();
|
||||
~RemoveReadOnlyAccountRequest();
|
||||
|
||||
std::string getDbName()const;
|
||||
void setDbName(const std::string& dbName);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
std::string getDrdsInstanceId()const;
|
||||
void setDrdsInstanceId(const std::string& drdsInstanceId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string dbName_;
|
||||
std::string accountName_;
|
||||
std::string drdsInstanceId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/drds/DrdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Drds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DRDS_EXPORT RemoveReadOnlyAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RemoveReadOnlyAccountResult();
|
||||
explicit RemoveReadOnlyAccountResult(const std::string &payload);
|
||||
~RemoveReadOnlyAccountResult();
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DRDS_MODEL_REMOVEREADONLYACCOUNTRESULT_H_
|
||||
1025
drds/src/DrdsClient.cc
Normal file
1025
drds/src/DrdsClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
82
drds/src/model/CreateDrdsAccountRequest.cc
Normal file
82
drds/src/model/CreateDrdsAccountRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/drds/model/CreateDrdsAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateDrdsAccountRequest;
|
||||
|
||||
CreateDrdsAccountRequest::CreateDrdsAccountRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "CreateDrdsAccount")
|
||||
{}
|
||||
|
||||
CreateDrdsAccountRequest::~CreateDrdsAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDrdsAccountRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateDrdsAccountRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateDrdsAccountRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateDrdsAccountRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateDrdsAccountRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateDrdsAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsAccountRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateDrdsAccountRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
}
|
||||
|
||||
std::string CreateDrdsAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDrdsAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
drds/src/model/CreateDrdsAccountResult.cc
Normal file
52
drds/src/model/CreateDrdsAccountResult.cc
Normal 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/drds/model/CreateDrdsAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateDrdsAccountResult::CreateDrdsAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDrdsAccountResult::CreateDrdsAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDrdsAccountResult::~CreateDrdsAccountResult()
|
||||
{}
|
||||
|
||||
void CreateDrdsAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateDrdsAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
93
drds/src/model/CreateDrdsDBRequest.cc
Normal file
93
drds/src/model/CreateDrdsDBRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateDrdsDBRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateDrdsDBRequest;
|
||||
|
||||
CreateDrdsDBRequest::CreateDrdsDBRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "CreateDrdsDB")
|
||||
{}
|
||||
|
||||
CreateDrdsDBRequest::~CreateDrdsDBRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDrdsDBRequest::getEncode()const
|
||||
{
|
||||
return encode_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setEncode(const std::string& encode)
|
||||
{
|
||||
encode_ = encode;
|
||||
setParameter("Encode", encode);
|
||||
}
|
||||
|
||||
std::string CreateDrdsDBRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateDrdsDBRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateDrdsDBRequest::getRdsInstances()const
|
||||
{
|
||||
return rdsInstances_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setRdsInstances(const std::string& rdsInstances)
|
||||
{
|
||||
rdsInstances_ = rdsInstances;
|
||||
setParameter("RdsInstances", rdsInstances);
|
||||
}
|
||||
|
||||
std::string CreateDrdsDBRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsDBRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
drds/src/model/CreateDrdsDBResult.cc
Normal file
52
drds/src/model/CreateDrdsDBResult.cc
Normal 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/drds/model/CreateDrdsDBResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateDrdsDBResult::CreateDrdsDBResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDrdsDBResult::CreateDrdsDBResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDrdsDBResult::~CreateDrdsDBResult()
|
||||
{}
|
||||
|
||||
void CreateDrdsDBResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateDrdsDBResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
159
drds/src/model/CreateDrdsInstanceRequest.cc
Normal file
159
drds/src/model/CreateDrdsInstanceRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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/drds/model/CreateDrdsInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateDrdsInstanceRequest;
|
||||
|
||||
CreateDrdsInstanceRequest::CreateDrdsInstanceRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "CreateDrdsInstance")
|
||||
{}
|
||||
|
||||
CreateDrdsInstanceRequest::~CreateDrdsInstanceRequest()
|
||||
{}
|
||||
|
||||
int CreateDrdsInstanceRequest::getQuantity()const
|
||||
{
|
||||
return quantity_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setQuantity(int quantity)
|
||||
{
|
||||
quantity_ = quantity;
|
||||
setParameter("Quantity", std::to_string(quantity));
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getSpecification()const
|
||||
{
|
||||
return specification_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setSpecification(const std::string& specification)
|
||||
{
|
||||
specification_ = specification;
|
||||
setParameter("Specification", specification);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getVswitchId()const
|
||||
{
|
||||
return vswitchId_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setVswitchId(const std::string& vswitchId)
|
||||
{
|
||||
vswitchId_ = vswitchId;
|
||||
setParameter("VswitchId", vswitchId);
|
||||
}
|
||||
|
||||
bool CreateDrdsInstanceRequest::getIsHa()const
|
||||
{
|
||||
return isHa_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setIsHa(bool isHa)
|
||||
{
|
||||
isHa_ = isHa;
|
||||
setParameter("IsHa", std::to_string(isHa));
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getInstanceSeries()const
|
||||
{
|
||||
return instanceSeries_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setInstanceSeries(const std::string& instanceSeries)
|
||||
{
|
||||
instanceSeries_ = instanceSeries;
|
||||
setParameter("InstanceSeries", instanceSeries);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDrdsInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateDrdsInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
63
drds/src/model/CreateDrdsInstanceResult.cc
Normal file
63
drds/src/model/CreateDrdsInstanceResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateDrdsInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateDrdsInstanceResult::CreateDrdsInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDrdsInstanceResult::CreateDrdsInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDrdsInstanceResult::~CreateDrdsInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateDrdsInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OrderId"].isNull())
|
||||
data_.orderId = std::stol(dataNode["OrderId"].asString());
|
||||
auto allDrdsInstanceIdList = dataNode["DrdsInstanceIdList"]["DrdsInstanceId"];
|
||||
for (auto value : allDrdsInstanceIdList)
|
||||
data_.drdsInstanceIdList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CreateDrdsInstanceResult::Data CreateDrdsInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateDrdsInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
drds/src/model/CreateReadOnlyAccountRequest.cc
Normal file
71
drds/src/model/CreateReadOnlyAccountRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/drds/model/CreateReadOnlyAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateReadOnlyAccountRequest;
|
||||
|
||||
CreateReadOnlyAccountRequest::CreateReadOnlyAccountRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "CreateReadOnlyAccount")
|
||||
{}
|
||||
|
||||
CreateReadOnlyAccountRequest::~CreateReadOnlyAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateReadOnlyAccountRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyAccountRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyAccountRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyAccountRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyAccountRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateReadOnlyAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateReadOnlyAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
64
drds/src/model/CreateReadOnlyAccountResult.cc
Normal file
64
drds/src/model/CreateReadOnlyAccountResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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/drds/model/CreateReadOnlyAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateReadOnlyAccountResult::CreateReadOnlyAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateReadOnlyAccountResult::CreateReadOnlyAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateReadOnlyAccountResult::~CreateReadOnlyAccountResult()
|
||||
{}
|
||||
|
||||
void CreateReadOnlyAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DbName"].isNull())
|
||||
data_.dbName = dataNode["DbName"].asString();
|
||||
if(!dataNode["DrdsInstanceId"].isNull())
|
||||
data_.drdsInstanceId = dataNode["DrdsInstanceId"].asString();
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CreateReadOnlyAccountResult::Data CreateReadOnlyAccountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateReadOnlyAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
60
drds/src/model/DeleteDrdsDBRequest.cc
Normal file
60
drds/src/model/DeleteDrdsDBRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DeleteDrdsDBRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DeleteDrdsDBRequest;
|
||||
|
||||
DeleteDrdsDBRequest::DeleteDrdsDBRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "DeleteDrdsDB")
|
||||
{}
|
||||
|
||||
DeleteDrdsDBRequest::~DeleteDrdsDBRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDrdsDBRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DeleteDrdsDBRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DeleteDrdsDBRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteDrdsDBRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
drds/src/model/DeleteDrdsDBResult.cc
Normal file
52
drds/src/model/DeleteDrdsDBResult.cc
Normal 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/drds/model/DeleteDrdsDBResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DeleteDrdsDBResult::DeleteDrdsDBResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDrdsDBResult::DeleteDrdsDBResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDrdsDBResult::~DeleteDrdsDBResult()
|
||||
{}
|
||||
|
||||
void DeleteDrdsDBResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteDrdsDBResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
60
drds/src/model/DeleteFailedDrdsDBRequest.cc
Normal file
60
drds/src/model/DeleteFailedDrdsDBRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DeleteFailedDrdsDBRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DeleteFailedDrdsDBRequest;
|
||||
|
||||
DeleteFailedDrdsDBRequest::DeleteFailedDrdsDBRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "DeleteFailedDrdsDB")
|
||||
{}
|
||||
|
||||
DeleteFailedDrdsDBRequest::~DeleteFailedDrdsDBRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFailedDrdsDBRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DeleteFailedDrdsDBRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DeleteFailedDrdsDBRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteFailedDrdsDBRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteFailedDrdsDBRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteFailedDrdsDBRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
52
drds/src/model/DeleteFailedDrdsDBResult.cc
Normal file
52
drds/src/model/DeleteFailedDrdsDBResult.cc
Normal 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/drds/model/DeleteFailedDrdsDBResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DeleteFailedDrdsDBResult::DeleteFailedDrdsDBResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFailedDrdsDBResult::DeleteFailedDrdsDBResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFailedDrdsDBResult::~DeleteFailedDrdsDBResult()
|
||||
{}
|
||||
|
||||
void DeleteFailedDrdsDBResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteFailedDrdsDBResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
49
drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc
Normal file
49
drds/src/model/DescribeCreateDrdsInstanceStatusRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeCreateDrdsInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeCreateDrdsInstanceStatusRequest;
|
||||
|
||||
DescribeCreateDrdsInstanceStatusRequest::DescribeCreateDrdsInstanceStatusRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "DescribeCreateDrdsInstanceStatus")
|
||||
{}
|
||||
|
||||
DescribeCreateDrdsInstanceStatusRequest::~DescribeCreateDrdsInstanceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCreateDrdsInstanceStatusRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeCreateDrdsInstanceStatusRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeCreateDrdsInstanceStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCreateDrdsInstanceStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
60
drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc
Normal file
60
drds/src/model/DescribeCreateDrdsInstanceStatusResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeCreateDrdsInstanceStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeCreateDrdsInstanceStatusResult::DescribeCreateDrdsInstanceStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCreateDrdsInstanceStatusResult::DescribeCreateDrdsInstanceStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCreateDrdsInstanceStatusResult::~DescribeCreateDrdsInstanceStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeCreateDrdsInstanceStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeCreateDrdsInstanceStatusResult::Data DescribeCreateDrdsInstanceStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeCreateDrdsInstanceStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc
Normal file
71
drds/src/model/DescribeDrdsDBIpWhiteListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDrdsDBIpWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDrdsDBIpWhiteListRequest;
|
||||
|
||||
DescribeDrdsDBIpWhiteListRequest::DescribeDrdsDBIpWhiteListRequest() :
|
||||
RpcServiceRequest("drds", "2017-10-16", "DescribeDrdsDBIpWhiteList")
|
||||
{}
|
||||
|
||||
DescribeDrdsDBIpWhiteListRequest::~DescribeDrdsDBIpWhiteListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDrdsDBIpWhiteListRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBIpWhiteListRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBIpWhiteListRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBIpWhiteListRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBIpWhiteListRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBIpWhiteListRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBIpWhiteListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBIpWhiteListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user