Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
510f0daad9 | ||
|
|
11638e1197 | ||
|
|
8cc0896ed4 | ||
|
|
b5434b7d6d | ||
|
|
24f68932a7 | ||
|
|
54883f36c2 | ||
|
|
232aaddd7b | ||
|
|
fd11db8bf9 | ||
|
|
61c44f91cc | ||
|
|
dacb2ef983 |
36
CHANGELOG
36
CHANGELOG
@@ -1,3 +1,39 @@
|
||||
2020-03-18 Version: 1.36.323
|
||||
- Support product addrp.
|
||||
|
||||
2020-03-18 Version: 1.36.322
|
||||
- Generated 2018-08-28 for `Tag`.
|
||||
|
||||
2020-03-16 Version: 1.36.321
|
||||
- DescribeFaceVerify API Return DeviceToken Field.
|
||||
|
||||
2020-03-16 Version: 1.36.320
|
||||
- Release.
|
||||
- Add virtual host modification API.
|
||||
- Add exchange modification API.
|
||||
- Add queue modification API.
|
||||
- Add binding modification API.
|
||||
|
||||
2020-03-16 Version: 1.36.319
|
||||
- Add ImageFamily paramters and apis, in Instance creation apis and Image query apis, and add DescribeImageFromFamily.
|
||||
- Add Instance batch operation apis RebootInstances StartInstances and StopInstances.
|
||||
- Add EncryptAlgorithm paramter in instance creati
|
||||
|
||||
2020-03-13 Version: 1.36.318
|
||||
- ACM POP SDK.
|
||||
|
||||
2020-03-12 Version: 1.36.317
|
||||
- Add new Api SegmentBody.
|
||||
|
||||
2020-03-11 Version: 1.36.316
|
||||
- Update structure for DescribeAvailableResource without compatible.
|
||||
|
||||
2020-03-11 Version: 1.36.315
|
||||
- Add new Api SegmentBody.
|
||||
|
||||
2020-03-11 Version: 1.36.314
|
||||
- Support certificate translate.
|
||||
|
||||
2020-03-10 Version: 1.36.313
|
||||
- Add ExportTas apis.
|
||||
|
||||
|
||||
114
acms-open/CMakeLists.txt
Normal file
114
acms-open/CMakeLists.txt
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(acms-open_public_header
|
||||
include/alibabacloud/acms-open/Acms_openClient.h
|
||||
include/alibabacloud/acms-open/Acms_openExport.h )
|
||||
|
||||
set(acms-open_public_header_model
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/CreateNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DeleteNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DeployConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acms-open/model/UpdateNamespaceResult.h )
|
||||
|
||||
set(acms-open_src
|
||||
src/Acms-openClient.cc
|
||||
src/model/CreateConfigurationRequest.cc
|
||||
src/model/CreateConfigurationResult.cc
|
||||
src/model/CreateNamespaceRequest.cc
|
||||
src/model/CreateNamespaceResult.cc
|
||||
src/model/DeleteConfigurationRequest.cc
|
||||
src/model/DeleteConfigurationResult.cc
|
||||
src/model/DeleteNamespaceRequest.cc
|
||||
src/model/DeleteNamespaceResult.cc
|
||||
src/model/DeployConfigurationRequest.cc
|
||||
src/model/DeployConfigurationResult.cc
|
||||
src/model/DescribeConfigurationRequest.cc
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
add_library(acms-open ${LIB_TYPE}
|
||||
${acms-open_public_header}
|
||||
${acms-open_public_header_model}
|
||||
${acms-open_src})
|
||||
|
||||
set_target_properties(acms-open
|
||||
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}acms-open
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(acms-open
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(acms-open
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(acms-open
|
||||
jsoncpp)
|
||||
target_include_directories(acms-open
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(acms-open
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(acms-open
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(acms-open
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(acms-open
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${acms-open_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open)
|
||||
install(FILES ${acms-open_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open/model)
|
||||
install(TARGETS acms-open
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.h
Normal file
110
acms-open/include/alibabacloud/acms-open/Acms_openClient.h
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "Acms_openExport.h"
|
||||
#include "model/CreateConfigurationRequest.h"
|
||||
#include "model/CreateConfigurationResult.h"
|
||||
#include "model/CreateNamespaceRequest.h"
|
||||
#include "model/CreateNamespaceResult.h"
|
||||
#include "model/DeleteConfigurationRequest.h"
|
||||
#include "model/DeleteConfigurationResult.h"
|
||||
#include "model/DeleteNamespaceRequest.h"
|
||||
#include "model/DeleteNamespaceResult.h"
|
||||
#include "model/DeployConfigurationRequest.h"
|
||||
#include "model/DeployConfigurationResult.h"
|
||||
#include "model/DescribeConfigurationRequest.h"
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT Acms_openClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateConfigurationResult> CreateConfigurationOutcome;
|
||||
typedef std::future<CreateConfigurationOutcome> CreateConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateConfigurationRequest&, const CreateConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNamespaceResult> CreateNamespaceOutcome;
|
||||
typedef std::future<CreateNamespaceOutcome> CreateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::CreateNamespaceRequest&, const CreateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteConfigurationResult> DeleteConfigurationOutcome;
|
||||
typedef std::future<DeleteConfigurationOutcome> DeleteConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteConfigurationRequest&, const DeleteConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNamespaceResult> DeleteNamespaceOutcome;
|
||||
typedef std::future<DeleteNamespaceOutcome> DeleteNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeleteNamespaceRequest&, const DeleteNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployConfigurationResult> DeployConfigurationOutcome;
|
||||
typedef std::future<DeployConfigurationOutcome> DeployConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DeployConfigurationRequest&, const DeployConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConfigurationResult> DescribeConfigurationOutcome;
|
||||
typedef std::future<DescribeConfigurationOutcome> DescribeConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeConfigurationRequest&, const DescribeConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const Acms_openClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
|
||||
Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Acms_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Acms_openClient();
|
||||
CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const;
|
||||
void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const;
|
||||
CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const;
|
||||
void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const;
|
||||
DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const;
|
||||
void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const;
|
||||
DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const;
|
||||
void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const;
|
||||
DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const;
|
||||
void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const;
|
||||
DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const;
|
||||
void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const;
|
||||
DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const;
|
||||
void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const;
|
||||
UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const;
|
||||
void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_
|
||||
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.h
Normal file
32
acms-open/include/alibabacloud/acms-open/Acms_openExport.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_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ACMS_OPEN_LIBRARY)
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ACMS_OPEN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateConfigurationRequest();
|
||||
~CreateConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateConfigurationResult();
|
||||
explicit CreateConfigurationResult(const std::string &payload);
|
||||
~CreateConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateNamespaceRequest();
|
||||
~CreateNamespaceRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateNamespaceResult();
|
||||
explicit CreateNamespaceResult(const std::string &payload);
|
||||
~CreateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNamespaceId()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string namespaceId_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_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_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteConfigurationRequest();
|
||||
~DeleteConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteConfigurationResult();
|
||||
explicit DeleteConfigurationResult(const std::string &payload);
|
||||
~DeleteConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNamespaceRequest();
|
||||
~DeleteNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNamespaceResult();
|
||||
explicit DeleteNamespaceResult(const std::string &payload);
|
||||
~DeleteNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployConfigurationRequest();
|
||||
~DeployConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string appName_;
|
||||
std::string namespaceId_;
|
||||
std::string type_;
|
||||
std::string content_;
|
||||
std::string group_;
|
||||
std::string desc_;
|
||||
std::string tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployConfigurationResult();
|
||||
explicit DeployConfigurationResult(const std::string &payload);
|
||||
~DeployConfigurationResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeConfigurationRequest();
|
||||
~DescribeConfigurationRequest();
|
||||
|
||||
std::string getDataId()const;
|
||||
void setDataId(const std::string& dataId);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string dataId_;
|
||||
std::string namespaceId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Configuration
|
||||
{
|
||||
std::string group;
|
||||
std::string desc;
|
||||
std::string dataId;
|
||||
std::string content;
|
||||
std::string tags;
|
||||
std::string md5;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
|
||||
DescribeConfigurationResult();
|
||||
explicit DescribeConfigurationResult(const std::string &payload);
|
||||
~DescribeConfigurationResult();
|
||||
Configuration getConfiguration()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Configuration configuration_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_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_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespaceRequest();
|
||||
~DescribeNamespaceRequest();
|
||||
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_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_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string regionId;
|
||||
std::string accessKey;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespaceResult();
|
||||
explicit DescribeNamespaceResult(const std::string &payload);
|
||||
~DescribeNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
_Namespace get_Namespace()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
_Namespace _namespace_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_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_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateNamespaceRequest();
|
||||
~UpdateNamespaceRequest();
|
||||
|
||||
std::string getNamespaceName()const;
|
||||
void setNamespaceName(const std::string& namespaceName);
|
||||
std::string getNamespaceId()const;
|
||||
void setNamespaceId(const std::string& namespaceId);
|
||||
|
||||
private:
|
||||
std::string namespaceName_;
|
||||
std::string namespaceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acms-open/Acms_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acms_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateNamespaceResult();
|
||||
explicit UpdateNamespaceResult(const std::string &payload);
|
||||
~UpdateNamespaceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_
|
||||
341
acms-open/src/Acms-openClient.cc
Normal file
341
acms-open/src/Acms-openClient.cc
Normal file
@@ -0,0 +1,341 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/Acms_openClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "acms-open";
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::Acms_openClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RoaServiceClient(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, "acms");
|
||||
}
|
||||
|
||||
Acms_openClient::~Acms_openClient()
|
||||
{}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcome Acms_openClient::createConfiguration(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result()));
|
||||
else
|
||||
return CreateConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateConfigurationOutcomeCallable Acms_openClient::createConfigurationCallable(const CreateConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcome Acms_openClient::createNamespace(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return CreateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::CreateNamespaceOutcomeCallable Acms_openClient::createNamespaceCallable(const CreateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcome Acms_openClient::deleteConfiguration(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeleteConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteConfigurationOutcomeCallable Acms_openClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcome Acms_openClient::deleteNamespace(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DeleteNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeleteNamespaceOutcomeCallable Acms_openClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcome Acms_openClient::deployConfiguration(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeployConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DeployConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deployConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DeployConfigurationOutcomeCallable Acms_openClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeployConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deployConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcome Acms_openClient::describeConfiguration(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeConfigurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConfiguration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeConfigurationOutcomeCallable Acms_openClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConfigurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConfiguration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcome Acms_openClient::describeNamespace(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::DescribeNamespaceOutcomeCallable Acms_openClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcome Acms_openClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result()));
|
||||
else
|
||||
return UpdateNamespaceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Acms_openClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNamespace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Acms_openClient::UpdateNamespaceOutcomeCallable Acms_openClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNamespaceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNamespace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
118
acms-open/src/model/CreateConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/CreateConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateConfigurationRequest;
|
||||
|
||||
CreateConfigurationRequest::CreateConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigurationRequest::~CreateConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string CreateConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/CreateConfigurationResult.cc
Normal file
58
acms-open/src/model/CreateConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/CreateConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigurationResult::~CreateConfigurationResult()
|
||||
{}
|
||||
|
||||
void CreateConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
41
acms-open/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
65
acms-open/src/model/CreateNamespaceResult.cc
Normal file
65
acms-open/src/model/CreateNamespaceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["NamespaceId"].isNull())
|
||||
namespaceId_ = value["NamespaceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DeleteConfigurationRequest.cc
Normal file
63
acms-open/src/model/DeleteConfigurationRequest.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/acms-open/model/DeleteConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteConfigurationRequest;
|
||||
|
||||
DeleteConfigurationRequest::DeleteConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigurationRequest::~DeleteConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
58
acms-open/src/model/DeleteConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeleteConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigurationResult::~DeleteConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
41
acms-open/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
58
acms-open/src/model/DeleteNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
118
acms-open/src/model/DeployConfigurationRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeployConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DeployConfigurationRequest;
|
||||
|
||||
DeployConfigurationRequest::DeployConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DeployConfigurationRequest::~DeployConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setBodyParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getDesc()const
|
||||
{
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setDesc(const std::string& desc)
|
||||
{
|
||||
desc_ = desc;
|
||||
setBodyParameter("Desc", desc);
|
||||
}
|
||||
|
||||
std::string DeployConfigurationRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DeployConfigurationRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setBodyParameter("Tags", tags);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
58
acms-open/src/model/DeployConfigurationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DeployConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployConfigurationResult::~DeployConfigurationResult()
|
||||
{}
|
||||
|
||||
void DeployConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
acms-open/src/model/DescribeConfigurationRequest.cc
Normal file
63
acms-open/src/model/DescribeConfigurationRequest.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/acms-open/model/DescribeConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeConfigurationRequest;
|
||||
|
||||
DescribeConfigurationRequest::DescribeConfigurationRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/configuration");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationRequest::~DescribeConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConfigurationRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
78
acms-open/src/model/DescribeConfigurationResult.cc
Normal file
78
acms-open/src/model/DescribeConfigurationResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DescribeConfigurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::~DescribeConfigurationResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigurationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
41
acms-open/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acms-open/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
74
acms-open/src/model/DescribeNamespaceResult.cc
Normal file
74
acms-open/src/model/DescribeNamespaceResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _namespaceNode = value["Namespace"];
|
||||
if(!_namespaceNode["RegionId"].isNull())
|
||||
_namespace_.regionId = _namespaceNode["RegionId"].asString();
|
||||
if(!_namespaceNode["Endpoint"].isNull())
|
||||
_namespace_.endpoint = _namespaceNode["Endpoint"].asString();
|
||||
if(!_namespaceNode["AccessKey"].isNull())
|
||||
_namespace_.accessKey = _namespaceNode["AccessKey"].asString();
|
||||
if(!_namespaceNode["SecretKey"].isNull())
|
||||
_namespace_.secretKey = _namespaceNode["SecretKey"].asString();
|
||||
if(!_namespaceNode["Name"].isNull())
|
||||
_namespace_.name = _namespaceNode["Name"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
acms-open/src/model/UpdateNamespaceRequest.cc
Normal file
52
acms-open/src/model/UpdateNamespaceRequest.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/acms-open/model/UpdateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Acms_open::Model::UpdateNamespaceRequest;
|
||||
|
||||
UpdateNamespaceRequest::UpdateNamespaceRequest() :
|
||||
RoaServiceRequest("acms-open", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateNamespaceRequest::~UpdateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setBodyParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setBodyParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
58
acms-open/src/model/UpdateNamespaceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acms-open/model/UpdateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acms_open;
|
||||
using namespace AlibabaCloud::Acms_open::Model;
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNamespaceResult::~UpdateNamespaceResult()
|
||||
{}
|
||||
|
||||
void UpdateNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
102
address-purification/CMakeLists.txt
Normal file
102
address-purification/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(address-purification_public_header
|
||||
include/alibabacloud/address-purification/Address_purificationClient.h
|
||||
include/alibabacloud/address-purification/Address_purificationExport.h )
|
||||
|
||||
set(address-purification_public_header_model
|
||||
include/alibabacloud/address-purification/model/DescribeProductRequest.h
|
||||
include/alibabacloud/address-purification/model/DescribeProductResult.h
|
||||
include/alibabacloud/address-purification/model/GetAlgorithmResultRequest.h
|
||||
include/alibabacloud/address-purification/model/GetAlgorithmResultResult.h
|
||||
include/alibabacloud/address-purification/model/GetConsoleResultRequest.h
|
||||
include/alibabacloud/address-purification/model/GetConsoleResultResult.h
|
||||
include/alibabacloud/address-purification/model/GetReportRequest.h
|
||||
include/alibabacloud/address-purification/model/GetReportResult.h
|
||||
include/alibabacloud/address-purification/model/GetUserInfomationRequest.h
|
||||
include/alibabacloud/address-purification/model/GetUserInfomationResult.h )
|
||||
|
||||
set(address-purification_src
|
||||
src/Address-purificationClient.cc
|
||||
src/model/DescribeProductRequest.cc
|
||||
src/model/DescribeProductResult.cc
|
||||
src/model/GetAlgorithmResultRequest.cc
|
||||
src/model/GetAlgorithmResultResult.cc
|
||||
src/model/GetConsoleResultRequest.cc
|
||||
src/model/GetConsoleResultResult.cc
|
||||
src/model/GetReportRequest.cc
|
||||
src/model/GetReportResult.cc
|
||||
src/model/GetUserInfomationRequest.cc
|
||||
src/model/GetUserInfomationResult.cc )
|
||||
|
||||
add_library(address-purification ${LIB_TYPE}
|
||||
${address-purification_public_header}
|
||||
${address-purification_public_header_model}
|
||||
${address-purification_src})
|
||||
|
||||
set_target_properties(address-purification
|
||||
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}address-purification
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(address-purification
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ADDRESS_PURIFICATION_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(address-purification
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(address-purification
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(address-purification
|
||||
jsoncpp)
|
||||
target_include_directories(address-purification
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(address-purification
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(address-purification
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(address-purification
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(address-purification
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${address-purification_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/address-purification)
|
||||
install(FILES ${address-purification_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/address-purification/model)
|
||||
install(TARGETS address-purification
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -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_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONCLIENT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Address_purificationExport.h"
|
||||
#include "model/DescribeProductRequest.h"
|
||||
#include "model/DescribeProductResult.h"
|
||||
#include "model/GetAlgorithmResultRequest.h"
|
||||
#include "model/GetAlgorithmResultResult.h"
|
||||
#include "model/GetConsoleResultRequest.h"
|
||||
#include "model/GetConsoleResultResult.h"
|
||||
#include "model/GetReportRequest.h"
|
||||
#include "model/GetReportResult.h"
|
||||
#include "model/GetUserInfomationRequest.h"
|
||||
#include "model/GetUserInfomationResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT Address_purificationClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeProductResult> DescribeProductOutcome;
|
||||
typedef std::future<DescribeProductOutcome> DescribeProductOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::DescribeProductRequest&, const DescribeProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAlgorithmResultResult> GetAlgorithmResultOutcome;
|
||||
typedef std::future<GetAlgorithmResultOutcome> GetAlgorithmResultOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetAlgorithmResultRequest&, const GetAlgorithmResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAlgorithmResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsoleResultResult> GetConsoleResultOutcome;
|
||||
typedef std::future<GetConsoleResultOutcome> GetConsoleResultOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetConsoleResultRequest&, const GetConsoleResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsoleResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetReportResult> GetReportOutcome;
|
||||
typedef std::future<GetReportOutcome> GetReportOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetReportRequest&, const GetReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserInfomationResult> GetUserInfomationOutcome;
|
||||
typedef std::future<GetUserInfomationOutcome> GetUserInfomationOutcomeCallable;
|
||||
typedef std::function<void(const Address_purificationClient*, const Model::GetUserInfomationRequest&, const GetUserInfomationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfomationAsyncHandler;
|
||||
|
||||
Address_purificationClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Address_purificationClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Address_purificationClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Address_purificationClient();
|
||||
DescribeProductOutcome describeProduct(const Model::DescribeProductRequest &request)const;
|
||||
void describeProductAsync(const Model::DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeProductOutcomeCallable describeProductCallable(const Model::DescribeProductRequest& request) const;
|
||||
GetAlgorithmResultOutcome getAlgorithmResult(const Model::GetAlgorithmResultRequest &request)const;
|
||||
void getAlgorithmResultAsync(const Model::GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAlgorithmResultOutcomeCallable getAlgorithmResultCallable(const Model::GetAlgorithmResultRequest& request) const;
|
||||
GetConsoleResultOutcome getConsoleResult(const Model::GetConsoleResultRequest &request)const;
|
||||
void getConsoleResultAsync(const Model::GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsoleResultOutcomeCallable getConsoleResultCallable(const Model::GetConsoleResultRequest& request) const;
|
||||
GetReportOutcome getReport(const Model::GetReportRequest &request)const;
|
||||
void getReportAsync(const Model::GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetReportOutcomeCallable getReportCallable(const Model::GetReportRequest& request) const;
|
||||
GetUserInfomationOutcome getUserInfomation(const Model::GetUserInfomationRequest &request)const;
|
||||
void getUserInfomationAsync(const Model::GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserInfomationOutcomeCallable getUserInfomationCallable(const Model::GetUserInfomationRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONEXPORT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ADDRESS_PURIFICATION_LIBRARY)
|
||||
# define ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_ADDRESS_PURIFICATIONEXPORT_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_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeProductRequest();
|
||||
~DescribeProductRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTREQUEST_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_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT DescribeProductResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeProductResult();
|
||||
explicit DescribeProductResult(const std::string &payload);
|
||||
~DescribeProductResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_DESCRIBEPRODUCTRESULT_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_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAlgorithmResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetAlgorithmResultRequest();
|
||||
~GetAlgorithmResultRequest();
|
||||
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getApiCode()const;
|
||||
void setApiCode(const std::string& apiCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string serviceCode_;
|
||||
std::string apiCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTREQUEST_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_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetAlgorithmResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetAlgorithmResultResult();
|
||||
explicit GetAlgorithmResultResult(const std::string &payload);
|
||||
~GetAlgorithmResultResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETALGORITHMRESULTRESULT_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_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetConsoleResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConsoleResultRequest();
|
||||
~GetConsoleResultRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getApiCode()const;
|
||||
void setApiCode(const std::string& apiCode);
|
||||
std::string getCommodityCode()const;
|
||||
void setCommodityCode(const std::string& commodityCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string apiCode_;
|
||||
std::string commodityCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetConsoleResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetConsoleResultResult();
|
||||
explicit GetConsoleResultResult(const std::string &payload);
|
||||
~GetConsoleResultResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETCONSOLERESULTRESULT_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_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetReportRequest();
|
||||
~GetReportRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getReportType()const;
|
||||
void setReportType(const std::string& reportType);
|
||||
std::string getApiCode()const;
|
||||
void setApiCode(const std::string& apiCode);
|
||||
std::string getGranularity()const;
|
||||
void setGranularity(const std::string& granularity);
|
||||
std::string getCommodityCode()const;
|
||||
void setCommodityCode(const std::string& commodityCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string reportType_;
|
||||
std::string apiCode_;
|
||||
std::string granularity_;
|
||||
std::string commodityCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetReportResult();
|
||||
explicit GetReportResult(const std::string &payload);
|
||||
~GetReportResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETREPORTRESULT_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_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetUserInfomationRequest();
|
||||
~GetUserInfomationRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getParameters()const;
|
||||
void setParameters(const std::string& parameters);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string parameters_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/address-purification/Address_purificationExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Address_purification
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ADDRESS_PURIFICATION_EXPORT GetUserInfomationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetUserInfomationResult();
|
||||
explicit GetUserInfomationResult(const std::string &payload);
|
||||
~GetUserInfomationResult();
|
||||
std::string getData()const;
|
||||
std::string getErrMessage()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::string errMessage_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ADDRESS_PURIFICATION_MODEL_GETUSERINFOMATIONRESULT_H_
|
||||
233
address-purification/src/Address-purificationClient.cc
Normal file
233
address-purification/src/Address-purificationClient.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/address-purification/Address_purificationClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "address-purification";
|
||||
}
|
||||
|
||||
Address_purificationClient::Address_purificationClient(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, "");
|
||||
}
|
||||
|
||||
Address_purificationClient::Address_purificationClient(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, "");
|
||||
}
|
||||
|
||||
Address_purificationClient::Address_purificationClient(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, "");
|
||||
}
|
||||
|
||||
Address_purificationClient::~Address_purificationClient()
|
||||
{}
|
||||
|
||||
Address_purificationClient::DescribeProductOutcome Address_purificationClient::describeProduct(const DescribeProductRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeProductOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeProductOutcome(DescribeProductResult(outcome.result()));
|
||||
else
|
||||
return DescribeProductOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::describeProductAsync(const DescribeProductRequest& request, const DescribeProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeProduct(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::DescribeProductOutcomeCallable Address_purificationClient::describeProductCallable(const DescribeProductRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeProductOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeProduct(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetAlgorithmResultOutcome Address_purificationClient::getAlgorithmResult(const GetAlgorithmResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAlgorithmResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAlgorithmResultOutcome(GetAlgorithmResultResult(outcome.result()));
|
||||
else
|
||||
return GetAlgorithmResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getAlgorithmResultAsync(const GetAlgorithmResultRequest& request, const GetAlgorithmResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAlgorithmResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetAlgorithmResultOutcomeCallable Address_purificationClient::getAlgorithmResultCallable(const GetAlgorithmResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAlgorithmResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAlgorithmResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetConsoleResultOutcome Address_purificationClient::getConsoleResult(const GetConsoleResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConsoleResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetConsoleResultOutcome(GetConsoleResultResult(outcome.result()));
|
||||
else
|
||||
return GetConsoleResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getConsoleResultAsync(const GetConsoleResultRequest& request, const GetConsoleResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getConsoleResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetConsoleResultOutcomeCallable Address_purificationClient::getConsoleResultCallable(const GetConsoleResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetConsoleResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getConsoleResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetReportOutcome Address_purificationClient::getReport(const GetReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetReportOutcome(GetReportResult(outcome.result()));
|
||||
else
|
||||
return GetReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getReportAsync(const GetReportRequest& request, const GetReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetReportOutcomeCallable Address_purificationClient::getReportCallable(const GetReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Address_purificationClient::GetUserInfomationOutcome Address_purificationClient::getUserInfomation(const GetUserInfomationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserInfomationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserInfomationOutcome(GetUserInfomationResult(outcome.result()));
|
||||
else
|
||||
return GetUserInfomationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Address_purificationClient::getUserInfomationAsync(const GetUserInfomationRequest& request, const GetUserInfomationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUserInfomation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Address_purificationClient::GetUserInfomationOutcomeCallable Address_purificationClient::getUserInfomationCallable(const GetUserInfomationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserInfomationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUserInfomation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
51
address-purification/src/model/DescribeProductRequest.cc
Normal file
51
address-purification/src/model/DescribeProductRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/DescribeProductRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::DescribeProductRequest;
|
||||
|
||||
DescribeProductRequest::DescribeProductRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "DescribeProduct")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeProductRequest::~DescribeProductRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeProductRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeProductRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DescribeProductRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void DescribeProductRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
address-purification/src/model/DescribeProductResult.cc
Normal file
72
address-purification/src/model/DescribeProductResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/DescribeProductResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
DescribeProductResult::DescribeProductResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeProductResult::DescribeProductResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeProductResult::~DescribeProductResult()
|
||||
{}
|
||||
|
||||
void DescribeProductResult::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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeProductResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeProductResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeProductResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribeProductResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
address-purification/src/model/GetAlgorithmResultRequest.cc
Normal file
62
address-purification/src/model/GetAlgorithmResultRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetAlgorithmResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::GetAlgorithmResultRequest;
|
||||
|
||||
GetAlgorithmResultRequest::GetAlgorithmResultRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "GetAlgorithmResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAlgorithmResultRequest::~GetAlgorithmResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetAlgorithmResultRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void GetAlgorithmResultRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setBodyParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string GetAlgorithmResultRequest::getApiCode()const
|
||||
{
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void GetAlgorithmResultRequest::setApiCode(const std::string& apiCode)
|
||||
{
|
||||
apiCode_ = apiCode;
|
||||
setBodyParameter("ApiCode", apiCode);
|
||||
}
|
||||
|
||||
std::string GetAlgorithmResultRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetAlgorithmResultRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
72
address-purification/src/model/GetAlgorithmResultResult.cc
Normal file
72
address-purification/src/model/GetAlgorithmResultResult.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetAlgorithmResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetAlgorithmResultResult::GetAlgorithmResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAlgorithmResultResult::GetAlgorithmResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAlgorithmResultResult::~GetAlgorithmResultResult()
|
||||
{}
|
||||
|
||||
void GetAlgorithmResultResult::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";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAlgorithmResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetAlgorithmResultResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetAlgorithmResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAlgorithmResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
address-purification/src/model/GetConsoleResultRequest.cc
Normal file
73
address-purification/src/model/GetConsoleResultRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/address-purification/model/GetConsoleResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::GetConsoleResultRequest;
|
||||
|
||||
GetConsoleResultRequest::GetConsoleResultRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "GetConsoleResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsoleResultRequest::~GetConsoleResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetConsoleResultRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetConsoleResultRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetConsoleResultRequest::getApiCode()const
|
||||
{
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void GetConsoleResultRequest::setApiCode(const std::string& apiCode)
|
||||
{
|
||||
apiCode_ = apiCode;
|
||||
setBodyParameter("ApiCode", apiCode);
|
||||
}
|
||||
|
||||
std::string GetConsoleResultRequest::getCommodityCode()const
|
||||
{
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
void GetConsoleResultRequest::setCommodityCode(const std::string& commodityCode)
|
||||
{
|
||||
commodityCode_ = commodityCode;
|
||||
setBodyParameter("CommodityCode", commodityCode);
|
||||
}
|
||||
|
||||
std::string GetConsoleResultRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetConsoleResultRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
65
address-purification/src/model/GetConsoleResultResult.cc
Normal file
65
address-purification/src/model/GetConsoleResultResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetConsoleResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetConsoleResultResult::GetConsoleResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsoleResultResult::GetConsoleResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsoleResultResult::~GetConsoleResultResult()
|
||||
{}
|
||||
|
||||
void GetConsoleResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetConsoleResultResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
95
address-purification/src/model/GetReportRequest.cc
Normal file
95
address-purification/src/model/GetReportRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::GetReportRequest;
|
||||
|
||||
GetReportRequest::GetReportRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "GetReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetReportRequest::~GetReportRequest()
|
||||
{}
|
||||
|
||||
std::string GetReportRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetReportRequest::getReportType()const
|
||||
{
|
||||
return reportType_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setReportType(const std::string& reportType)
|
||||
{
|
||||
reportType_ = reportType;
|
||||
setBodyParameter("ReportType", reportType);
|
||||
}
|
||||
|
||||
std::string GetReportRequest::getApiCode()const
|
||||
{
|
||||
return apiCode_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setApiCode(const std::string& apiCode)
|
||||
{
|
||||
apiCode_ = apiCode;
|
||||
setBodyParameter("ApiCode", apiCode);
|
||||
}
|
||||
|
||||
std::string GetReportRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setBodyParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
std::string GetReportRequest::getCommodityCode()const
|
||||
{
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setCommodityCode(const std::string& commodityCode)
|
||||
{
|
||||
commodityCode_ = commodityCode;
|
||||
setBodyParameter("CommodityCode", commodityCode);
|
||||
}
|
||||
|
||||
std::string GetReportRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetReportRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
65
address-purification/src/model/GetReportResult.cc
Normal file
65
address-purification/src/model/GetReportResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetReportResult::GetReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetReportResult::GetReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetReportResult::~GetReportResult()
|
||||
{}
|
||||
|
||||
void GetReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetReportResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetReportResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
51
address-purification/src/model/GetUserInfomationRequest.cc
Normal file
51
address-purification/src/model/GetUserInfomationRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetUserInfomationRequest.h>
|
||||
|
||||
using AlibabaCloud::Address_purification::Model::GetUserInfomationRequest;
|
||||
|
||||
GetUserInfomationRequest::GetUserInfomationRequest() :
|
||||
RpcServiceRequest("address-purification", "2019-11-18", "GetUserInfomation")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserInfomationRequest::~GetUserInfomationRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserInfomationRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void GetUserInfomationRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string GetUserInfomationRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetUserInfomationRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
65
address-purification/src/model/GetUserInfomationResult.cc
Normal file
65
address-purification/src/model/GetUserInfomationResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/address-purification/model/GetUserInfomationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Address_purification;
|
||||
using namespace AlibabaCloud::Address_purification::Model;
|
||||
|
||||
GetUserInfomationResult::GetUserInfomationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserInfomationResult::GetUserInfomationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserInfomationResult::~GetUserInfomationResult()
|
||||
{}
|
||||
|
||||
void GetUserInfomationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string GetUserInfomationResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
|
||||
@@ -40,6 +42,8 @@ set(alimt_src
|
||||
src/model/GetDocTranslateTaskResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
src/model/TranslateCertificateResult.cc
|
||||
src/model/TranslateECommerceRequest.cc
|
||||
src/model/TranslateECommerceResult.cc
|
||||
src/model/TranslateGeneralRequest.cc
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "model/GetDocTranslateTaskResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
#include "model/TranslateCertificateResult.h"
|
||||
#include "model/TranslateECommerceRequest.h"
|
||||
#include "model/TranslateECommerceResult.h"
|
||||
#include "model/TranslateGeneralRequest.h"
|
||||
@@ -50,6 +52,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateCertificateResult> TranslateCertificateOutcome;
|
||||
typedef std::future<TranslateCertificateOutcome> TranslateCertificateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateCertificateRequest&, const TranslateCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateECommerceResult> TranslateECommerceOutcome;
|
||||
typedef std::future<TranslateECommerceOutcome> TranslateECommerceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateECommerceRequest&, const TranslateECommerceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateECommerceAsyncHandler;
|
||||
@@ -70,6 +75,9 @@ namespace AlibabaCloud
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
TranslateCertificateOutcome translateCertificate(const Model::TranslateCertificateRequest &request)const;
|
||||
void translateCertificateAsync(const Model::TranslateCertificateRequest& request, const TranslateCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateCertificateOutcomeCallable translateCertificateCallable(const Model::TranslateCertificateRequest& request) const;
|
||||
TranslateECommerceOutcome translateECommerce(const Model::TranslateECommerceRequest &request)const;
|
||||
void translateECommerceAsync(const Model::TranslateECommerceRequest& request, const TranslateECommerceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateECommerceOutcomeCallable translateECommerceCallable(const Model::TranslateECommerceRequest& request) const;
|
||||
|
||||
@@ -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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateCertificateRequest();
|
||||
~TranslateCertificateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getCertificateType()const;
|
||||
void setCertificateType(const std::string& certificateType);
|
||||
std::string getResultType()const;
|
||||
void setResultType(const std::string& resultType);
|
||||
std::string getImageUrl()const;
|
||||
void setImageUrl(const std::string& imageUrl);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string certificateType_;
|
||||
std::string resultType_;
|
||||
std::string imageUrl_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_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_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct CertificateTranslateItemDTO
|
||||
{
|
||||
std::string valueTranslation;
|
||||
std::string keyTranslation;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<CertificateTranslateItemDTO> translatedValues;
|
||||
};
|
||||
|
||||
|
||||
TranslateCertificateResult();
|
||||
explicit TranslateCertificateResult(const std::string &payload);
|
||||
~TranslateCertificateResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
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, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(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, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(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, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
@@ -159,6 +159,42 @@ AlimtClient::TranslateOutcomeCallable AlimtClient::translateCallable(const Trans
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateCertificateOutcome AlimtClient::translateCertificate(const TranslateCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateCertificateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateCertificateOutcome(TranslateCertificateResult(outcome.result()));
|
||||
else
|
||||
return TranslateCertificateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateCertificateAsync(const TranslateCertificateRequest& request, const TranslateCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateCertificate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateCertificateOutcomeCallable AlimtClient::translateCertificateCallable(const TranslateCertificateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateCertificateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateCertificate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateECommerceOutcome AlimtClient::translateECommerce(const TranslateECommerceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
|
||||
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::POST);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
|
||||
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::GET);
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
|
||||
|
||||
84
alimt/src/model/TranslateCertificateRequest.cc
Normal file
84
alimt/src/model/TranslateCertificateRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/TranslateCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
|
||||
|
||||
TranslateCertificateRequest::TranslateCertificateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateCertificateRequest::~TranslateCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateCertificateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getCertificateType()const
|
||||
{
|
||||
return certificateType_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
|
||||
{
|
||||
certificateType_ = certificateType;
|
||||
setBodyParameter("CertificateType", certificateType);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getResultType()const
|
||||
{
|
||||
return resultType_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setResultType(const std::string& resultType)
|
||||
{
|
||||
resultType_ = resultType;
|
||||
setBodyParameter("ResultType", resultType);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
64
alimt/src/model/TranslateCertificateResult.cc
Normal file
64
alimt/src/model/TranslateCertificateResult.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/alimt/model/TranslateCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateCertificateResult::TranslateCertificateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateCertificateResult::TranslateCertificateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateCertificateResult::~TranslateCertificateResult()
|
||||
{}
|
||||
|
||||
void TranslateCertificateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allTranslatedValuesNode = dataNode["TranslatedValues"]["CertificateTranslateItemDTO"];
|
||||
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
|
||||
{
|
||||
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
|
||||
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
|
||||
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
|
||||
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TranslateCertificateResult::Data TranslateCertificateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
|
||||
TranslateECommerceRequest::TranslateECommerceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
|
||||
{
|
||||
setMethod(HttpRequest::Method::POST);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateECommerceRequest::~TranslateECommerceRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
|
||||
TranslateGeneralRequest::TranslateGeneralRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
|
||||
{
|
||||
setMethod(HttpRequest::Method::POST);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateGeneralRequest::~TranslateGeneralRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Alimt::Model::TranslateRequest;
|
||||
TranslateRequest::TranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "Translate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::POST);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateRequest::~TranslateRequest()
|
||||
|
||||
146
amqp-open/CMakeLists.txt
Normal file
146
amqp-open/CMakeLists.txt
Normal file
@@ -0,0 +1,146 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(amqp-open_public_header
|
||||
include/alibabacloud/amqp-open/Amqp_openClient.h
|
||||
include/alibabacloud/amqp-open/Amqp_openExport.h )
|
||||
|
||||
set(amqp-open_public_header_model
|
||||
include/alibabacloud/amqp-open/model/CreateBindingRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateBindingResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateExchangeRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateExchangeResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateQueueRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateQueueResult.h
|
||||
include/alibabacloud/amqp-open/model/CreateVirtualHostRequest.h
|
||||
include/alibabacloud/amqp-open/model/CreateVirtualHostResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteBindingRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteBindingResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteExchangeRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteExchangeResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteQueueRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteQueueResult.h
|
||||
include/alibabacloud/amqp-open/model/DeleteVirtualHostRequest.h
|
||||
include/alibabacloud/amqp-open/model/DeleteVirtualHostResult.h
|
||||
include/alibabacloud/amqp-open/model/ListBindingsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListBindingsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListDownStreamBindingsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListDownStreamBindingsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListExchangeUpStreamBindingsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListExchangeUpStreamBindingsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListExchangesRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListExchangesResult.h
|
||||
include/alibabacloud/amqp-open/model/ListInstancesRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListInstancesResult.h
|
||||
include/alibabacloud/amqp-open/model/ListQueueUpStreamBindingsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListQueueUpStreamBindingsResult.h
|
||||
include/alibabacloud/amqp-open/model/ListQueuesRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListQueuesResult.h
|
||||
include/alibabacloud/amqp-open/model/ListVirtualHostsRequest.h
|
||||
include/alibabacloud/amqp-open/model/ListVirtualHostsResult.h )
|
||||
|
||||
set(amqp-open_src
|
||||
src/Amqp-openClient.cc
|
||||
src/model/CreateBindingRequest.cc
|
||||
src/model/CreateBindingResult.cc
|
||||
src/model/CreateExchangeRequest.cc
|
||||
src/model/CreateExchangeResult.cc
|
||||
src/model/CreateQueueRequest.cc
|
||||
src/model/CreateQueueResult.cc
|
||||
src/model/CreateVirtualHostRequest.cc
|
||||
src/model/CreateVirtualHostResult.cc
|
||||
src/model/DeleteBindingRequest.cc
|
||||
src/model/DeleteBindingResult.cc
|
||||
src/model/DeleteExchangeRequest.cc
|
||||
src/model/DeleteExchangeResult.cc
|
||||
src/model/DeleteQueueRequest.cc
|
||||
src/model/DeleteQueueResult.cc
|
||||
src/model/DeleteVirtualHostRequest.cc
|
||||
src/model/DeleteVirtualHostResult.cc
|
||||
src/model/ListBindingsRequest.cc
|
||||
src/model/ListBindingsResult.cc
|
||||
src/model/ListDownStreamBindingsRequest.cc
|
||||
src/model/ListDownStreamBindingsResult.cc
|
||||
src/model/ListExchangeUpStreamBindingsRequest.cc
|
||||
src/model/ListExchangeUpStreamBindingsResult.cc
|
||||
src/model/ListExchangesRequest.cc
|
||||
src/model/ListExchangesResult.cc
|
||||
src/model/ListInstancesRequest.cc
|
||||
src/model/ListInstancesResult.cc
|
||||
src/model/ListQueueUpStreamBindingsRequest.cc
|
||||
src/model/ListQueueUpStreamBindingsResult.cc
|
||||
src/model/ListQueuesRequest.cc
|
||||
src/model/ListQueuesResult.cc
|
||||
src/model/ListVirtualHostsRequest.cc
|
||||
src/model/ListVirtualHostsResult.cc )
|
||||
|
||||
add_library(amqp-open ${LIB_TYPE}
|
||||
${amqp-open_public_header}
|
||||
${amqp-open_public_header_model}
|
||||
${amqp-open_src})
|
||||
|
||||
set_target_properties(amqp-open
|
||||
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}amqp-open
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(amqp-open
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_AMQP_OPEN_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(amqp-open
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(amqp-open
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(amqp-open
|
||||
jsoncpp)
|
||||
target_include_directories(amqp-open
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(amqp-open
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(amqp-open
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(amqp-open
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(amqp-open
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${amqp-open_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/amqp-open)
|
||||
install(FILES ${amqp-open_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/amqp-open/model)
|
||||
install(TARGETS amqp-open
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
174
amqp-open/include/alibabacloud/amqp-open/Amqp_openClient.h
Normal file
174
amqp-open/include/alibabacloud/amqp-open/Amqp_openClient.h
Normal file
@@ -0,0 +1,174 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_AMQP_OPEN_AMQP_OPENCLIENT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_AMQP_OPENCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Amqp_openExport.h"
|
||||
#include "model/CreateBindingRequest.h"
|
||||
#include "model/CreateBindingResult.h"
|
||||
#include "model/CreateExchangeRequest.h"
|
||||
#include "model/CreateExchangeResult.h"
|
||||
#include "model/CreateQueueRequest.h"
|
||||
#include "model/CreateQueueResult.h"
|
||||
#include "model/CreateVirtualHostRequest.h"
|
||||
#include "model/CreateVirtualHostResult.h"
|
||||
#include "model/DeleteBindingRequest.h"
|
||||
#include "model/DeleteBindingResult.h"
|
||||
#include "model/DeleteExchangeRequest.h"
|
||||
#include "model/DeleteExchangeResult.h"
|
||||
#include "model/DeleteQueueRequest.h"
|
||||
#include "model/DeleteQueueResult.h"
|
||||
#include "model/DeleteVirtualHostRequest.h"
|
||||
#include "model/DeleteVirtualHostResult.h"
|
||||
#include "model/ListBindingsRequest.h"
|
||||
#include "model/ListBindingsResult.h"
|
||||
#include "model/ListDownStreamBindingsRequest.h"
|
||||
#include "model/ListDownStreamBindingsResult.h"
|
||||
#include "model/ListExchangeUpStreamBindingsRequest.h"
|
||||
#include "model/ListExchangeUpStreamBindingsResult.h"
|
||||
#include "model/ListExchangesRequest.h"
|
||||
#include "model/ListExchangesResult.h"
|
||||
#include "model/ListInstancesRequest.h"
|
||||
#include "model/ListInstancesResult.h"
|
||||
#include "model/ListQueueUpStreamBindingsRequest.h"
|
||||
#include "model/ListQueueUpStreamBindingsResult.h"
|
||||
#include "model/ListQueuesRequest.h"
|
||||
#include "model/ListQueuesResult.h"
|
||||
#include "model/ListVirtualHostsRequest.h"
|
||||
#include "model/ListVirtualHostsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT Amqp_openClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateBindingResult> CreateBindingOutcome;
|
||||
typedef std::future<CreateBindingOutcome> CreateBindingOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateBindingRequest&, const CreateBindingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBindingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateExchangeResult> CreateExchangeOutcome;
|
||||
typedef std::future<CreateExchangeOutcome> CreateExchangeOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateExchangeRequest&, const CreateExchangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateExchangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateQueueResult> CreateQueueOutcome;
|
||||
typedef std::future<CreateQueueOutcome> CreateQueueOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateQueueRequest&, const CreateQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVirtualHostResult> CreateVirtualHostOutcome;
|
||||
typedef std::future<CreateVirtualHostOutcome> CreateVirtualHostOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::CreateVirtualHostRequest&, const CreateVirtualHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVirtualHostAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBindingResult> DeleteBindingOutcome;
|
||||
typedef std::future<DeleteBindingOutcome> DeleteBindingOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteBindingRequest&, const DeleteBindingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBindingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteExchangeResult> DeleteExchangeOutcome;
|
||||
typedef std::future<DeleteExchangeOutcome> DeleteExchangeOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteExchangeRequest&, const DeleteExchangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteExchangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteQueueResult> DeleteQueueOutcome;
|
||||
typedef std::future<DeleteQueueOutcome> DeleteQueueOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteQueueRequest&, const DeleteQueueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQueueAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteVirtualHostResult> DeleteVirtualHostOutcome;
|
||||
typedef std::future<DeleteVirtualHostOutcome> DeleteVirtualHostOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::DeleteVirtualHostRequest&, const DeleteVirtualHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVirtualHostAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBindingsResult> ListBindingsOutcome;
|
||||
typedef std::future<ListBindingsOutcome> ListBindingsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListBindingsRequest&, const ListBindingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBindingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDownStreamBindingsResult> ListDownStreamBindingsOutcome;
|
||||
typedef std::future<ListDownStreamBindingsOutcome> ListDownStreamBindingsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListDownStreamBindingsRequest&, const ListDownStreamBindingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDownStreamBindingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListExchangeUpStreamBindingsResult> ListExchangeUpStreamBindingsOutcome;
|
||||
typedef std::future<ListExchangeUpStreamBindingsOutcome> ListExchangeUpStreamBindingsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListExchangeUpStreamBindingsRequest&, const ListExchangeUpStreamBindingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExchangeUpStreamBindingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListExchangesResult> ListExchangesOutcome;
|
||||
typedef std::future<ListExchangesOutcome> ListExchangesOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListExchangesRequest&, const ListExchangesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExchangesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
|
||||
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListQueueUpStreamBindingsResult> ListQueueUpStreamBindingsOutcome;
|
||||
typedef std::future<ListQueueUpStreamBindingsOutcome> ListQueueUpStreamBindingsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListQueueUpStreamBindingsRequest&, const ListQueueUpStreamBindingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQueueUpStreamBindingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListQueuesResult> ListQueuesOutcome;
|
||||
typedef std::future<ListQueuesOutcome> ListQueuesOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListQueuesRequest&, const ListQueuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQueuesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListVirtualHostsResult> ListVirtualHostsOutcome;
|
||||
typedef std::future<ListVirtualHostsOutcome> ListVirtualHostsOutcomeCallable;
|
||||
typedef std::function<void(const Amqp_openClient*, const Model::ListVirtualHostsRequest&, const ListVirtualHostsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVirtualHostsAsyncHandler;
|
||||
|
||||
Amqp_openClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Amqp_openClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Amqp_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Amqp_openClient();
|
||||
CreateBindingOutcome createBinding(const Model::CreateBindingRequest &request)const;
|
||||
void createBindingAsync(const Model::CreateBindingRequest& request, const CreateBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBindingOutcomeCallable createBindingCallable(const Model::CreateBindingRequest& request) const;
|
||||
CreateExchangeOutcome createExchange(const Model::CreateExchangeRequest &request)const;
|
||||
void createExchangeAsync(const Model::CreateExchangeRequest& request, const CreateExchangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateExchangeOutcomeCallable createExchangeCallable(const Model::CreateExchangeRequest& request) const;
|
||||
CreateQueueOutcome createQueue(const Model::CreateQueueRequest &request)const;
|
||||
void createQueueAsync(const Model::CreateQueueRequest& request, const CreateQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateQueueOutcomeCallable createQueueCallable(const Model::CreateQueueRequest& request) const;
|
||||
CreateVirtualHostOutcome createVirtualHost(const Model::CreateVirtualHostRequest &request)const;
|
||||
void createVirtualHostAsync(const Model::CreateVirtualHostRequest& request, const CreateVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVirtualHostOutcomeCallable createVirtualHostCallable(const Model::CreateVirtualHostRequest& request) const;
|
||||
DeleteBindingOutcome deleteBinding(const Model::DeleteBindingRequest &request)const;
|
||||
void deleteBindingAsync(const Model::DeleteBindingRequest& request, const DeleteBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBindingOutcomeCallable deleteBindingCallable(const Model::DeleteBindingRequest& request) const;
|
||||
DeleteExchangeOutcome deleteExchange(const Model::DeleteExchangeRequest &request)const;
|
||||
void deleteExchangeAsync(const Model::DeleteExchangeRequest& request, const DeleteExchangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteExchangeOutcomeCallable deleteExchangeCallable(const Model::DeleteExchangeRequest& request) const;
|
||||
DeleteQueueOutcome deleteQueue(const Model::DeleteQueueRequest &request)const;
|
||||
void deleteQueueAsync(const Model::DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const;
|
||||
DeleteVirtualHostOutcome deleteVirtualHost(const Model::DeleteVirtualHostRequest &request)const;
|
||||
void deleteVirtualHostAsync(const Model::DeleteVirtualHostRequest& request, const DeleteVirtualHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteVirtualHostOutcomeCallable deleteVirtualHostCallable(const Model::DeleteVirtualHostRequest& request) const;
|
||||
ListBindingsOutcome listBindings(const Model::ListBindingsRequest &request)const;
|
||||
void listBindingsAsync(const Model::ListBindingsRequest& request, const ListBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBindingsOutcomeCallable listBindingsCallable(const Model::ListBindingsRequest& request) const;
|
||||
ListDownStreamBindingsOutcome listDownStreamBindings(const Model::ListDownStreamBindingsRequest &request)const;
|
||||
void listDownStreamBindingsAsync(const Model::ListDownStreamBindingsRequest& request, const ListDownStreamBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDownStreamBindingsOutcomeCallable listDownStreamBindingsCallable(const Model::ListDownStreamBindingsRequest& request) const;
|
||||
ListExchangeUpStreamBindingsOutcome listExchangeUpStreamBindings(const Model::ListExchangeUpStreamBindingsRequest &request)const;
|
||||
void listExchangeUpStreamBindingsAsync(const Model::ListExchangeUpStreamBindingsRequest& request, const ListExchangeUpStreamBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListExchangeUpStreamBindingsOutcomeCallable listExchangeUpStreamBindingsCallable(const Model::ListExchangeUpStreamBindingsRequest& request) const;
|
||||
ListExchangesOutcome listExchanges(const Model::ListExchangesRequest &request)const;
|
||||
void listExchangesAsync(const Model::ListExchangesRequest& request, const ListExchangesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListExchangesOutcomeCallable listExchangesCallable(const Model::ListExchangesRequest& request) const;
|
||||
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
|
||||
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
|
||||
ListQueueUpStreamBindingsOutcome listQueueUpStreamBindings(const Model::ListQueueUpStreamBindingsRequest &request)const;
|
||||
void listQueueUpStreamBindingsAsync(const Model::ListQueueUpStreamBindingsRequest& request, const ListQueueUpStreamBindingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQueueUpStreamBindingsOutcomeCallable listQueueUpStreamBindingsCallable(const Model::ListQueueUpStreamBindingsRequest& request) const;
|
||||
ListQueuesOutcome listQueues(const Model::ListQueuesRequest &request)const;
|
||||
void listQueuesAsync(const Model::ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListQueuesOutcomeCallable listQueuesCallable(const Model::ListQueuesRequest& request) const;
|
||||
ListVirtualHostsOutcome listVirtualHosts(const Model::ListVirtualHostsRequest &request)const;
|
||||
void listVirtualHostsAsync(const Model::ListVirtualHostsRequest& request, const ListVirtualHostsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVirtualHostsOutcomeCallable listVirtualHostsCallable(const Model::ListVirtualHostsRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_AMQP_OPENCLIENT_H_
|
||||
32
amqp-open/include/alibabacloud/amqp-open/Amqp_openExport.h
Normal file
32
amqp-open/include/alibabacloud/amqp-open/Amqp_openExport.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_AMQP_OPEN_AMQP_OPENEXPORT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_AMQP_OPENEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_AMQP_OPEN_LIBRARY)
|
||||
# define ALIBABACLOUD_AMQP_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_AMQP_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_AMQP_OPEN_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_AMQP_OPENEXPORT_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_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateBindingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBindingRequest();
|
||||
~CreateBindingRequest();
|
||||
|
||||
std::string getArgument()const;
|
||||
void setArgument(const std::string& argument);
|
||||
std::string getDestinationName()const;
|
||||
void setDestinationName(const std::string& destinationName);
|
||||
std::string getSourceExchange()const;
|
||||
void setSourceExchange(const std::string& sourceExchange);
|
||||
std::string getBindingKey()const;
|
||||
void setBindingKey(const std::string& bindingKey);
|
||||
std::string getBindingType()const;
|
||||
void setBindingType(const std::string& bindingType);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string argument_;
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateBindingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateBindingResult();
|
||||
explicit CreateBindingResult(const std::string &payload);
|
||||
~CreateBindingResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEBINDINGRESULT_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_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateExchangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateExchangeRequest();
|
||||
~CreateExchangeRequest();
|
||||
|
||||
bool getInternal()const;
|
||||
void setInternal(bool internal);
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getAlternateExchange()const;
|
||||
void setAlternateExchange(const std::string& alternateExchange);
|
||||
bool getAutoDeleteState()const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
std::string getExchangeType()const;
|
||||
void setExchangeType(const std::string& exchangeType);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
bool internal_;
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string alternateExchange_;
|
||||
bool autoDeleteState_;
|
||||
std::string exchangeType_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateExchangeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateExchangeResult();
|
||||
explicit CreateExchangeResult(const std::string &payload);
|
||||
~CreateExchangeResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEEXCHANGERESULT_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_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateQueueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateQueueRequest();
|
||||
~CreateQueueRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getDeadLetterRoutingKey()const;
|
||||
void setDeadLetterRoutingKey(const std::string& deadLetterRoutingKey);
|
||||
long getMaxLength()const;
|
||||
void setMaxLength(long maxLength);
|
||||
long getAutoExpireState()const;
|
||||
void setAutoExpireState(long autoExpireState);
|
||||
std::string getDeadLetterExchange()const;
|
||||
void setDeadLetterExchange(const std::string& deadLetterExchange);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
bool getExclusiveState()const;
|
||||
void setExclusiveState(bool exclusiveState);
|
||||
bool getAutoDeleteState()const;
|
||||
void setAutoDeleteState(bool autoDeleteState);
|
||||
long getMessageTTL()const;
|
||||
void setMessageTTL(long messageTTL);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
int getMaximumPriority()const;
|
||||
void setMaximumPriority(int maximumPriority);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string deadLetterRoutingKey_;
|
||||
long maxLength_;
|
||||
long autoExpireState_;
|
||||
std::string deadLetterExchange_;
|
||||
std::string instanceId_;
|
||||
bool exclusiveState_;
|
||||
bool autoDeleteState_;
|
||||
long messageTTL_;
|
||||
std::string virtualHost_;
|
||||
int maximumPriority_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateQueueResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateQueueResult();
|
||||
explicit CreateQueueResult(const std::string &payload);
|
||||
~CreateQueueResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEQUEUERESULT_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_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateVirtualHostRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVirtualHostRequest();
|
||||
~CreateVirtualHostRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT CreateVirtualHostResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVirtualHostResult();
|
||||
explicit CreateVirtualHostResult(const std::string &payload);
|
||||
~CreateVirtualHostResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_CREATEVIRTUALHOSTRESULT_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_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteBindingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBindingRequest();
|
||||
~DeleteBindingRequest();
|
||||
|
||||
std::string getDestinationName()const;
|
||||
void setDestinationName(const std::string& destinationName);
|
||||
std::string getSourceExchange()const;
|
||||
void setSourceExchange(const std::string& sourceExchange);
|
||||
std::string getBindingKey()const;
|
||||
void setBindingKey(const std::string& bindingKey);
|
||||
std::string getBindingType()const;
|
||||
void setBindingType(const std::string& bindingType);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string destinationName_;
|
||||
std::string sourceExchange_;
|
||||
std::string bindingKey_;
|
||||
std::string bindingType_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteBindingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteBindingResult();
|
||||
explicit DeleteBindingResult(const std::string &payload);
|
||||
~DeleteBindingResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEBINDINGRESULT_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_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteExchangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteExchangeRequest();
|
||||
~DeleteExchangeRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteExchangeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteExchangeResult();
|
||||
explicit DeleteExchangeResult(const std::string &payload);
|
||||
~DeleteExchangeResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEEXCHANGERESULT_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_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteQueueRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteQueueRequest();
|
||||
~DeleteQueueRequest();
|
||||
|
||||
std::string getQueueName()const;
|
||||
void setQueueName(const std::string& queueName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string queueName_;
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUERESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteQueueResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteQueueResult();
|
||||
explicit DeleteQueueResult(const std::string &payload);
|
||||
~DeleteQueueResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEQUEUERESULT_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_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteVirtualHostRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteVirtualHostRequest();
|
||||
~DeleteVirtualHostRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT DeleteVirtualHostResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteVirtualHostResult();
|
||||
explicit DeleteVirtualHostResult(const std::string &payload);
|
||||
~DeleteVirtualHostResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_DELETEVIRTUALHOSTRESULT_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_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListBindingsRequest();
|
||||
~ListBindingsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListBindingsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct BindingDO
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<BindingDO> bindings;
|
||||
};
|
||||
|
||||
|
||||
ListBindingsResult();
|
||||
explicit ListBindingsResult(const std::string &payload);
|
||||
~ListBindingsResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTBINDINGSRESULT_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_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListDownStreamBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDownStreamBindingsRequest();
|
||||
~ListDownStreamBindingsRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSREQUEST_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_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListDownStreamBindingsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct BindingVO
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<BindingVO> bindings;
|
||||
};
|
||||
|
||||
|
||||
ListDownStreamBindingsResult();
|
||||
explicit ListDownStreamBindingsResult(const std::string &payload);
|
||||
~ListDownStreamBindingsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTDOWNSTREAMBINDINGSRESULT_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_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangeUpStreamBindingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListExchangeUpStreamBindingsRequest();
|
||||
~ListExchangeUpStreamBindingsRequest();
|
||||
|
||||
std::string getExchangeName()const;
|
||||
void setExchangeName(const std::string& exchangeName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string exchangeName_;
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSREQUEST_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_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSRESULT_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangeUpStreamBindingsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct BindingVO
|
||||
{
|
||||
std::string sourceExchange;
|
||||
std::string argument;
|
||||
std::string bindingType;
|
||||
std::string bindingKey;
|
||||
std::string destinationName;
|
||||
};
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<BindingVO> bindings;
|
||||
};
|
||||
|
||||
|
||||
ListExchangeUpStreamBindingsResult();
|
||||
explicit ListExchangeUpStreamBindingsResult(const std::string &payload);
|
||||
~ListExchangeUpStreamBindingsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGEUPSTREAMBINDINGSRESULT_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_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
#define ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/amqp-open/Amqp_openExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Amqp_open
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_AMQP_OPEN_EXPORT ListExchangesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListExchangesRequest();
|
||||
~ListExchangesRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getVirtualHost()const;
|
||||
void setVirtualHost(const std::string& virtualHost);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string virtualHost_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_AMQP_OPEN_MODEL_LISTEXCHANGESREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user