Compare commits
43 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c | ||
|
|
8a1c79417e | ||
|
|
ad02a00036 | ||
|
|
3dd38f70c2 | ||
|
|
cc6cea96e4 | ||
|
|
f819d8866c | ||
|
|
d53a27c55f | ||
|
|
112b1d25da | ||
|
|
f51d79f1b9 | ||
|
|
e53482d9c6 | ||
|
|
b004f4b9fa | ||
|
|
c9cf723562 | ||
|
|
b1020d412c | ||
|
|
c4d6cb06f1 | ||
|
|
eeaeed4023 | ||
|
|
d7e14e0c1b | ||
|
|
18dc3cd7d9 | ||
|
|
2dbb76d303 | ||
|
|
ae65dcf4c3 | ||
|
|
1c5ad6a48c | ||
|
|
1a13b03f29 | ||
|
|
c1e07be47e | ||
|
|
8fdb5cc851 | ||
|
|
20774ebe3a | ||
|
|
485d712ddd | ||
|
|
abfdc41f3b | ||
|
|
093332279d | ||
|
|
85daa7c446 | ||
|
|
2e465b8b77 | ||
|
|
c58d7b0968 | ||
|
|
528c5282a8 | ||
|
|
ec000a3be6 | ||
|
|
636e24a33f | ||
|
|
cc1b078ff1 | ||
|
|
30fd9f48a0 | ||
|
|
c911315170 | ||
|
|
26e49b09e1 |
150
CHANGELOG
150
CHANGELOG
@@ -1,3 +1,153 @@
|
||||
2020-04-24 Version: 1.36.377
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-24 Version: 1.36.376
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-23 Version: 1.36.375
|
||||
- GetUser API return user execute query count information.
|
||||
|
||||
2020-04-23 Version: 1.36.374
|
||||
- Fixed bugs for MassPush API.
|
||||
|
||||
2020-04-23 Version: 1.36.373
|
||||
- Add location info.
|
||||
|
||||
2020-04-23 Version: 1.36.372
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-22 Version: 1.36.371
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-21 Version: 1.36.370
|
||||
- Supported API for DescribeTags.
|
||||
- Supported API for ListTagResources.
|
||||
- Supported API for TagResources.
|
||||
- Supported API for UntagResources.
|
||||
|
||||
2020-04-21 Version: 1.36.369
|
||||
- Supported PackageDesign Apis.
|
||||
- Supported Api ListPackageDesignModelTypes.
|
||||
- Supported Api PreviewModelForPackageDesign.
|
||||
- Supported Api RenderImageForPackageDesign.
|
||||
- Supported Api GetRenderResult.
|
||||
|
||||
2020-04-21 Version: 1.36.368
|
||||
- Add Statistics API.
|
||||
|
||||
2020-04-20 Version: 1.36.367
|
||||
- Add TemplateId.
|
||||
|
||||
2020-04-20 Version: 1.36.366
|
||||
- Fix FaceContrastPicture.
|
||||
|
||||
2020-04-20 Version: 1.36.365
|
||||
- Add kibana network white Ips.
|
||||
|
||||
2020-04-19 Version: 1.36.364
|
||||
- Multimedia poc modified.
|
||||
|
||||
2020-04-17 Version: 1.36.363
|
||||
- DescribeInstanceTypes support TotalEniQueueQuantity.
|
||||
|
||||
2020-04-16 Version: 1.36.362
|
||||
- Modify `SubmitSmarttagJob`.
|
||||
|
||||
2020-04-16 Version: 1.36.361
|
||||
- Add ModifyWhiteIps.
|
||||
|
||||
2020-04-16 Version: 1.36.360
|
||||
- Add BatchOptimization param in Stop and Start Instances.
|
||||
- Add RemoveSymbols in GetInstanceConsoleOutput.
|
||||
- Add ImageFamily in ModifyImageAttribute.
|
||||
- Customize InstanceType on DedicatedHosts is supported.
|
||||
- Add StorageCapacityUnit interfaces.
|
||||
- Add param Tag in CreateAutoSnapshotPolicy.
|
||||
|
||||
2020-04-16 Version: 1.36.359
|
||||
- Add features for open api.
|
||||
|
||||
2020-04-15 Version: 1.36.358
|
||||
- Add pre train service api.
|
||||
|
||||
2020-04-15 Version: 1.36.357
|
||||
- CreateNode API add return NodeId.
|
||||
|
||||
2020-04-15 Version: 1.36.356
|
||||
- Vision-poc response modified.
|
||||
|
||||
2020-04-14 Version: 1.36.355
|
||||
- Support ListSensitiveColumns, ListSensitiveColumnsDetail API.
|
||||
- ListUsers API return user execute query count information.
|
||||
- Fix ListWorkFlowTemplates to return create user information.
|
||||
- UpdateUser API support to update user max execute query count.
|
||||
|
||||
2020-04-14 Version: 1.36.354
|
||||
- Supported CreateSegmentBodyJob.
|
||||
|
||||
2020-04-13 Version: 1.36.353
|
||||
- Fix ListTaskExecutions SDK error.
|
||||
|
||||
2020-04-10 Version: 1.36.352
|
||||
- Generated 2017-05-25 for `Dypnsapi`.
|
||||
|
||||
2020-04-10 Version: 1.36.351
|
||||
- Support GetOfficeEditURL.
|
||||
- Support RefreshOfficeEditToken.
|
||||
|
||||
2020-04-10 Version: 1.36.350
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-10 Version: 1.36.349
|
||||
- Support DescribeIpv4Location.
|
||||
|
||||
2020-04-09 Version: 1.36.348
|
||||
- Add prometheus api AddGrafana and AddIntegration.
|
||||
|
||||
2020-04-09 Version: 1.36.347
|
||||
- Generated 2018-03-13 for `retailcloud`.
|
||||
|
||||
2020-04-09 Version: 1.36.346
|
||||
- Add DescribePrice API.
|
||||
|
||||
2020-04-09 Version: 1.36.345
|
||||
- WAF OpenApi SDK Release.
|
||||
|
||||
2020-04-09 Version: 1.36.344
|
||||
- Add DescribeDBClusterAvailableResources.
|
||||
|
||||
2020-04-09 Version: 1.36.343
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add DescribePrice API.
|
||||
|
||||
2020-04-08 Version: 1.36.342
|
||||
- Add SubCode for DescribeFaceVerify.
|
||||
|
||||
2020-04-08 Version: 1.36.341
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-03 Version: 1.36.340
|
||||
- Add trace api.
|
||||
- Add prometheus api.
|
||||
|
||||
2020-04-03 Version: 1.36.339
|
||||
- Support shelf type for planogram position.
|
||||
|
||||
2020-04-03 Version: 1.36.338
|
||||
- Support namespaces.
|
||||
|
||||
2020-04-02 Version: 1.36.337
|
||||
- Add API ContrastFaceVerify.
|
||||
|
||||
2020-04-02 Version: 1.36.336
|
||||
- Support for WaitTimeSeconds for DescribeExecution.
|
||||
|
||||
2020-04-01 Version: 1.36.335
|
||||
- DescribeVerifyToken API Add Parameters-UserIp and UserPhoneNumber and UserRegistTime.
|
||||
|
||||
|
||||
@@ -9,12 +9,14 @@ project(alibabacloud-sdk VERSION ${version})
|
||||
message(STATUS "Project version: ${PROJECT_VERSION}")
|
||||
|
||||
set(TARGET_OUTPUT_NAME_PREFIX "alibabacloud-sdk-" CACHE STRING "The target's output name prefix")
|
||||
set(BUILD_PRODUCT "" CACHE STRING "Build by lower name of product")
|
||||
|
||||
option(BUILD_SHARED_LIBS "Enable shared library" ON)
|
||||
option(BUILD_UNIT_TESTS "Enable unit tests" OFF)
|
||||
option(BUILD_FUNCTION_TESTS "Enable function test" OFF)
|
||||
option(BUILD_PRODUCT "Build by lower name of product" OFF)
|
||||
|
||||
set(LIB_TYPE STATIC)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(LIB_TYPE SHARED)
|
||||
add_definitions(-DALIBABACLOUD_SHARED)
|
||||
@@ -57,9 +59,10 @@ if(BUILD_FUNCTION_TESTS)
|
||||
add_subdirectory(test/function_test/vpc)
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_PRODUCT)
|
||||
message(WARNING "INVALID FOLDER 'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
if(BUILD_PRODUCT STREQUAL "")
|
||||
message(WARNING "Please set the value of 'BUILD_PRODUCT'")
|
||||
else()
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(${BUILD_PRODUCT})
|
||||
message(STATUS "'BUILD_PRODUCT'=${BUILD_PRODUCT}")
|
||||
endif()
|
||||
|
||||
@@ -103,6 +103,7 @@ sudo sh easyinstall.sh ecs
|
||||
* 选择 `Browse Source` 为 `源代码目录(aliyun-openapi-cpp-sdk)`
|
||||
* 选择 `Browse build` 为 `构建目录(sdk_build)`
|
||||
* 点击 `configure`
|
||||
* 使用小写的产品名称,设置 `BUILD_PRODUCT` 参数的值
|
||||
* 点击 `generate`, 构建 VS 解决方案。
|
||||
|
||||
4. 编译安装 C++ SDK
|
||||
|
||||
@@ -109,6 +109,8 @@ git clone https://github.com/aliyun/aliyun-openapi-cpp-sdk.git
|
||||
|
||||
- `Configure`
|
||||
|
||||
- use the lower name of product to set the value of `BUILD_PRODUCT`
|
||||
|
||||
- `Generate`
|
||||
|
||||
4. Build and Install C++ SDK
|
||||
|
||||
@@ -35,6 +35,8 @@ set(acm_public_header_model
|
||||
include/alibabacloud/acm/model/DescribeConfigurationResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespaceResult.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesRequest.h
|
||||
include/alibabacloud/acm/model/DescribeNamespacesResult.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceRequest.h
|
||||
include/alibabacloud/acm/model/UpdateNamespaceResult.h )
|
||||
|
||||
@@ -54,6 +56,8 @@ set(acm_src
|
||||
src/model/DescribeConfigurationResult.cc
|
||||
src/model/DescribeNamespaceRequest.cc
|
||||
src/model/DescribeNamespaceResult.cc
|
||||
src/model/DescribeNamespacesRequest.cc
|
||||
src/model/DescribeNamespacesResult.cc
|
||||
src/model/UpdateNamespaceRequest.cc
|
||||
src/model/UpdateNamespaceResult.cc )
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "model/DescribeConfigurationResult.h"
|
||||
#include "model/DescribeNamespaceRequest.h"
|
||||
#include "model/DescribeNamespaceResult.h"
|
||||
#include "model/DescribeNamespacesRequest.h"
|
||||
#include "model/DescribeNamespacesResult.h"
|
||||
#include "model/UpdateNamespaceRequest.h"
|
||||
#include "model/UpdateNamespaceResult.h"
|
||||
|
||||
@@ -68,6 +70,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeNamespaceResult> DescribeNamespaceOutcome;
|
||||
typedef std::future<DescribeNamespaceOutcome> DescribeNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespaceRequest&, const DescribeNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNamespacesResult> DescribeNamespacesOutcome;
|
||||
typedef std::future<DescribeNamespacesOutcome> DescribeNamespacesOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::DescribeNamespacesRequest&, const DescribeNamespacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNamespacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNamespaceResult> UpdateNamespaceOutcome;
|
||||
typedef std::future<UpdateNamespaceOutcome> UpdateNamespaceOutcomeCallable;
|
||||
typedef std::function<void(const AcmClient*, const Model::UpdateNamespaceRequest&, const UpdateNamespaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNamespaceAsyncHandler;
|
||||
@@ -97,6 +102,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
DescribeNamespacesOutcome describeNamespaces(const Model::DescribeNamespacesRequest &request)const;
|
||||
void describeNamespacesAsync(const Model::DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNamespacesOutcomeCallable describeNamespacesCallable(const Model::DescribeNamespacesRequest& 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;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNamespacesRequest();
|
||||
~DescribeNamespacesRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESREQUEST_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_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
#define ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/acm/AcmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Acm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ACM_EXPORT DescribeNamespacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct _Namespace
|
||||
{
|
||||
std::string namespaceName;
|
||||
int type;
|
||||
int quota;
|
||||
int configCount;
|
||||
std::string namespaceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeNamespacesResult();
|
||||
explicit DescribeNamespacesResult(const std::string &payload);
|
||||
~DescribeNamespacesResult();
|
||||
std::vector<_Namespace> getNamespaces()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<_Namespace> namespaces_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ACM_MODEL_DESCRIBENAMESPACESRESULT_H_
|
||||
@@ -303,6 +303,42 @@ AcmClient::DescribeNamespaceOutcomeCallable AcmClient::describeNamespaceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcome AcmClient::describeNamespaces(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNamespacesOutcome(DescribeNamespacesResult(outcome.result()));
|
||||
else
|
||||
return DescribeNamespacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AcmClient::describeNamespacesAsync(const DescribeNamespacesRequest& request, const DescribeNamespacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNamespaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AcmClient::DescribeNamespacesOutcomeCallable AcmClient::describeNamespacesCallable(const DescribeNamespacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNamespacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNamespaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AcmClient::UpdateNamespaceOutcome AcmClient::updateNamespace(const UpdateNamespaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
30
acm/src/model/DescribeNamespacesRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/acm/model/DescribeNamespacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Acm::Model::DescribeNamespacesRequest;
|
||||
|
||||
DescribeNamespacesRequest::DescribeNamespacesRequest() :
|
||||
RoaServiceRequest("acm", "2020-02-06")
|
||||
{
|
||||
setResourcePath("/diamond-ops/pop/namespace/list");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespacesRequest::~DescribeNamespacesRequest()
|
||||
{}
|
||||
|
||||
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
79
acm/src/model/DescribeNamespacesResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/acm/model/DescribeNamespacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Acm;
|
||||
using namespace AlibabaCloud::Acm::Model;
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespacesResult::~DescribeNamespacesResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNamespacesNode = value["Namespaces"]["Namespace"];
|
||||
for (auto valueNamespacesNamespace : allNamespacesNode)
|
||||
{
|
||||
_Namespace namespacesObject;
|
||||
if(!valueNamespacesNamespace["ConfigCount"].isNull())
|
||||
namespacesObject.configCount = std::stoi(valueNamespacesNamespace["ConfigCount"].asString());
|
||||
if(!valueNamespacesNamespace["NamespaceId"].isNull())
|
||||
namespacesObject.namespaceId = valueNamespacesNamespace["NamespaceId"].asString();
|
||||
if(!valueNamespacesNamespace["NamespaceName"].isNull())
|
||||
namespacesObject.namespaceName = valueNamespacesNamespace["NamespaceName"].asString();
|
||||
if(!valueNamespacesNamespace["Quota"].isNull())
|
||||
namespacesObject.quota = std::stoi(valueNamespacesNamespace["Quota"].asString());
|
||||
if(!valueNamespacesNamespace["Type"].isNull())
|
||||
namespacesObject.type = std::stoi(valueNamespacesNamespace["Type"].asString());
|
||||
namespaces_.push_back(namespacesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNamespacesResult::_Namespace> DescribeNamespacesResult::getNamespaces()const
|
||||
{
|
||||
return namespaces_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -141,6 +141,8 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h
|
||||
include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeSupportLinesResult.h
|
||||
include/alibabacloud/alidns/model/DescribeTagsRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeTagsResult.h
|
||||
include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeTransferDomainsResult.h
|
||||
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h
|
||||
@@ -149,6 +151,8 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/GetMainDomainNameResult.h
|
||||
include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h
|
||||
include/alibabacloud/alidns/model/GetTxtRecordForVerifyResult.h
|
||||
include/alibabacloud/alidns/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h
|
||||
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h
|
||||
include/alibabacloud/alidns/model/OperateBatchDomainRequest.h
|
||||
@@ -169,10 +173,14 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/SetGtmAccessModeResult.h
|
||||
include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h
|
||||
include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h
|
||||
include/alibabacloud/alidns/model/TagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/TagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/TransferDomainRequest.h
|
||||
include/alibabacloud/alidns/model/TransferDomainResult.h
|
||||
include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h
|
||||
include/alibabacloud/alidns/model/UnbindInstanceDomainsResult.h
|
||||
include/alibabacloud/alidns/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/alidns/model/UntagResourcesResult.h
|
||||
include/alibabacloud/alidns/model/UpdateCustomLineRequest.h
|
||||
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
|
||||
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
|
||||
@@ -318,6 +326,8 @@ set(alidns_src
|
||||
src/model/DescribeSubDomainRecordsResult.cc
|
||||
src/model/DescribeSupportLinesRequest.cc
|
||||
src/model/DescribeSupportLinesResult.cc
|
||||
src/model/DescribeTagsRequest.cc
|
||||
src/model/DescribeTagsResult.cc
|
||||
src/model/DescribeTransferDomainsRequest.cc
|
||||
src/model/DescribeTransferDomainsResult.cc
|
||||
src/model/ExecuteGtmRecoveryPlanRequest.cc
|
||||
@@ -326,6 +336,8 @@ set(alidns_src
|
||||
src/model/GetMainDomainNameResult.cc
|
||||
src/model/GetTxtRecordForVerifyRequest.cc
|
||||
src/model/GetTxtRecordForVerifyResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ModifyHichinaDomainDNSRequest.cc
|
||||
src/model/ModifyHichinaDomainDNSResult.cc
|
||||
src/model/OperateBatchDomainRequest.cc
|
||||
@@ -346,10 +358,14 @@ set(alidns_src
|
||||
src/model/SetGtmAccessModeResult.cc
|
||||
src/model/SetGtmMonitorStatusRequest.cc
|
||||
src/model/SetGtmMonitorStatusResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/TransferDomainRequest.cc
|
||||
src/model/TransferDomainResult.cc
|
||||
src/model/UnbindInstanceDomainsRequest.cc
|
||||
src/model/UnbindInstanceDomainsResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdateCustomLineRequest.cc
|
||||
src/model/UpdateCustomLineResult.cc
|
||||
src/model/UpdateDNSSLBWeightRequest.cc
|
||||
|
||||
@@ -142,6 +142,8 @@
|
||||
#include "model/DescribeSubDomainRecordsResult.h"
|
||||
#include "model/DescribeSupportLinesRequest.h"
|
||||
#include "model/DescribeSupportLinesResult.h"
|
||||
#include "model/DescribeTagsRequest.h"
|
||||
#include "model/DescribeTagsResult.h"
|
||||
#include "model/DescribeTransferDomainsRequest.h"
|
||||
#include "model/DescribeTransferDomainsResult.h"
|
||||
#include "model/ExecuteGtmRecoveryPlanRequest.h"
|
||||
@@ -150,6 +152,8 @@
|
||||
#include "model/GetMainDomainNameResult.h"
|
||||
#include "model/GetTxtRecordForVerifyRequest.h"
|
||||
#include "model/GetTxtRecordForVerifyResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ModifyHichinaDomainDNSRequest.h"
|
||||
#include "model/ModifyHichinaDomainDNSResult.h"
|
||||
#include "model/OperateBatchDomainRequest.h"
|
||||
@@ -170,10 +174,14 @@
|
||||
#include "model/SetGtmAccessModeResult.h"
|
||||
#include "model/SetGtmMonitorStatusRequest.h"
|
||||
#include "model/SetGtmMonitorStatusResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/TransferDomainRequest.h"
|
||||
#include "model/TransferDomainResult.h"
|
||||
#include "model/UnbindInstanceDomainsRequest.h"
|
||||
#include "model/UnbindInstanceDomainsResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpdateCustomLineRequest.h"
|
||||
#include "model/UpdateCustomLineResult.h"
|
||||
#include "model/UpdateDNSSLBWeightRequest.h"
|
||||
@@ -385,6 +393,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSupportLinesResult> DescribeSupportLinesOutcome;
|
||||
typedef std::future<DescribeSupportLinesOutcome> DescribeSupportLinesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeSupportLinesRequest&, const DescribeSupportLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSupportLinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTagsResult> DescribeTagsOutcome;
|
||||
typedef std::future<DescribeTagsOutcome> DescribeTagsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeTagsRequest&, const DescribeTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTransferDomainsResult> DescribeTransferDomainsOutcome;
|
||||
typedef std::future<DescribeTransferDomainsOutcome> DescribeTransferDomainsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeTransferDomainsRequest&, const DescribeTransferDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTransferDomainsAsyncHandler;
|
||||
@@ -397,6 +408,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTxtRecordForVerifyResult> GetTxtRecordForVerifyOutcome;
|
||||
typedef std::future<GetTxtRecordForVerifyOutcome> GetTxtRecordForVerifyOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::GetTxtRecordForVerifyRequest&, const GetTxtRecordForVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTxtRecordForVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyHichinaDomainDNSResult> ModifyHichinaDomainDNSOutcome;
|
||||
typedef std::future<ModifyHichinaDomainDNSOutcome> ModifyHichinaDomainDNSOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::ModifyHichinaDomainDNSRequest&, const ModifyHichinaDomainDNSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHichinaDomainDNSAsyncHandler;
|
||||
@@ -427,12 +441,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetGtmMonitorStatusResult> SetGtmMonitorStatusOutcome;
|
||||
typedef std::future<SetGtmMonitorStatusOutcome> SetGtmMonitorStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::SetGtmMonitorStatusRequest&, const SetGtmMonitorStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetGtmMonitorStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::TransferDomainResult> TransferDomainOutcome;
|
||||
typedef std::future<TransferDomainOutcome> TransferDomainOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::TransferDomainRequest&, const TransferDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindInstanceDomainsResult> UnbindInstanceDomainsOutcome;
|
||||
typedef std::future<UnbindInstanceDomainsOutcome> UnbindInstanceDomainsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UnbindInstanceDomainsRequest&, const UnbindInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindInstanceDomainsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCustomLineResult> UpdateCustomLineOutcome;
|
||||
typedef std::future<UpdateCustomLineOutcome> UpdateCustomLineOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::UpdateCustomLineRequest&, const UpdateCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomLineAsyncHandler;
|
||||
@@ -651,6 +671,9 @@ namespace AlibabaCloud
|
||||
DescribeSupportLinesOutcome describeSupportLines(const Model::DescribeSupportLinesRequest &request)const;
|
||||
void describeSupportLinesAsync(const Model::DescribeSupportLinesRequest& request, const DescribeSupportLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSupportLinesOutcomeCallable describeSupportLinesCallable(const Model::DescribeSupportLinesRequest& request) const;
|
||||
DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const;
|
||||
void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const;
|
||||
DescribeTransferDomainsOutcome describeTransferDomains(const Model::DescribeTransferDomainsRequest &request)const;
|
||||
void describeTransferDomainsAsync(const Model::DescribeTransferDomainsRequest& request, const DescribeTransferDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTransferDomainsOutcomeCallable describeTransferDomainsCallable(const Model::DescribeTransferDomainsRequest& request) const;
|
||||
@@ -663,6 +686,9 @@ namespace AlibabaCloud
|
||||
GetTxtRecordForVerifyOutcome getTxtRecordForVerify(const Model::GetTxtRecordForVerifyRequest &request)const;
|
||||
void getTxtRecordForVerifyAsync(const Model::GetTxtRecordForVerifyRequest& request, const GetTxtRecordForVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTxtRecordForVerifyOutcomeCallable getTxtRecordForVerifyCallable(const Model::GetTxtRecordForVerifyRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const;
|
||||
void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const;
|
||||
@@ -693,12 +719,18 @@ namespace AlibabaCloud
|
||||
SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const;
|
||||
void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
TransferDomainOutcome transferDomain(const Model::TransferDomainRequest &request)const;
|
||||
void transferDomainAsync(const Model::TransferDomainRequest& request, const TransferDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TransferDomainOutcomeCallable transferDomainCallable(const Model::TransferDomainRequest& request) const;
|
||||
UnbindInstanceDomainsOutcome unbindInstanceDomains(const Model::UnbindInstanceDomainsRequest &request)const;
|
||||
void unbindInstanceDomainsAsync(const Model::UnbindInstanceDomainsRequest& request, const UnbindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindInstanceDomainsOutcomeCallable unbindInstanceDomainsCallable(const Model::UnbindInstanceDomainsRequest& request) const;
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
UpdateCustomLineOutcome updateCustomLine(const Model::UpdateCustomLineRequest &request)const;
|
||||
void updateCustomLineAsync(const Model::UpdateCustomLineRequest& request, const UpdateCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCustomLineOutcomeCallable updateCustomLineCallable(const Model::UpdateCustomLineRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeDomainsRequest();
|
||||
@@ -43,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getKeyWord()const;
|
||||
@@ -67,6 +75,7 @@ namespace AlibabaCloud
|
||||
long pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
long pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
std::string keyWord_;
|
||||
std::string direction_;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Domain
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string groupName;
|
||||
bool aliDomain;
|
||||
std::string domainName;
|
||||
@@ -52,6 +57,7 @@ namespace AlibabaCloud
|
||||
bool instanceExpired;
|
||||
long recordCount;
|
||||
long createTimestamp;
|
||||
std::vector<Domain::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTagsRequest();
|
||||
~DescribeTagsRequest();
|
||||
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string resourceType_;
|
||||
long pageNumber_;
|
||||
std::string userClientIp_;
|
||||
long pageSize_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_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_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::vector<std::string> values;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
|
||||
DescribeTagsResult();
|
||||
explicit DescribeTagsResult(const std::string &payload);
|
||||
~DescribeTagsResult();
|
||||
long getTotalCount()const;
|
||||
long getPageSize()const;
|
||||
long getPageNumber()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
long pageSize_;
|
||||
long pageNumber_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
int getSize()const;
|
||||
void setSize(int size);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
int size_;
|
||||
std::string nextToken_;
|
||||
std::string userClientIp_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_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_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagResource
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string tagKey;
|
||||
std::string resourceType;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
ListTagResourcesResult();
|
||||
explicit ListTagResourcesResult(const std::string &payload);
|
||||
~ListTagResourcesResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<TagResource> getTagResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<TagResource> tagResources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_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_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
bool getOverWrite()const;
|
||||
void setOverWrite(bool overWrite);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
std::string userClientIp_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string lang_;
|
||||
bool overWrite_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_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_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_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_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UntagResourcesRequest();
|
||||
~UntagResourcesRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string resourceType_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
std::vector<std::string> tagKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_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_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UntagResourcesResult();
|
||||
explicit UntagResourcesResult(const std::string &payload);
|
||||
~UntagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -2211,6 +2211,42 @@ AlidnsClient::DescribeSupportLinesOutcomeCallable AlidnsClient::describeSupportL
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTagsOutcome AlidnsClient::describeTags(const DescribeTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTagsOutcome(DescribeTagsResult(outcome.result()));
|
||||
else
|
||||
return DescribeTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTagsOutcomeCallable AlidnsClient::describeTagsCallable(const DescribeTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeTransferDomainsOutcome AlidnsClient::describeTransferDomains(const DescribeTransferDomainsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2355,6 +2391,42 @@ AlidnsClient::GetTxtRecordForVerifyOutcomeCallable AlidnsClient::getTxtRecordFor
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ListTagResourcesOutcome AlidnsClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::ListTagResourcesOutcomeCallable AlidnsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,6 +2787,42 @@ AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::TagResourcesOutcome AlidnsClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::TagResourcesOutcomeCallable AlidnsClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::TransferDomainOutcome AlidnsClient::transferDomain(const TransferDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2787,6 +2895,42 @@ AlidnsClient::UnbindInstanceDomainsOutcomeCallable AlidnsClient::unbindInstanceD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UntagResourcesOutcome AlidnsClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UntagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UntagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, untagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::UntagResourcesOutcomeCallable AlidnsClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->untagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::UpdateCustomLineOutcome AlidnsClient::updateCustomLine(const UpdateCustomLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -71,6 +71,22 @@ void DescribeDomainsRequest::setPageSize(long pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsRequest::Tag> DescribeDomainsRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
|
||||
@@ -77,6 +77,16 @@ void DescribeDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
|
||||
if(!valueDomainsDomain["CreateTimestamp"].isNull())
|
||||
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
|
||||
auto allTagsNode = allDomainsNode["Tags"]["Tag"];
|
||||
for (auto allDomainsNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Domain::Tag tagsObject;
|
||||
if(!allDomainsNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allDomainsNodeTagsTag["Key"].asString();
|
||||
if(!allDomainsNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allDomainsNodeTagsTag["Value"].asString();
|
||||
domainsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
auto allDnsServers = value["DnsServers"]["DnsServer"];
|
||||
for (auto value : allDnsServers)
|
||||
domainsObject.dnsServers.push_back(value.asString());
|
||||
|
||||
84
alidns/src/model/DescribeTagsRequest.cc
Normal file
84
alidns/src/model/DescribeTagsRequest.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/alidns/model/DescribeTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribeTagsRequest;
|
||||
|
||||
DescribeTagsRequest::DescribeTagsRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribeTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagsRequest::~DescribeTagsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
81
alidns/src/model/DescribeTagsResult.cc
Normal file
81
alidns/src/model/DescribeTagsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/DescribeTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagsResult::~DescribeTagsResult()
|
||||
{}
|
||||
|
||||
void DescribeTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueTagsTag["Key"].asString();
|
||||
auto allValues = value["Values"]["Value"];
|
||||
for (auto value : allValues)
|
||||
tagsObject.values.push_back(value.asString());
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagsResult::Tag> DescribeTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
113
alidns/src/model/ListTagResourcesRequest.cc
Normal file
113
alidns/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/alidns/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
int ListTagResourcesRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setSize(int size)
|
||||
{
|
||||
size_ = size;
|
||||
setParameter("Size", std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
102
alidns/src/model/TagResourcesRequest.cc
Normal file
102
alidns/src/model/TagResourcesRequest.cc
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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
bool TagResourcesRequest::getOverWrite()const
|
||||
{
|
||||
return overWrite_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setOverWrite(bool overWrite)
|
||||
{
|
||||
overWrite_ = overWrite;
|
||||
setParameter("OverWrite", overWrite ? "true" : "false");
|
||||
}
|
||||
|
||||
44
alidns/src/model/TagResourcesResult.cc
Normal file
44
alidns/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/alidns/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
99
alidns/src/model/UntagResourcesRequest.cc
Normal file
99
alidns/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alidns/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "UntagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
44
alidns/src/model/UntagResourcesResult.cc
Normal file
44
alidns/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/alidns/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@ set(arms_public_header
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -35,12 +39,18 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlResult.h
|
||||
include/alibabacloud/arms/model/GetTraceRequest.h
|
||||
include/alibabacloud/arms/model/GetTraceResult.h
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
@@ -67,6 +77,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/SearchTraceAppByNameResult.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageResult.h
|
||||
include/alibabacloud/arms/model/SearchTracesRequest.h
|
||||
include/alibabacloud/arms/model/SearchTracesResult.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
||||
include/alibabacloud/arms/model/StartAlertRequest.h
|
||||
@@ -82,6 +94,10 @@ set(arms_public_header_model
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
src/model/AddGrafanaRequest.cc
|
||||
src/model/AddGrafanaResult.cc
|
||||
src/model/AddIntegrationRequest.cc
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
@@ -96,12 +112,18 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
src/model/GetPrometheusApiTokenResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
src/model/GetRetcodeShareUrlResult.cc
|
||||
src/model/GetTraceRequest.cc
|
||||
src/model/GetTraceResult.cc
|
||||
src/model/ImportAppAlertRulesRequest.cc
|
||||
src/model/ImportAppAlertRulesResult.cc
|
||||
src/model/ImportCustomAlertRulesRequest.cc
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
@@ -128,6 +150,8 @@ set(arms_src
|
||||
src/model/SearchTraceAppByNameResult.cc
|
||||
src/model/SearchTraceAppByPageRequest.cc
|
||||
src/model/SearchTraceAppByPageResult.cc
|
||||
src/model/SearchTracesRequest.cc
|
||||
src/model/SearchTracesResult.cc
|
||||
src/model/SetRetcodeShareStatusRequest.cc
|
||||
src/model/SetRetcodeShareStatusResult.cc
|
||||
src/model/StartAlertRequest.cc
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
#include "model/AddGrafanaRequest.h"
|
||||
#include "model/AddGrafanaResult.h"
|
||||
#include "model/AddIntegrationRequest.h"
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -36,12 +40,18 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
#include "model/GetPrometheusApiTokenResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
#include "model/GetRetcodeShareUrlResult.h"
|
||||
#include "model/GetTraceRequest.h"
|
||||
#include "model/GetTraceResult.h"
|
||||
#include "model/ImportAppAlertRulesRequest.h"
|
||||
#include "model/ImportAppAlertRulesResult.h"
|
||||
#include "model/ImportCustomAlertRulesRequest.h"
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
@@ -68,6 +78,8 @@
|
||||
#include "model/SearchTraceAppByNameResult.h"
|
||||
#include "model/SearchTraceAppByPageRequest.h"
|
||||
#include "model/SearchTraceAppByPageResult.h"
|
||||
#include "model/SearchTracesRequest.h"
|
||||
#include "model/SearchTracesResult.h"
|
||||
#include "model/SetRetcodeShareStatusRequest.h"
|
||||
#include "model/SetRetcodeShareStatusResult.h"
|
||||
#include "model/StartAlertRequest.h"
|
||||
@@ -89,6 +101,12 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddGrafanaResult> AddGrafanaOutcome;
|
||||
typedef std::future<AddGrafanaOutcome> AddGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddGrafanaRequest&, const AddGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGrafanaAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
||||
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAlertContactResult> CreateAlertContactOutcome;
|
||||
typedef std::future<CreateAlertContactOutcome> CreateAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactRequest&, const CreateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactAsyncHandler;
|
||||
@@ -110,15 +128,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrometheusApiTokenResult> GetPrometheusApiTokenOutcome;
|
||||
typedef std::future<GetPrometheusApiTokenOutcome> GetPrometheusApiTokenOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetPrometheusApiTokenRequest&, const GetPrometheusApiTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrometheusApiTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRetcodeShareUrlResult> GetRetcodeShareUrlOutcome;
|
||||
typedef std::future<GetRetcodeShareUrlOutcome> GetRetcodeShareUrlOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetRetcodeShareUrlRequest&, const GetRetcodeShareUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRetcodeShareUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTraceResult> GetTraceOutcome;
|
||||
typedef std::future<GetTraceOutcome> GetTraceOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetTraceRequest&, const GetTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportAppAlertRulesResult> ImportAppAlertRulesOutcome;
|
||||
typedef std::future<ImportAppAlertRulesOutcome> ImportAppAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportAppAlertRulesRequest&, const ImportAppAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportAppAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportCustomAlertRulesResult> ImportCustomAlertRulesOutcome;
|
||||
typedef std::future<ImportCustomAlertRulesOutcome> ImportCustomAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportCustomAlertRulesRequest&, const ImportCustomAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCustomAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
||||
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPromClustersResult> ListPromClustersOutcome;
|
||||
typedef std::future<ListPromClustersOutcome> ListPromClustersOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPromClustersRequest&, const ListPromClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPromClustersAsyncHandler;
|
||||
@@ -158,6 +185,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchTraceAppByPageResult> SearchTraceAppByPageOutcome;
|
||||
typedef std::future<SearchTraceAppByPageOutcome> SearchTraceAppByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTraceAppByPageRequest&, const SearchTraceAppByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTraceAppByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchTracesResult> SearchTracesOutcome;
|
||||
typedef std::future<SearchTracesOutcome> SearchTracesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTracesRequest&, const SearchTracesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTracesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
||||
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
||||
@@ -181,6 +211,12 @@ namespace AlibabaCloud
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
AddGrafanaOutcome addGrafana(const Model::AddGrafanaRequest &request)const;
|
||||
void addGrafanaAsync(const Model::AddGrafanaRequest& request, const AddGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddGrafanaOutcomeCallable addGrafanaCallable(const Model::AddGrafanaRequest& request) const;
|
||||
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
||||
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
||||
CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const;
|
||||
void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const;
|
||||
@@ -202,15 +238,24 @@ namespace AlibabaCloud
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
GetPrometheusApiTokenOutcome getPrometheusApiToken(const Model::GetPrometheusApiTokenRequest &request)const;
|
||||
void getPrometheusApiTokenAsync(const Model::GetPrometheusApiTokenRequest& request, const GetPrometheusApiTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrometheusApiTokenOutcomeCallable getPrometheusApiTokenCallable(const Model::GetPrometheusApiTokenRequest& request) const;
|
||||
GetRetcodeShareUrlOutcome getRetcodeShareUrl(const Model::GetRetcodeShareUrlRequest &request)const;
|
||||
void getRetcodeShareUrlAsync(const Model::GetRetcodeShareUrlRequest& request, const GetRetcodeShareUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRetcodeShareUrlOutcomeCallable getRetcodeShareUrlCallable(const Model::GetRetcodeShareUrlRequest& request) const;
|
||||
GetTraceOutcome getTrace(const Model::GetTraceRequest &request)const;
|
||||
void getTraceAsync(const Model::GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTraceOutcomeCallable getTraceCallable(const Model::GetTraceRequest& request) const;
|
||||
ImportAppAlertRulesOutcome importAppAlertRules(const Model::ImportAppAlertRulesRequest &request)const;
|
||||
void importAppAlertRulesAsync(const Model::ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportAppAlertRulesOutcomeCallable importAppAlertRulesCallable(const Model::ImportAppAlertRulesRequest& request) const;
|
||||
ImportCustomAlertRulesOutcome importCustomAlertRules(const Model::ImportCustomAlertRulesRequest &request)const;
|
||||
void importCustomAlertRulesAsync(const Model::ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportCustomAlertRulesOutcomeCallable importCustomAlertRulesCallable(const Model::ImportCustomAlertRulesRequest& request) const;
|
||||
ListClusterFromGrafanaOutcome listClusterFromGrafana(const Model::ListClusterFromGrafanaRequest &request)const;
|
||||
void listClusterFromGrafanaAsync(const Model::ListClusterFromGrafanaRequest& request, const ListClusterFromGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClusterFromGrafanaOutcomeCallable listClusterFromGrafanaCallable(const Model::ListClusterFromGrafanaRequest& request) const;
|
||||
ListPromClustersOutcome listPromClusters(const Model::ListPromClustersRequest &request)const;
|
||||
void listPromClustersAsync(const Model::ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPromClustersOutcomeCallable listPromClustersCallable(const Model::ListPromClustersRequest& request) const;
|
||||
@@ -250,6 +295,9 @@ namespace AlibabaCloud
|
||||
SearchTraceAppByPageOutcome searchTraceAppByPage(const Model::SearchTraceAppByPageRequest &request)const;
|
||||
void searchTraceAppByPageAsync(const Model::SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTraceAppByPageOutcomeCallable searchTraceAppByPageCallable(const Model::SearchTraceAppByPageRequest& request) const;
|
||||
SearchTracesOutcome searchTraces(const Model::SearchTracesRequest &request)const;
|
||||
void searchTracesAsync(const Model::SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTracesOutcomeCallable searchTracesCallable(const Model::SearchTracesRequest& request) const;
|
||||
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
||||
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
||||
|
||||
54
arms/include/alibabacloud/arms/model/AddGrafanaRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/AddGrafanaRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddGrafanaRequest();
|
||||
~AddGrafanaRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIntegration()const;
|
||||
void setIntegration(const std::string& integration);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string integration_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/AddGrafanaResult.h
Normal file
51
arms/include/alibabacloud/arms/model/AddGrafanaResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddGrafanaResult();
|
||||
explicit AddGrafanaResult(const std::string &payload);
|
||||
~AddGrafanaResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANARESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/AddIntegrationRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/AddIntegrationRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddIntegrationRequest();
|
||||
~AddIntegrationRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getIntegration()const;
|
||||
void setIntegration(const std::string& integration);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string integration_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/AddIntegrationResult.h
Normal file
51
arms/include/alibabacloud/arms/model/AddIntegrationResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddIntegrationResult();
|
||||
explicit AddIntegrationResult(const std::string &payload);
|
||||
~AddIntegrationResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONRESULT_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_ARMS_MODEL_GETPROMETHEUSAPITOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETPROMETHEUSAPITOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetPrometheusApiTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPrometheusApiTokenRequest();
|
||||
~GetPrometheusApiTokenRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETPROMETHEUSAPITOKENREQUEST_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_ARMS_MODEL_GETPROMETHEUSAPITOKENRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETPROMETHEUSAPITOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetPrometheusApiTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetPrometheusApiTokenResult();
|
||||
explicit GetPrometheusApiTokenResult(const std::string &payload);
|
||||
~GetPrometheusApiTokenResult();
|
||||
std::string getToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string token_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETPROMETHEUSAPITOKENRESULT_H_
|
||||
51
arms/include/alibabacloud/arms/model/GetTraceRequest.h
Normal file
51
arms/include/alibabacloud/arms/model/GetTraceRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTraceRequest();
|
||||
~GetTraceRequest();
|
||||
|
||||
std::string getTraceID()const;
|
||||
void setTraceID(const std::string& traceID);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string traceID_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACEREQUEST_H_
|
||||
80
arms/include/alibabacloud/arms/model/GetTraceResult.h
Normal file
80
arms/include/alibabacloud/arms/model/GetTraceResult.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Span
|
||||
{
|
||||
struct TagEntry
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct LogEvent
|
||||
{
|
||||
struct TagEntry2
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<LogEvent::TagEntry2> tagEntryList1;
|
||||
long timestamp;
|
||||
};
|
||||
bool haveStack;
|
||||
std::string serviceIp;
|
||||
std::vector<Span::LogEvent> logEventList;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string rpcId;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
std::vector<Span::TagEntry> tagEntryList;
|
||||
long timestamp;
|
||||
std::string resultCode;
|
||||
};
|
||||
|
||||
|
||||
GetTraceResult();
|
||||
explicit GetTraceResult(const std::string &payload);
|
||||
~GetTraceResult();
|
||||
std::vector<Span> getSpans()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Span> spans_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETTRACERESULT_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_ARMS_MODEL_LISTCLUSTERFROMGRAFANAREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTCLUSTERFROMGRAFANAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListClusterFromGrafanaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListClusterFromGrafanaRequest();
|
||||
~ListClusterFromGrafanaRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTCLUSTERFROMGRAFANAREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTCLUSTERFROMGRAFANARESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTCLUSTERFROMGRAFANARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListClusterFromGrafanaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PromCluster
|
||||
{
|
||||
bool isControllerInstalled;
|
||||
std::string stateJson;
|
||||
std::string options;
|
||||
int nodeNum;
|
||||
std::string clusterId;
|
||||
long installTime;
|
||||
long createTime;
|
||||
std::string controllerId;
|
||||
std::string pluginsJsonArray;
|
||||
std::string clusterType;
|
||||
std::string agentStatus;
|
||||
std::string extra;
|
||||
std::string userId;
|
||||
long lastHeartBeatTime;
|
||||
long updateTime;
|
||||
std::string clusterName;
|
||||
long id;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
ListClusterFromGrafanaResult();
|
||||
explicit ListClusterFromGrafanaResult(const std::string &payload);
|
||||
~ListClusterFromGrafanaResult();
|
||||
std::vector<PromCluster> getPromClusterList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PromCluster> promClusterList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTCLUSTERFROMGRAFANARESULT_H_
|
||||
@@ -34,14 +34,14 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct AlertRule
|
||||
struct AlertRuleEntity
|
||||
{
|
||||
struct AlarmContext
|
||||
{
|
||||
std::string alarmContentTemplate;
|
||||
std::string alarmContentSubTitle;
|
||||
};
|
||||
struct AlertRule1
|
||||
struct AlertRule
|
||||
{
|
||||
struct Rule
|
||||
{
|
||||
@@ -89,16 +89,16 @@ namespace AlibabaCloud
|
||||
std::string contactGroupIdList;
|
||||
Notice notice;
|
||||
std::string userId;
|
||||
AlertRule1 alertRule1;
|
||||
std::string alertTitle;
|
||||
long updateTime;
|
||||
std::string alertLevel;
|
||||
long id;
|
||||
std::string regionId;
|
||||
AlertRule alertRule;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
std::vector<AlertRule> alertRules;
|
||||
std::vector<AlertRuleEntity> alertRules;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
78
arms/include/alibabacloud/arms/model/SearchTracesRequest.h
Normal file
78
arms/include/alibabacloud/arms/model/SearchTracesRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SearchTracesRequest();
|
||||
~SearchTracesRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
bool getReverse()const;
|
||||
void setReverse(bool reverse);
|
||||
long getMinDuration()const;
|
||||
void setMinDuration(long minDuration);
|
||||
std::string getServiceIp()const;
|
||||
void setServiceIp(const std::string& serviceIp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
void setOperationName(const std::string& operationName);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
bool reverse_;
|
||||
long minDuration_;
|
||||
std::string serviceIp_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
std::string serviceName_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESREQUEST_H_
|
||||
60
arms/include/alibabacloud/arms/model/SearchTracesResult.h
Normal file
60
arms/include/alibabacloud/arms/model/SearchTracesResult.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TraceInfo
|
||||
{
|
||||
std::string serviceIp;
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
long timestamp;
|
||||
};
|
||||
|
||||
|
||||
SearchTracesResult();
|
||||
explicit SearchTracesResult(const std::string &payload);
|
||||
~SearchTracesResult();
|
||||
std::vector<TraceInfo> getTraceInfos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TraceInfo> traceInfos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHTRACESRESULT_H_
|
||||
@@ -51,6 +51,78 @@ ARMSClient::ARMSClient(const std::string & accessKeyId, const std::string & acce
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::AddGrafanaOutcome ARMSClient::addGrafana(const AddGrafanaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddGrafanaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddGrafanaOutcome(AddGrafanaResult(outcome.result()));
|
||||
else
|
||||
return AddGrafanaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::addGrafanaAsync(const AddGrafanaRequest& request, const AddGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addGrafana(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::AddGrafanaOutcomeCallable ARMSClient::addGrafanaCallable(const AddGrafanaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddGrafanaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addGrafana(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::AddIntegrationOutcome ARMSClient::addIntegration(const AddIntegrationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddIntegrationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddIntegrationOutcome(AddIntegrationResult(outcome.result()));
|
||||
else
|
||||
return AddIntegrationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::addIntegrationAsync(const AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addIntegration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(const AddIntegrationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddIntegrationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addIntegration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +375,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcome ARMSClient::getPrometheusApiToken(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetPrometheusApiTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetPrometheusApiTokenOutcome(GetPrometheusApiTokenResult(outcome.result()));
|
||||
else
|
||||
return GetPrometheusApiTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getPrometheusApiTokenAsync(const GetPrometheusApiTokenRequest& request, const GetPrometheusApiTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getPrometheusApiToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcomeCallable ARMSClient::getPrometheusApiTokenCallable(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetPrometheusApiTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getPrometheusApiToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetRetcodeShareUrlOutcome ARMSClient::getRetcodeShareUrl(const GetRetcodeShareUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +447,42 @@ ARMSClient::GetRetcodeShareUrlOutcomeCallable ARMSClient::getRetcodeShareUrlCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetTraceOutcome ARMSClient::getTrace(const GetTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTraceOutcome(GetTraceResult(outcome.result()));
|
||||
else
|
||||
return GetTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getTraceAsync(const GetTraceRequest& request, const GetTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetTraceOutcomeCallable ARMSClient::getTraceCallable(const GetTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ImportAppAlertRulesOutcome ARMSClient::importAppAlertRules(const ImportAppAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +555,42 @@ ARMSClient::ImportCustomAlertRulesOutcomeCallable ARMSClient::importCustomAlertR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListClusterFromGrafanaOutcome ARMSClient::listClusterFromGrafana(const ListClusterFromGrafanaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListClusterFromGrafanaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListClusterFromGrafanaOutcome(ListClusterFromGrafanaResult(outcome.result()));
|
||||
else
|
||||
return ListClusterFromGrafanaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listClusterFromGrafanaAsync(const ListClusterFromGrafanaRequest& request, const ListClusterFromGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listClusterFromGrafana(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListClusterFromGrafanaOutcomeCallable ARMSClient::listClusterFromGrafanaCallable(const ListClusterFromGrafanaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListClusterFromGrafanaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listClusterFromGrafana(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcome ARMSClient::listPromClusters(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +1059,42 @@ ARMSClient::SearchTraceAppByPageOutcomeCallable ARMSClient::searchTraceAppByPage
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesOutcome ARMSClient::searchTraces(const SearchTracesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchTracesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchTracesOutcome(SearchTracesResult(outcome.result()));
|
||||
else
|
||||
return SearchTracesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchTracesAsync(const SearchTracesRequest& request, const SearchTracesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchTraces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchTracesOutcomeCallable ARMSClient::searchTracesCallable(const SearchTracesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchTracesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchTraces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
arms/src/model/AddGrafanaRequest.cc
Normal file
62
arms/src/model/AddGrafanaRequest.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/arms/model/AddGrafanaRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddGrafanaRequest;
|
||||
|
||||
AddGrafanaRequest::AddGrafanaRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddGrafana")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGrafanaRequest::~AddGrafanaRequest()
|
||||
{}
|
||||
|
||||
std::string AddGrafanaRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
}
|
||||
|
||||
std::string AddGrafanaRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddGrafanaRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/AddGrafanaResult.cc
Normal file
51
arms/src/model/AddGrafanaResult.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/arms/model/AddGrafanaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddGrafanaResult::AddGrafanaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGrafanaResult::AddGrafanaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGrafanaResult::~AddGrafanaResult()
|
||||
{}
|
||||
|
||||
void AddGrafanaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddGrafanaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
62
arms/src/model/AddIntegrationRequest.cc
Normal file
62
arms/src/model/AddIntegrationRequest.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/arms/model/AddIntegrationRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::AddIntegrationRequest;
|
||||
|
||||
AddIntegrationRequest::AddIntegrationRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "AddIntegration")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddIntegrationRequest::~AddIntegrationRequest()
|
||||
{}
|
||||
|
||||
std::string AddIntegrationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getIntegration()const
|
||||
{
|
||||
return integration_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setIntegration(const std::string& integration)
|
||||
{
|
||||
integration_ = integration;
|
||||
setParameter("Integration", integration);
|
||||
}
|
||||
|
||||
std::string AddIntegrationRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void AddIntegrationRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
arms/src/model/AddIntegrationResult.cc
Normal file
51
arms/src/model/AddIntegrationResult.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/arms/model/AddIntegrationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddIntegrationResult::AddIntegrationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIntegrationResult::AddIntegrationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIntegrationResult::~AddIntegrationResult()
|
||||
{}
|
||||
|
||||
void AddIntegrationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddIntegrationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
arms/src/model/GetPrometheusApiTokenRequest.cc
Normal file
40
arms/src/model/GetPrometheusApiTokenRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/arms/model/GetPrometheusApiTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetPrometheusApiTokenRequest;
|
||||
|
||||
GetPrometheusApiTokenRequest::GetPrometheusApiTokenRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetPrometheusApiToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPrometheusApiTokenRequest::~GetPrometheusApiTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetPrometheusApiTokenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetPrometheusApiTokenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/GetPrometheusApiTokenResult.cc
Normal file
51
arms/src/model/GetPrometheusApiTokenResult.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/arms/model/GetPrometheusApiTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetPrometheusApiTokenResult::GetPrometheusApiTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPrometheusApiTokenResult::GetPrometheusApiTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPrometheusApiTokenResult::~GetPrometheusApiTokenResult()
|
||||
{}
|
||||
|
||||
void GetPrometheusApiTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Token"].isNull())
|
||||
token_ = value["Token"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPrometheusApiTokenResult::getToken()const
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
51
arms/src/model/GetTraceRequest.cc
Normal file
51
arms/src/model/GetTraceRequest.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/arms/model/GetTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetTraceRequest;
|
||||
|
||||
GetTraceRequest::GetTraceRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTraceRequest::~GetTraceRequest()
|
||||
{}
|
||||
|
||||
std::string GetTraceRequest::getTraceID()const
|
||||
{
|
||||
return traceID_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setTraceID(const std::string& traceID)
|
||||
{
|
||||
traceID_ = traceID;
|
||||
setParameter("TraceID", traceID);
|
||||
}
|
||||
|
||||
std::string GetTraceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTraceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
101
arms/src/model/GetTraceResult.cc
Normal file
101
arms/src/model/GetTraceResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/arms/model/GetTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetTraceResult::GetTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTraceResult::GetTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTraceResult::~GetTraceResult()
|
||||
{}
|
||||
|
||||
void GetTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSpansNode = value["Spans"]["Span"];
|
||||
for (auto valueSpansSpan : allSpansNode)
|
||||
{
|
||||
Span spansObject;
|
||||
if(!valueSpansSpan["TraceID"].isNull())
|
||||
spansObject.traceID = valueSpansSpan["TraceID"].asString();
|
||||
if(!valueSpansSpan["OperationName"].isNull())
|
||||
spansObject.operationName = valueSpansSpan["OperationName"].asString();
|
||||
if(!valueSpansSpan["Duration"].isNull())
|
||||
spansObject.duration = std::stol(valueSpansSpan["Duration"].asString());
|
||||
if(!valueSpansSpan["ServiceName"].isNull())
|
||||
spansObject.serviceName = valueSpansSpan["ServiceName"].asString();
|
||||
if(!valueSpansSpan["ServiceIp"].isNull())
|
||||
spansObject.serviceIp = valueSpansSpan["ServiceIp"].asString();
|
||||
if(!valueSpansSpan["Timestamp"].isNull())
|
||||
spansObject.timestamp = std::stol(valueSpansSpan["Timestamp"].asString());
|
||||
if(!valueSpansSpan["RpcId"].isNull())
|
||||
spansObject.rpcId = valueSpansSpan["RpcId"].asString();
|
||||
if(!valueSpansSpan["ResultCode"].isNull())
|
||||
spansObject.resultCode = valueSpansSpan["ResultCode"].asString();
|
||||
if(!valueSpansSpan["HaveStack"].isNull())
|
||||
spansObject.haveStack = valueSpansSpan["HaveStack"].asString() == "true";
|
||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
||||
{
|
||||
Span::TagEntry tagEntryListObject;
|
||||
if(!allSpansNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryListObject.key = allSpansNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allSpansNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryListObject.value = allSpansNodeTagEntryListTagEntry["Value"].asString();
|
||||
spansObject.tagEntryList.push_back(tagEntryListObject);
|
||||
}
|
||||
auto allLogEventListNode = allSpansNode["LogEventList"]["LogEvent"];
|
||||
for (auto allSpansNodeLogEventListLogEvent : allLogEventListNode)
|
||||
{
|
||||
Span::LogEvent logEventListObject;
|
||||
if(!allSpansNodeLogEventListLogEvent["Timestamp"].isNull())
|
||||
logEventListObject.timestamp = std::stol(allSpansNodeLogEventListLogEvent["Timestamp"].asString());
|
||||
auto allTagEntryList1Node = allLogEventListNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allLogEventListNodeTagEntryListTagEntry : allTagEntryList1Node)
|
||||
{
|
||||
Span::LogEvent::TagEntry2 tagEntryList1Object;
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Key"].isNull())
|
||||
tagEntryList1Object.key = allLogEventListNodeTagEntryListTagEntry["Key"].asString();
|
||||
if(!allLogEventListNodeTagEntryListTagEntry["Value"].isNull())
|
||||
tagEntryList1Object.value = allLogEventListNodeTagEntryListTagEntry["Value"].asString();
|
||||
logEventListObject.tagEntryList1.push_back(tagEntryList1Object);
|
||||
}
|
||||
spansObject.logEventList.push_back(logEventListObject);
|
||||
}
|
||||
spans_.push_back(spansObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetTraceResult::Span> GetTraceResult::getSpans()const
|
||||
{
|
||||
return spans_;
|
||||
}
|
||||
|
||||
40
arms/src/model/ListClusterFromGrafanaRequest.cc
Normal file
40
arms/src/model/ListClusterFromGrafanaRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/arms/model/ListClusterFromGrafanaRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListClusterFromGrafanaRequest;
|
||||
|
||||
ListClusterFromGrafanaRequest::ListClusterFromGrafanaRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListClusterFromGrafana")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListClusterFromGrafanaRequest::~ListClusterFromGrafanaRequest()
|
||||
{}
|
||||
|
||||
std::string ListClusterFromGrafanaRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListClusterFromGrafanaRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
91
arms/src/model/ListClusterFromGrafanaResult.cc
Normal file
91
arms/src/model/ListClusterFromGrafanaResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/arms/model/ListClusterFromGrafanaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListClusterFromGrafanaResult::ListClusterFromGrafanaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClusterFromGrafanaResult::ListClusterFromGrafanaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClusterFromGrafanaResult::~ListClusterFromGrafanaResult()
|
||||
{}
|
||||
|
||||
void ListClusterFromGrafanaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPromClusterListNode = value["PromClusterList"]["PromCluster"];
|
||||
for (auto valuePromClusterListPromCluster : allPromClusterListNode)
|
||||
{
|
||||
PromCluster promClusterListObject;
|
||||
if(!valuePromClusterListPromCluster["Id"].isNull())
|
||||
promClusterListObject.id = std::stol(valuePromClusterListPromCluster["Id"].asString());
|
||||
if(!valuePromClusterListPromCluster["ClusterId"].isNull())
|
||||
promClusterListObject.clusterId = valuePromClusterListPromCluster["ClusterId"].asString();
|
||||
if(!valuePromClusterListPromCluster["ClusterName"].isNull())
|
||||
promClusterListObject.clusterName = valuePromClusterListPromCluster["ClusterName"].asString();
|
||||
if(!valuePromClusterListPromCluster["AgentStatus"].isNull())
|
||||
promClusterListObject.agentStatus = valuePromClusterListPromCluster["AgentStatus"].asString();
|
||||
if(!valuePromClusterListPromCluster["ClusterType"].isNull())
|
||||
promClusterListObject.clusterType = valuePromClusterListPromCluster["ClusterType"].asString();
|
||||
if(!valuePromClusterListPromCluster["ControllerId"].isNull())
|
||||
promClusterListObject.controllerId = valuePromClusterListPromCluster["ControllerId"].asString();
|
||||
if(!valuePromClusterListPromCluster["IsControllerInstalled"].isNull())
|
||||
promClusterListObject.isControllerInstalled = valuePromClusterListPromCluster["IsControllerInstalled"].asString() == "true";
|
||||
if(!valuePromClusterListPromCluster["UserId"].isNull())
|
||||
promClusterListObject.userId = valuePromClusterListPromCluster["UserId"].asString();
|
||||
if(!valuePromClusterListPromCluster["RegionId"].isNull())
|
||||
promClusterListObject.regionId = valuePromClusterListPromCluster["RegionId"].asString();
|
||||
if(!valuePromClusterListPromCluster["PluginsJsonArray"].isNull())
|
||||
promClusterListObject.pluginsJsonArray = valuePromClusterListPromCluster["PluginsJsonArray"].asString();
|
||||
if(!valuePromClusterListPromCluster["StateJson"].isNull())
|
||||
promClusterListObject.stateJson = valuePromClusterListPromCluster["StateJson"].asString();
|
||||
if(!valuePromClusterListPromCluster["NodeNum"].isNull())
|
||||
promClusterListObject.nodeNum = std::stoi(valuePromClusterListPromCluster["NodeNum"].asString());
|
||||
if(!valuePromClusterListPromCluster["CreateTime"].isNull())
|
||||
promClusterListObject.createTime = std::stol(valuePromClusterListPromCluster["CreateTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["UpdateTime"].isNull())
|
||||
promClusterListObject.updateTime = std::stol(valuePromClusterListPromCluster["UpdateTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["LastHeartBeatTime"].isNull())
|
||||
promClusterListObject.lastHeartBeatTime = std::stol(valuePromClusterListPromCluster["LastHeartBeatTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["InstallTime"].isNull())
|
||||
promClusterListObject.installTime = std::stol(valuePromClusterListPromCluster["InstallTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["Extra"].isNull())
|
||||
promClusterListObject.extra = valuePromClusterListPromCluster["Extra"].asString();
|
||||
if(!valuePromClusterListPromCluster["Options"].isNull())
|
||||
promClusterListObject.options = valuePromClusterListPromCluster["Options"].asString();
|
||||
promClusterList_.push_back(promClusterListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListClusterFromGrafanaResult::PromCluster> ListClusterFromGrafanaResult::getPromClusterList()const
|
||||
{
|
||||
return promClusterList_;
|
||||
}
|
||||
|
||||
@@ -46,98 +46,98 @@ void SearchAlertRulesResult::parse(const std::string &payload)
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
auto allAlertRulesNode = pageBeanNode["AlertRules"]["AlertRule"];
|
||||
for (auto pageBeanNodeAlertRulesAlertRule : allAlertRulesNode)
|
||||
auto allAlertRulesNode = pageBeanNode["AlertRules"]["AlertRuleEntity"];
|
||||
for (auto pageBeanNodeAlertRulesAlertRuleEntity : allAlertRulesNode)
|
||||
{
|
||||
PageBean::AlertRule alertRuleObject;
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertTitle"].isNull())
|
||||
alertRuleObject.alertTitle = pageBeanNodeAlertRulesAlertRule["AlertTitle"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertLevel"].isNull())
|
||||
alertRuleObject.alertLevel = pageBeanNodeAlertRulesAlertRule["AlertLevel"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertType"].isNull())
|
||||
alertRuleObject.alertType = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertType"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertVersion"].isNull())
|
||||
alertRuleObject.alertVersion = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertVersion"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Config"].isNull())
|
||||
alertRuleObject.config = pageBeanNodeAlertRulesAlertRule["Config"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].isNull())
|
||||
alertRuleObject.contactGroupIdList = pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["CreateTime"].isNull())
|
||||
alertRuleObject.createTime = std::stol(pageBeanNodeAlertRulesAlertRule["CreateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Id"].isNull())
|
||||
alertRuleObject.id = std::stol(pageBeanNodeAlertRulesAlertRule["Id"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["RegionId"].isNull())
|
||||
alertRuleObject.regionId = pageBeanNodeAlertRulesAlertRule["RegionId"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Status"].isNull())
|
||||
alertRuleObject.status = pageBeanNodeAlertRulesAlertRule["Status"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskId"].isNull())
|
||||
alertRuleObject.taskId = std::stol(pageBeanNodeAlertRulesAlertRule["TaskId"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskStatus"].isNull())
|
||||
alertRuleObject.taskStatus = pageBeanNodeAlertRulesAlertRule["TaskStatus"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UpdateTime"].isNull())
|
||||
alertRuleObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRule["UpdateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UserId"].isNull())
|
||||
alertRuleObject.userId = pageBeanNodeAlertRulesAlertRule["UserId"].asString();
|
||||
PageBean::AlertRuleEntity alertRuleEntityObject;
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertTitle"].isNull())
|
||||
alertRuleEntityObject.alertTitle = pageBeanNodeAlertRulesAlertRuleEntity["AlertTitle"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertLevel"].isNull())
|
||||
alertRuleEntityObject.alertLevel = pageBeanNodeAlertRulesAlertRuleEntity["AlertLevel"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertType"].isNull())
|
||||
alertRuleEntityObject.alertType = std::stoi(pageBeanNodeAlertRulesAlertRuleEntity["AlertType"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["AlertVersion"].isNull())
|
||||
alertRuleEntityObject.alertVersion = std::stoi(pageBeanNodeAlertRulesAlertRuleEntity["AlertVersion"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Config"].isNull())
|
||||
alertRuleEntityObject.config = pageBeanNodeAlertRulesAlertRuleEntity["Config"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIdList"].isNull())
|
||||
alertRuleEntityObject.contactGroupIdList = pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIdList"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["CreateTime"].isNull())
|
||||
alertRuleEntityObject.createTime = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["CreateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Id"].isNull())
|
||||
alertRuleEntityObject.id = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["Id"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["RegionId"].isNull())
|
||||
alertRuleEntityObject.regionId = pageBeanNodeAlertRulesAlertRuleEntity["RegionId"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["Status"].isNull())
|
||||
alertRuleEntityObject.status = pageBeanNodeAlertRulesAlertRuleEntity["Status"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["TaskId"].isNull())
|
||||
alertRuleEntityObject.taskId = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["TaskId"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["TaskStatus"].isNull())
|
||||
alertRuleEntityObject.taskStatus = pageBeanNodeAlertRulesAlertRuleEntity["TaskStatus"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["UpdateTime"].isNull())
|
||||
alertRuleEntityObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["UpdateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRuleEntity["UserId"].isNull())
|
||||
alertRuleEntityObject.userId = pageBeanNodeAlertRulesAlertRuleEntity["UserId"].asString();
|
||||
auto alarmContextNode = value["AlarmContext"];
|
||||
if(!alarmContextNode["AlarmContentTemplate"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
|
||||
alertRuleEntityObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
|
||||
if(!alarmContextNode["AlarmContentSubTitle"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
|
||||
auto alertRule1Node = value["AlertRule"];
|
||||
if(!alertRule1Node["Operator"].isNull())
|
||||
alertRuleObject.alertRule1._operator = alertRule1Node["Operator"].asString();
|
||||
auto allRulesNode = alertRule1Node["Rules"]["Rule"];
|
||||
for (auto alertRule1NodeRulesRule : allRulesNode)
|
||||
alertRuleEntityObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
|
||||
auto alertRuleNode = value["AlertRule"];
|
||||
if(!alertRuleNode["Operator"].isNull())
|
||||
alertRuleEntityObject.alertRule._operator = alertRuleNode["Operator"].asString();
|
||||
auto allRulesNode = alertRuleNode["Rules"]["Rule"];
|
||||
for (auto alertRuleNodeRulesRule : allRulesNode)
|
||||
{
|
||||
PageBean::AlertRule::AlertRule1::Rule ruleObject;
|
||||
if(!alertRule1NodeRulesRule["Aggregates"].isNull())
|
||||
ruleObject.aggregates = alertRule1NodeRulesRule["Aggregates"].asString();
|
||||
if(!alertRule1NodeRulesRule["Alias"].isNull())
|
||||
ruleObject.alias = alertRule1NodeRulesRule["Alias"].asString();
|
||||
if(!alertRule1NodeRulesRule["Measure"].isNull())
|
||||
ruleObject.measure = alertRule1NodeRulesRule["Measure"].asString();
|
||||
if(!alertRule1NodeRulesRule["NValue"].isNull())
|
||||
ruleObject.nValue = std::stoi(alertRule1NodeRulesRule["NValue"].asString());
|
||||
if(!alertRule1NodeRulesRule["Operator"].isNull())
|
||||
ruleObject._operator = alertRule1NodeRulesRule["Operator"].asString();
|
||||
if(!alertRule1NodeRulesRule["Value"].isNull())
|
||||
ruleObject.value = std::stof(alertRule1NodeRulesRule["Value"].asString());
|
||||
alertRuleObject.alertRule1.rules.push_back(ruleObject);
|
||||
PageBean::AlertRuleEntity::AlertRule::Rule ruleObject;
|
||||
if(!alertRuleNodeRulesRule["Aggregates"].isNull())
|
||||
ruleObject.aggregates = alertRuleNodeRulesRule["Aggregates"].asString();
|
||||
if(!alertRuleNodeRulesRule["Alias"].isNull())
|
||||
ruleObject.alias = alertRuleNodeRulesRule["Alias"].asString();
|
||||
if(!alertRuleNodeRulesRule["Measure"].isNull())
|
||||
ruleObject.measure = alertRuleNodeRulesRule["Measure"].asString();
|
||||
if(!alertRuleNodeRulesRule["NValue"].isNull())
|
||||
ruleObject.nValue = std::stoi(alertRuleNodeRulesRule["NValue"].asString());
|
||||
if(!alertRuleNodeRulesRule["Operator"].isNull())
|
||||
ruleObject._operator = alertRuleNodeRulesRule["Operator"].asString();
|
||||
if(!alertRuleNodeRulesRule["Value"].isNull())
|
||||
ruleObject.value = std::stof(alertRuleNodeRulesRule["Value"].asString());
|
||||
alertRuleEntityObject.alertRule.rules.push_back(ruleObject);
|
||||
}
|
||||
auto metricParamNode = value["MetricParam"];
|
||||
if(!metricParamNode["AppGroupId"].isNull())
|
||||
alertRuleObject.metricParam.appGroupId = metricParamNode["AppGroupId"].asString();
|
||||
alertRuleEntityObject.metricParam.appGroupId = metricParamNode["AppGroupId"].asString();
|
||||
if(!metricParamNode["AppId"].isNull())
|
||||
alertRuleObject.metricParam.appId = metricParamNode["AppId"].asString();
|
||||
alertRuleEntityObject.metricParam.appId = metricParamNode["AppId"].asString();
|
||||
if(!metricParamNode["Pid"].isNull())
|
||||
alertRuleObject.metricParam.pid = metricParamNode["Pid"].asString();
|
||||
alertRuleEntityObject.metricParam.pid = metricParamNode["Pid"].asString();
|
||||
if(!metricParamNode["Type"].isNull())
|
||||
alertRuleObject.metricParam.type = metricParamNode["Type"].asString();
|
||||
alertRuleEntityObject.metricParam.type = metricParamNode["Type"].asString();
|
||||
auto allDimensionsNode = metricParamNode["Dimensions"]["Dimension"];
|
||||
for (auto metricParamNodeDimensionsDimension : allDimensionsNode)
|
||||
{
|
||||
PageBean::AlertRule::MetricParam::Dimension dimensionObject;
|
||||
PageBean::AlertRuleEntity::MetricParam::Dimension dimensionObject;
|
||||
if(!metricParamNodeDimensionsDimension["Key"].isNull())
|
||||
dimensionObject.key = metricParamNodeDimensionsDimension["Key"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Type"].isNull())
|
||||
dimensionObject.type = metricParamNodeDimensionsDimension["Type"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Value"].isNull())
|
||||
dimensionObject.value = metricParamNodeDimensionsDimension["Value"].asString();
|
||||
alertRuleObject.metricParam.dimensions.push_back(dimensionObject);
|
||||
alertRuleEntityObject.metricParam.dimensions.push_back(dimensionObject);
|
||||
}
|
||||
auto noticeNode = value["Notice"];
|
||||
if(!noticeNode["EndTime"].isNull())
|
||||
alertRuleObject.notice.endTime = std::stol(noticeNode["EndTime"].asString());
|
||||
alertRuleEntityObject.notice.endTime = std::stol(noticeNode["EndTime"].asString());
|
||||
if(!noticeNode["NoticeEndTime"].isNull())
|
||||
alertRuleObject.notice.noticeEndTime = std::stol(noticeNode["NoticeEndTime"].asString());
|
||||
alertRuleEntityObject.notice.noticeEndTime = std::stol(noticeNode["NoticeEndTime"].asString());
|
||||
if(!noticeNode["NoticeStartTime"].isNull())
|
||||
alertRuleObject.notice.noticeStartTime = std::stol(noticeNode["NoticeStartTime"].asString());
|
||||
alertRuleEntityObject.notice.noticeStartTime = std::stol(noticeNode["NoticeStartTime"].asString());
|
||||
if(!noticeNode["StartTime"].isNull())
|
||||
alertRuleObject.notice.startTime = std::stol(noticeNode["StartTime"].asString());
|
||||
alertRuleEntityObject.notice.startTime = std::stol(noticeNode["StartTime"].asString());
|
||||
auto allAlertWays = value["AlertWays"]["AlertWay"];
|
||||
for (auto value : allAlertWays)
|
||||
alertRuleObject.alertWays.push_back(value.asString());
|
||||
pageBean_.alertRules.push_back(alertRuleObject);
|
||||
alertRuleEntityObject.alertWays.push_back(value.asString());
|
||||
pageBean_.alertRules.push_back(alertRuleEntityObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
133
arms/src/model/SearchTracesRequest.cc
Normal file
133
arms/src/model/SearchTracesRequest.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/arms/model/SearchTracesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchTracesRequest;
|
||||
|
||||
SearchTracesRequest::SearchTracesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchTraces")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchTracesRequest::~SearchTracesRequest()
|
||||
{}
|
||||
|
||||
long SearchTracesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
bool SearchTracesRequest::getReverse()const
|
||||
{
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setParameter("Reverse", reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
long SearchTracesRequest::getMinDuration()const
|
||||
{
|
||||
return minDuration_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setMinDuration(long minDuration)
|
||||
{
|
||||
minDuration_ = minDuration;
|
||||
setParameter("MinDuration", std::to_string(minDuration));
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getServiceIp()const
|
||||
{
|
||||
return serviceIp_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceIp(const std::string& serviceIp)
|
||||
{
|
||||
serviceIp_ = serviceIp;
|
||||
setParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getOperationName()const
|
||||
{
|
||||
return operationName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setOperationName(const std::string& operationName)
|
||||
{
|
||||
operationName_ = operationName;
|
||||
setParameter("OperationName", operationName);
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
std::vector<SearchTracesRequest::Tag> SearchTracesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
67
arms/src/model/SearchTracesResult.cc
Normal file
67
arms/src/model/SearchTracesResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/SearchTracesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchTracesResult::SearchTracesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchTracesResult::SearchTracesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchTracesResult::~SearchTracesResult()
|
||||
{}
|
||||
|
||||
void SearchTracesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTraceInfosNode = value["TraceInfos"]["TraceInfo"];
|
||||
for (auto valueTraceInfosTraceInfo : allTraceInfosNode)
|
||||
{
|
||||
TraceInfo traceInfosObject;
|
||||
if(!valueTraceInfosTraceInfo["TraceID"].isNull())
|
||||
traceInfosObject.traceID = valueTraceInfosTraceInfo["TraceID"].asString();
|
||||
if(!valueTraceInfosTraceInfo["OperationName"].isNull())
|
||||
traceInfosObject.operationName = valueTraceInfosTraceInfo["OperationName"].asString();
|
||||
if(!valueTraceInfosTraceInfo["ServiceName"].isNull())
|
||||
traceInfosObject.serviceName = valueTraceInfosTraceInfo["ServiceName"].asString();
|
||||
if(!valueTraceInfosTraceInfo["ServiceIp"].isNull())
|
||||
traceInfosObject.serviceIp = valueTraceInfosTraceInfo["ServiceIp"].asString();
|
||||
if(!valueTraceInfosTraceInfo["Duration"].isNull())
|
||||
traceInfosObject.duration = std::stol(valueTraceInfosTraceInfo["Duration"].asString());
|
||||
if(!valueTraceInfosTraceInfo["Timestamp"].isNull())
|
||||
traceInfosObject.timestamp = std::stol(valueTraceInfosTraceInfo["Timestamp"].asString());
|
||||
traceInfos_.push_back(traceInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<SearchTracesResult::TraceInfo> SearchTracesResult::getTraceInfos()const
|
||||
{
|
||||
return traceInfos_;
|
||||
}
|
||||
|
||||
282
cassandra/CMakeLists.txt
Normal file
282
cassandra/CMakeLists.txt
Normal file
@@ -0,0 +1,282 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT 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(cassandra_public_header
|
||||
include/alibabacloud/cassandra/CassandraClient.h
|
||||
include/alibabacloud/cassandra/CassandraExport.h )
|
||||
|
||||
set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/AllocatePublicContactPointsRequest.h
|
||||
include/alibabacloud/cassandra/model/AllocatePublicContactPointsResult.h
|
||||
include/alibabacloud/cassandra/model/CreateBackupPlanRequest.h
|
||||
include/alibabacloud/cassandra/model/CreateBackupPlanResult.h
|
||||
include/alibabacloud/cassandra/model/CreateClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/CreateClusterResult.h
|
||||
include/alibabacloud/cassandra/model/CreateDataCenterRequest.h
|
||||
include/alibabacloud/cassandra/model/CreateDataCenterResult.h
|
||||
include/alibabacloud/cassandra/model/DeleteBackupPlanRequest.h
|
||||
include/alibabacloud/cassandra/model/DeleteBackupPlanResult.h
|
||||
include/alibabacloud/cassandra/model/DeleteClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/DeleteClusterResult.h
|
||||
include/alibabacloud/cassandra/model/DeleteDataCenterRequest.h
|
||||
include/alibabacloud/cassandra/model/DeleteDataCenterResult.h
|
||||
include/alibabacloud/cassandra/model/DeleteNodeToolExecutionHistoryRequest.h
|
||||
include/alibabacloud/cassandra/model/DeleteNodeToolExecutionHistoryResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeAccountsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeAccountsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupPlanRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupPlanResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupPlansRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupPlansResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeBackupsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterDashboardRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterDashboardResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterStatusRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeClusterStatusResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeClustersRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeClustersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeContactPointsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeContactPointsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCentersRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeDataCentersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeDeletedClustersRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeDeletedClustersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeInstanceTypeRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeInstanceTypeResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeIpWhitelistRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeIpWhitelistResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeIpWhitelistGroupsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeIpWhitelistGroupsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeNodeToolExecutionHistoriesResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeParameterModificationHistoriesRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeParameterModificationHistoriesResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeParametersRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeParametersResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/cassandra/model/DescribeSecurityGroupsRequest.h
|
||||
include/alibabacloud/cassandra/model/DescribeSecurityGroupsResult.h
|
||||
include/alibabacloud/cassandra/model/ExecuteNodeToolRequest.h
|
||||
include/alibabacloud/cassandra/model/ExecuteNodeToolResult.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlRequest.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagsRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagsResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyBackupPlanRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyBackupPlanResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyClusterResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyDataCenterRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyDataCenterResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyInstanceMaintainTimeRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyInstanceMaintainTimeResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyInstanceTypeRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyInstanceTypeResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyIpWhitelistRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyIpWhitelistResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyIpWhitelistGroupRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyIpWhitelistGroupResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyParameterRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyParameterResult.h
|
||||
include/alibabacloud/cassandra/model/ModifySecurityGroupsRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifySecurityGroupsResult.h
|
||||
include/alibabacloud/cassandra/model/PurgeClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/PurgeClusterResult.h
|
||||
include/alibabacloud/cassandra/model/RebootClusterRequest.h
|
||||
include/alibabacloud/cassandra/model/RebootClusterResult.h
|
||||
include/alibabacloud/cassandra/model/ReleasePublicContactPointsRequest.h
|
||||
include/alibabacloud/cassandra/model/ReleasePublicContactPointsResult.h
|
||||
include/alibabacloud/cassandra/model/ResizeDiskSizeRequest.h
|
||||
include/alibabacloud/cassandra/model/ResizeDiskSizeResult.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountRequest.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountResult.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionRequest.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionResult.h )
|
||||
|
||||
set(cassandra_src
|
||||
src/CassandraClient.cc
|
||||
src/model/AllocatePublicContactPointsRequest.cc
|
||||
src/model/AllocatePublicContactPointsResult.cc
|
||||
src/model/CreateBackupPlanRequest.cc
|
||||
src/model/CreateBackupPlanResult.cc
|
||||
src/model/CreateClusterRequest.cc
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/CreateDataCenterRequest.cc
|
||||
src/model/CreateDataCenterResult.cc
|
||||
src/model/DeleteBackupPlanRequest.cc
|
||||
src/model/DeleteBackupPlanResult.cc
|
||||
src/model/DeleteClusterRequest.cc
|
||||
src/model/DeleteClusterResult.cc
|
||||
src/model/DeleteDataCenterRequest.cc
|
||||
src/model/DeleteDataCenterResult.cc
|
||||
src/model/DeleteNodeToolExecutionHistoryRequest.cc
|
||||
src/model/DeleteNodeToolExecutionHistoryResult.cc
|
||||
src/model/DescribeAccountsRequest.cc
|
||||
src/model/DescribeAccountsResult.cc
|
||||
src/model/DescribeBackupRequest.cc
|
||||
src/model/DescribeBackupResult.cc
|
||||
src/model/DescribeBackupPlanRequest.cc
|
||||
src/model/DescribeBackupPlanResult.cc
|
||||
src/model/DescribeBackupPlansRequest.cc
|
||||
src/model/DescribeBackupPlansResult.cc
|
||||
src/model/DescribeBackupsRequest.cc
|
||||
src/model/DescribeBackupsResult.cc
|
||||
src/model/DescribeClusterRequest.cc
|
||||
src/model/DescribeClusterResult.cc
|
||||
src/model/DescribeClusterDashboardRequest.cc
|
||||
src/model/DescribeClusterDashboardResult.cc
|
||||
src/model/DescribeClusterStatusRequest.cc
|
||||
src/model/DescribeClusterStatusResult.cc
|
||||
src/model/DescribeClustersRequest.cc
|
||||
src/model/DescribeClustersResult.cc
|
||||
src/model/DescribeContactPointsRequest.cc
|
||||
src/model/DescribeContactPointsResult.cc
|
||||
src/model/DescribeDataCentersRequest.cc
|
||||
src/model/DescribeDataCentersResult.cc
|
||||
src/model/DescribeDeletedClustersRequest.cc
|
||||
src/model/DescribeDeletedClustersResult.cc
|
||||
src/model/DescribeInstanceTypeRequest.cc
|
||||
src/model/DescribeInstanceTypeResult.cc
|
||||
src/model/DescribeIpWhitelistRequest.cc
|
||||
src/model/DescribeIpWhitelistResult.cc
|
||||
src/model/DescribeIpWhitelistGroupsRequest.cc
|
||||
src/model/DescribeIpWhitelistGroupsResult.cc
|
||||
src/model/DescribeNodeToolExecutionHistoriesRequest.cc
|
||||
src/model/DescribeNodeToolExecutionHistoriesResult.cc
|
||||
src/model/DescribeParameterModificationHistoriesRequest.cc
|
||||
src/model/DescribeParameterModificationHistoriesResult.cc
|
||||
src/model/DescribeParametersRequest.cc
|
||||
src/model/DescribeParametersResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeSecurityGroupsRequest.cc
|
||||
src/model/DescribeSecurityGroupsResult.cc
|
||||
src/model/ExecuteNodeToolRequest.cc
|
||||
src/model/ExecuteNodeToolResult.cc
|
||||
src/model/GetCmsUrlRequest.cc
|
||||
src/model/GetCmsUrlResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ListTagsRequest.cc
|
||||
src/model/ListTagsResult.cc
|
||||
src/model/ModifyAccountPasswordRequest.cc
|
||||
src/model/ModifyAccountPasswordResult.cc
|
||||
src/model/ModifyBackupPlanRequest.cc
|
||||
src/model/ModifyBackupPlanResult.cc
|
||||
src/model/ModifyClusterRequest.cc
|
||||
src/model/ModifyClusterResult.cc
|
||||
src/model/ModifyDataCenterRequest.cc
|
||||
src/model/ModifyDataCenterResult.cc
|
||||
src/model/ModifyInstanceMaintainTimeRequest.cc
|
||||
src/model/ModifyInstanceMaintainTimeResult.cc
|
||||
src/model/ModifyInstanceTypeRequest.cc
|
||||
src/model/ModifyInstanceTypeResult.cc
|
||||
src/model/ModifyIpWhitelistRequest.cc
|
||||
src/model/ModifyIpWhitelistResult.cc
|
||||
src/model/ModifyIpWhitelistGroupRequest.cc
|
||||
src/model/ModifyIpWhitelistGroupResult.cc
|
||||
src/model/ModifyParameterRequest.cc
|
||||
src/model/ModifyParameterResult.cc
|
||||
src/model/ModifySecurityGroupsRequest.cc
|
||||
src/model/ModifySecurityGroupsResult.cc
|
||||
src/model/PurgeClusterRequest.cc
|
||||
src/model/PurgeClusterResult.cc
|
||||
src/model/RebootClusterRequest.cc
|
||||
src/model/RebootClusterResult.cc
|
||||
src/model/ReleasePublicContactPointsRequest.cc
|
||||
src/model/ReleasePublicContactPointsResult.cc
|
||||
src/model/ResizeDiskSizeRequest.cc
|
||||
src/model/ResizeDiskSizeResult.cc
|
||||
src/model/ResizeNodeCountRequest.cc
|
||||
src/model/ResizeNodeCountResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnTagResourcesRequest.cc
|
||||
src/model/UnTagResourcesResult.cc
|
||||
src/model/UpgradeClusterVersionRequest.cc
|
||||
src/model/UpgradeClusterVersionResult.cc )
|
||||
|
||||
add_library(cassandra ${LIB_TYPE}
|
||||
${cassandra_public_header}
|
||||
${cassandra_public_header_model}
|
||||
${cassandra_src})
|
||||
|
||||
set_target_properties(cassandra
|
||||
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}cassandra
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cassandra
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CASSANDRA_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cassandra
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cassandra
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cassandra
|
||||
jsoncpp)
|
||||
target_include_directories(cassandra
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cassandra
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cassandra
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cassandra
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cassandra
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cassandra_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cassandra)
|
||||
install(FILES ${cassandra_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cassandra/model)
|
||||
install(TARGETS cassandra
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
446
cassandra/include/alibabacloud/cassandra/CassandraClient.h
Normal file
446
cassandra/include/alibabacloud/cassandra/CassandraClient.h
Normal file
@@ -0,0 +1,446 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CASSANDRA_CASSANDRACLIENT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_CASSANDRACLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CassandraExport.h"
|
||||
#include "model/AllocatePublicContactPointsRequest.h"
|
||||
#include "model/AllocatePublicContactPointsResult.h"
|
||||
#include "model/CreateBackupPlanRequest.h"
|
||||
#include "model/CreateBackupPlanResult.h"
|
||||
#include "model/CreateClusterRequest.h"
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/CreateDataCenterRequest.h"
|
||||
#include "model/CreateDataCenterResult.h"
|
||||
#include "model/DeleteBackupPlanRequest.h"
|
||||
#include "model/DeleteBackupPlanResult.h"
|
||||
#include "model/DeleteClusterRequest.h"
|
||||
#include "model/DeleteClusterResult.h"
|
||||
#include "model/DeleteDataCenterRequest.h"
|
||||
#include "model/DeleteDataCenterResult.h"
|
||||
#include "model/DeleteNodeToolExecutionHistoryRequest.h"
|
||||
#include "model/DeleteNodeToolExecutionHistoryResult.h"
|
||||
#include "model/DescribeAccountsRequest.h"
|
||||
#include "model/DescribeAccountsResult.h"
|
||||
#include "model/DescribeBackupRequest.h"
|
||||
#include "model/DescribeBackupResult.h"
|
||||
#include "model/DescribeBackupPlanRequest.h"
|
||||
#include "model/DescribeBackupPlanResult.h"
|
||||
#include "model/DescribeBackupPlansRequest.h"
|
||||
#include "model/DescribeBackupPlansResult.h"
|
||||
#include "model/DescribeBackupsRequest.h"
|
||||
#include "model/DescribeBackupsResult.h"
|
||||
#include "model/DescribeClusterRequest.h"
|
||||
#include "model/DescribeClusterResult.h"
|
||||
#include "model/DescribeClusterDashboardRequest.h"
|
||||
#include "model/DescribeClusterDashboardResult.h"
|
||||
#include "model/DescribeClusterStatusRequest.h"
|
||||
#include "model/DescribeClusterStatusResult.h"
|
||||
#include "model/DescribeClustersRequest.h"
|
||||
#include "model/DescribeClustersResult.h"
|
||||
#include "model/DescribeContactPointsRequest.h"
|
||||
#include "model/DescribeContactPointsResult.h"
|
||||
#include "model/DescribeDataCentersRequest.h"
|
||||
#include "model/DescribeDataCentersResult.h"
|
||||
#include "model/DescribeDeletedClustersRequest.h"
|
||||
#include "model/DescribeDeletedClustersResult.h"
|
||||
#include "model/DescribeInstanceTypeRequest.h"
|
||||
#include "model/DescribeInstanceTypeResult.h"
|
||||
#include "model/DescribeIpWhitelistRequest.h"
|
||||
#include "model/DescribeIpWhitelistResult.h"
|
||||
#include "model/DescribeIpWhitelistGroupsRequest.h"
|
||||
#include "model/DescribeIpWhitelistGroupsResult.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoriesRequest.h"
|
||||
#include "model/DescribeNodeToolExecutionHistoriesResult.h"
|
||||
#include "model/DescribeParameterModificationHistoriesRequest.h"
|
||||
#include "model/DescribeParameterModificationHistoriesResult.h"
|
||||
#include "model/DescribeParametersRequest.h"
|
||||
#include "model/DescribeParametersResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeSecurityGroupsRequest.h"
|
||||
#include "model/DescribeSecurityGroupsResult.h"
|
||||
#include "model/ExecuteNodeToolRequest.h"
|
||||
#include "model/ExecuteNodeToolResult.h"
|
||||
#include "model/GetCmsUrlRequest.h"
|
||||
#include "model/GetCmsUrlResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
#include "model/ListTagsResult.h"
|
||||
#include "model/ModifyAccountPasswordRequest.h"
|
||||
#include "model/ModifyAccountPasswordResult.h"
|
||||
#include "model/ModifyBackupPlanRequest.h"
|
||||
#include "model/ModifyBackupPlanResult.h"
|
||||
#include "model/ModifyClusterRequest.h"
|
||||
#include "model/ModifyClusterResult.h"
|
||||
#include "model/ModifyDataCenterRequest.h"
|
||||
#include "model/ModifyDataCenterResult.h"
|
||||
#include "model/ModifyInstanceMaintainTimeRequest.h"
|
||||
#include "model/ModifyInstanceMaintainTimeResult.h"
|
||||
#include "model/ModifyInstanceTypeRequest.h"
|
||||
#include "model/ModifyInstanceTypeResult.h"
|
||||
#include "model/ModifyIpWhitelistRequest.h"
|
||||
#include "model/ModifyIpWhitelistResult.h"
|
||||
#include "model/ModifyIpWhitelistGroupRequest.h"
|
||||
#include "model/ModifyIpWhitelistGroupResult.h"
|
||||
#include "model/ModifyParameterRequest.h"
|
||||
#include "model/ModifyParameterResult.h"
|
||||
#include "model/ModifySecurityGroupsRequest.h"
|
||||
#include "model/ModifySecurityGroupsResult.h"
|
||||
#include "model/PurgeClusterRequest.h"
|
||||
#include "model/PurgeClusterResult.h"
|
||||
#include "model/RebootClusterRequest.h"
|
||||
#include "model/RebootClusterResult.h"
|
||||
#include "model/ReleasePublicContactPointsRequest.h"
|
||||
#include "model/ReleasePublicContactPointsResult.h"
|
||||
#include "model/ResizeDiskSizeRequest.h"
|
||||
#include "model/ResizeDiskSizeResult.h"
|
||||
#include "model/ResizeNodeCountRequest.h"
|
||||
#include "model/ResizeNodeCountResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnTagResourcesRequest.h"
|
||||
#include "model/UnTagResourcesResult.h"
|
||||
#include "model/UpgradeClusterVersionRequest.h"
|
||||
#include "model/UpgradeClusterVersionResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CassandraClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AllocatePublicContactPointsResult> AllocatePublicContactPointsOutcome;
|
||||
typedef std::future<AllocatePublicContactPointsOutcome> AllocatePublicContactPointsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::AllocatePublicContactPointsRequest&, const AllocatePublicContactPointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocatePublicContactPointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBackupPlanResult> CreateBackupPlanOutcome;
|
||||
typedef std::future<CreateBackupPlanOutcome> CreateBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::CreateBackupPlanRequest&, const CreateBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateClusterResult> CreateClusterOutcome;
|
||||
typedef std::future<CreateClusterOutcome> CreateClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::CreateClusterRequest&, const CreateClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataCenterResult> CreateDataCenterOutcome;
|
||||
typedef std::future<CreateDataCenterOutcome> CreateDataCenterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::CreateDataCenterRequest&, const CreateDataCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataCenterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBackupPlanResult> DeleteBackupPlanOutcome;
|
||||
typedef std::future<DeleteBackupPlanOutcome> DeleteBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DeleteBackupPlanRequest&, const DeleteBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClusterResult> DeleteClusterOutcome;
|
||||
typedef std::future<DeleteClusterOutcome> DeleteClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DeleteClusterRequest&, const DeleteClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDataCenterResult> DeleteDataCenterOutcome;
|
||||
typedef std::future<DeleteDataCenterOutcome> DeleteDataCenterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DeleteDataCenterRequest&, const DeleteDataCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDataCenterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNodeToolExecutionHistoryResult> DeleteNodeToolExecutionHistoryOutcome;
|
||||
typedef std::future<DeleteNodeToolExecutionHistoryOutcome> DeleteNodeToolExecutionHistoryOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DeleteNodeToolExecutionHistoryRequest&, const DeleteNodeToolExecutionHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNodeToolExecutionHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccountsResult> DescribeAccountsOutcome;
|
||||
typedef std::future<DescribeAccountsOutcome> DescribeAccountsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeAccountsRequest&, const DescribeAccountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccountsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupResult> DescribeBackupOutcome;
|
||||
typedef std::future<DescribeBackupOutcome> DescribeBackupOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeBackupRequest&, const DescribeBackupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanResult> DescribeBackupPlanOutcome;
|
||||
typedef std::future<DescribeBackupPlanOutcome> DescribeBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeBackupPlanRequest&, const DescribeBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPlansResult> DescribeBackupPlansOutcome;
|
||||
typedef std::future<DescribeBackupPlansOutcome> DescribeBackupPlansOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeBackupPlansRequest&, const DescribeBackupPlansOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlansAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupsResult> DescribeBackupsOutcome;
|
||||
typedef std::future<DescribeBackupsOutcome> DescribeBackupsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeBackupsRequest&, const DescribeBackupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterResult> DescribeClusterOutcome;
|
||||
typedef std::future<DescribeClusterOutcome> DescribeClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeClusterRequest&, const DescribeClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterDashboardResult> DescribeClusterDashboardOutcome;
|
||||
typedef std::future<DescribeClusterDashboardOutcome> DescribeClusterDashboardOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeClusterDashboardRequest&, const DescribeClusterDashboardOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterDashboardAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClusterStatusResult> DescribeClusterStatusOutcome;
|
||||
typedef std::future<DescribeClusterStatusOutcome> DescribeClusterStatusOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeClusterStatusRequest&, const DescribeClusterStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClustersResult> DescribeClustersOutcome;
|
||||
typedef std::future<DescribeClustersOutcome> DescribeClustersOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeClustersRequest&, const DescribeClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeContactPointsResult> DescribeContactPointsOutcome;
|
||||
typedef std::future<DescribeContactPointsOutcome> DescribeContactPointsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeContactPointsRequest&, const DescribeContactPointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeContactPointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDataCentersResult> DescribeDataCentersOutcome;
|
||||
typedef std::future<DescribeDataCentersOutcome> DescribeDataCentersOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeDataCentersRequest&, const DescribeDataCentersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDataCentersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDeletedClustersResult> DescribeDeletedClustersOutcome;
|
||||
typedef std::future<DescribeDeletedClustersOutcome> DescribeDeletedClustersOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeDeletedClustersRequest&, const DescribeDeletedClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeletedClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceTypeResult> DescribeInstanceTypeOutcome;
|
||||
typedef std::future<DescribeInstanceTypeOutcome> DescribeInstanceTypeOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeInstanceTypeRequest&, const DescribeInstanceTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpWhitelistResult> DescribeIpWhitelistOutcome;
|
||||
typedef std::future<DescribeIpWhitelistOutcome> DescribeIpWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeIpWhitelistRequest&, const DescribeIpWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpWhitelistGroupsResult> DescribeIpWhitelistGroupsOutcome;
|
||||
typedef std::future<DescribeIpWhitelistGroupsOutcome> DescribeIpWhitelistGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeIpWhitelistGroupsRequest&, const DescribeIpWhitelistGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpWhitelistGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNodeToolExecutionHistoriesResult> DescribeNodeToolExecutionHistoriesOutcome;
|
||||
typedef std::future<DescribeNodeToolExecutionHistoriesOutcome> DescribeNodeToolExecutionHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeNodeToolExecutionHistoriesRequest&, const DescribeNodeToolExecutionHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeToolExecutionHistoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeParameterModificationHistoriesResult> DescribeParameterModificationHistoriesOutcome;
|
||||
typedef std::future<DescribeParameterModificationHistoriesOutcome> DescribeParameterModificationHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeParameterModificationHistoriesRequest&, const DescribeParameterModificationHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParameterModificationHistoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeParametersResult> DescribeParametersOutcome;
|
||||
typedef std::future<DescribeParametersOutcome> DescribeParametersOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeParametersRequest&, const DescribeParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSecurityGroupsResult> DescribeSecurityGroupsOutcome;
|
||||
typedef std::future<DescribeSecurityGroupsOutcome> DescribeSecurityGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::DescribeSecurityGroupsRequest&, const DescribeSecurityGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSecurityGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecuteNodeToolResult> ExecuteNodeToolOutcome;
|
||||
typedef std::future<ExecuteNodeToolOutcome> ExecuteNodeToolOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ExecuteNodeToolRequest&, const ExecuteNodeToolOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteNodeToolAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCmsUrlResult> GetCmsUrlOutcome;
|
||||
typedef std::future<GetCmsUrlOutcome> GetCmsUrlOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::GetCmsUrlRequest&, const GetCmsUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCmsUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAccountPasswordResult> ModifyAccountPasswordOutcome;
|
||||
typedef std::future<ModifyAccountPasswordOutcome> ModifyAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyAccountPasswordRequest&, const ModifyAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountPasswordAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBackupPlanResult> ModifyBackupPlanOutcome;
|
||||
typedef std::future<ModifyBackupPlanOutcome> ModifyBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyBackupPlanRequest&, const ModifyBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyClusterResult> ModifyClusterOutcome;
|
||||
typedef std::future<ModifyClusterOutcome> ModifyClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyClusterRequest&, const ModifyClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDataCenterResult> ModifyDataCenterOutcome;
|
||||
typedef std::future<ModifyDataCenterOutcome> ModifyDataCenterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyDataCenterRequest&, const ModifyDataCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDataCenterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceMaintainTimeResult> ModifyInstanceMaintainTimeOutcome;
|
||||
typedef std::future<ModifyInstanceMaintainTimeOutcome> ModifyInstanceMaintainTimeOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyInstanceMaintainTimeRequest&, const ModifyInstanceMaintainTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceMaintainTimeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceTypeResult> ModifyInstanceTypeOutcome;
|
||||
typedef std::future<ModifyInstanceTypeOutcome> ModifyInstanceTypeOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyInstanceTypeRequest&, const ModifyInstanceTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyIpWhitelistResult> ModifyIpWhitelistOutcome;
|
||||
typedef std::future<ModifyIpWhitelistOutcome> ModifyIpWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyIpWhitelistRequest&, const ModifyIpWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIpWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyIpWhitelistGroupResult> ModifyIpWhitelistGroupOutcome;
|
||||
typedef std::future<ModifyIpWhitelistGroupOutcome> ModifyIpWhitelistGroupOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyIpWhitelistGroupRequest&, const ModifyIpWhitelistGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIpWhitelistGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyParameterResult> ModifyParameterOutcome;
|
||||
typedef std::future<ModifyParameterOutcome> ModifyParameterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyParameterRequest&, const ModifyParameterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyParameterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySecurityGroupsResult> ModifySecurityGroupsOutcome;
|
||||
typedef std::future<ModifySecurityGroupsOutcome> ModifySecurityGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifySecurityGroupsRequest&, const ModifySecurityGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PurgeClusterResult> PurgeClusterOutcome;
|
||||
typedef std::future<PurgeClusterOutcome> PurgeClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::PurgeClusterRequest&, const PurgeClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PurgeClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::RebootClusterResult> RebootClusterOutcome;
|
||||
typedef std::future<RebootClusterOutcome> RebootClusterOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::RebootClusterRequest&, const RebootClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleasePublicContactPointsResult> ReleasePublicContactPointsOutcome;
|
||||
typedef std::future<ReleasePublicContactPointsOutcome> ReleasePublicContactPointsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ReleasePublicContactPointsRequest&, const ReleasePublicContactPointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleasePublicContactPointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResizeDiskSizeResult> ResizeDiskSizeOutcome;
|
||||
typedef std::future<ResizeDiskSizeOutcome> ResizeDiskSizeOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ResizeDiskSizeRequest&, const ResizeDiskSizeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeDiskSizeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ResizeNodeCountResult> ResizeNodeCountOutcome;
|
||||
typedef std::future<ResizeNodeCountOutcome> ResizeNodeCountOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ResizeNodeCountRequest&, const ResizeNodeCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeNodeCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnTagResourcesResult> UnTagResourcesOutcome;
|
||||
typedef std::future<UnTagResourcesOutcome> UnTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UnTagResourcesRequest&, const UnTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClusterVersionResult> UpgradeClusterVersionOutcome;
|
||||
typedef std::future<UpgradeClusterVersionOutcome> UpgradeClusterVersionOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UpgradeClusterVersionRequest&, const UpgradeClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClusterVersionAsyncHandler;
|
||||
|
||||
CassandraClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CassandraClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CassandraClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CassandraClient();
|
||||
AllocatePublicContactPointsOutcome allocatePublicContactPoints(const Model::AllocatePublicContactPointsRequest &request)const;
|
||||
void allocatePublicContactPointsAsync(const Model::AllocatePublicContactPointsRequest& request, const AllocatePublicContactPointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocatePublicContactPointsOutcomeCallable allocatePublicContactPointsCallable(const Model::AllocatePublicContactPointsRequest& request) const;
|
||||
CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const;
|
||||
void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const;
|
||||
CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const;
|
||||
void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const;
|
||||
CreateDataCenterOutcome createDataCenter(const Model::CreateDataCenterRequest &request)const;
|
||||
void createDataCenterAsync(const Model::CreateDataCenterRequest& request, const CreateDataCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataCenterOutcomeCallable createDataCenterCallable(const Model::CreateDataCenterRequest& request) const;
|
||||
DeleteBackupPlanOutcome deleteBackupPlan(const Model::DeleteBackupPlanRequest &request)const;
|
||||
void deleteBackupPlanAsync(const Model::DeleteBackupPlanRequest& request, const DeleteBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBackupPlanOutcomeCallable deleteBackupPlanCallable(const Model::DeleteBackupPlanRequest& request) const;
|
||||
DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const;
|
||||
void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const;
|
||||
DeleteDataCenterOutcome deleteDataCenter(const Model::DeleteDataCenterRequest &request)const;
|
||||
void deleteDataCenterAsync(const Model::DeleteDataCenterRequest& request, const DeleteDataCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDataCenterOutcomeCallable deleteDataCenterCallable(const Model::DeleteDataCenterRequest& request) const;
|
||||
DeleteNodeToolExecutionHistoryOutcome deleteNodeToolExecutionHistory(const Model::DeleteNodeToolExecutionHistoryRequest &request)const;
|
||||
void deleteNodeToolExecutionHistoryAsync(const Model::DeleteNodeToolExecutionHistoryRequest& request, const DeleteNodeToolExecutionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNodeToolExecutionHistoryOutcomeCallable deleteNodeToolExecutionHistoryCallable(const Model::DeleteNodeToolExecutionHistoryRequest& request) const;
|
||||
DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const;
|
||||
void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const;
|
||||
DescribeBackupOutcome describeBackup(const Model::DescribeBackupRequest &request)const;
|
||||
void describeBackupAsync(const Model::DescribeBackupRequest& request, const DescribeBackupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupOutcomeCallable describeBackupCallable(const Model::DescribeBackupRequest& request) const;
|
||||
DescribeBackupPlanOutcome describeBackupPlan(const Model::DescribeBackupPlanRequest &request)const;
|
||||
void describeBackupPlanAsync(const Model::DescribeBackupPlanRequest& request, const DescribeBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanOutcomeCallable describeBackupPlanCallable(const Model::DescribeBackupPlanRequest& request) const;
|
||||
DescribeBackupPlansOutcome describeBackupPlans(const Model::DescribeBackupPlansRequest &request)const;
|
||||
void describeBackupPlansAsync(const Model::DescribeBackupPlansRequest& request, const DescribeBackupPlansAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlansOutcomeCallable describeBackupPlansCallable(const Model::DescribeBackupPlansRequest& request) const;
|
||||
DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const;
|
||||
void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const;
|
||||
DescribeClusterOutcome describeCluster(const Model::DescribeClusterRequest &request)const;
|
||||
void describeClusterAsync(const Model::DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterOutcomeCallable describeClusterCallable(const Model::DescribeClusterRequest& request) const;
|
||||
DescribeClusterDashboardOutcome describeClusterDashboard(const Model::DescribeClusterDashboardRequest &request)const;
|
||||
void describeClusterDashboardAsync(const Model::DescribeClusterDashboardRequest& request, const DescribeClusterDashboardAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterDashboardOutcomeCallable describeClusterDashboardCallable(const Model::DescribeClusterDashboardRequest& request) const;
|
||||
DescribeClusterStatusOutcome describeClusterStatus(const Model::DescribeClusterStatusRequest &request)const;
|
||||
void describeClusterStatusAsync(const Model::DescribeClusterStatusRequest& request, const DescribeClusterStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClusterStatusOutcomeCallable describeClusterStatusCallable(const Model::DescribeClusterStatusRequest& request) const;
|
||||
DescribeClustersOutcome describeClusters(const Model::DescribeClustersRequest &request)const;
|
||||
void describeClustersAsync(const Model::DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClustersOutcomeCallable describeClustersCallable(const Model::DescribeClustersRequest& request) const;
|
||||
DescribeContactPointsOutcome describeContactPoints(const Model::DescribeContactPointsRequest &request)const;
|
||||
void describeContactPointsAsync(const Model::DescribeContactPointsRequest& request, const DescribeContactPointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeContactPointsOutcomeCallable describeContactPointsCallable(const Model::DescribeContactPointsRequest& request) const;
|
||||
DescribeDataCentersOutcome describeDataCenters(const Model::DescribeDataCentersRequest &request)const;
|
||||
void describeDataCentersAsync(const Model::DescribeDataCentersRequest& request, const DescribeDataCentersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDataCentersOutcomeCallable describeDataCentersCallable(const Model::DescribeDataCentersRequest& request) const;
|
||||
DescribeDeletedClustersOutcome describeDeletedClusters(const Model::DescribeDeletedClustersRequest &request)const;
|
||||
void describeDeletedClustersAsync(const Model::DescribeDeletedClustersRequest& request, const DescribeDeletedClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeletedClustersOutcomeCallable describeDeletedClustersCallable(const Model::DescribeDeletedClustersRequest& request) const;
|
||||
DescribeInstanceTypeOutcome describeInstanceType(const Model::DescribeInstanceTypeRequest &request)const;
|
||||
void describeInstanceTypeAsync(const Model::DescribeInstanceTypeRequest& request, const DescribeInstanceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceTypeOutcomeCallable describeInstanceTypeCallable(const Model::DescribeInstanceTypeRequest& request) const;
|
||||
DescribeIpWhitelistOutcome describeIpWhitelist(const Model::DescribeIpWhitelistRequest &request)const;
|
||||
void describeIpWhitelistAsync(const Model::DescribeIpWhitelistRequest& request, const DescribeIpWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpWhitelistOutcomeCallable describeIpWhitelistCallable(const Model::DescribeIpWhitelistRequest& request) const;
|
||||
DescribeIpWhitelistGroupsOutcome describeIpWhitelistGroups(const Model::DescribeIpWhitelistGroupsRequest &request)const;
|
||||
void describeIpWhitelistGroupsAsync(const Model::DescribeIpWhitelistGroupsRequest& request, const DescribeIpWhitelistGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpWhitelistGroupsOutcomeCallable describeIpWhitelistGroupsCallable(const Model::DescribeIpWhitelistGroupsRequest& request) const;
|
||||
DescribeNodeToolExecutionHistoriesOutcome describeNodeToolExecutionHistories(const Model::DescribeNodeToolExecutionHistoriesRequest &request)const;
|
||||
void describeNodeToolExecutionHistoriesAsync(const Model::DescribeNodeToolExecutionHistoriesRequest& request, const DescribeNodeToolExecutionHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNodeToolExecutionHistoriesOutcomeCallable describeNodeToolExecutionHistoriesCallable(const Model::DescribeNodeToolExecutionHistoriesRequest& request) const;
|
||||
DescribeParameterModificationHistoriesOutcome describeParameterModificationHistories(const Model::DescribeParameterModificationHistoriesRequest &request)const;
|
||||
void describeParameterModificationHistoriesAsync(const Model::DescribeParameterModificationHistoriesRequest& request, const DescribeParameterModificationHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeParameterModificationHistoriesOutcomeCallable describeParameterModificationHistoriesCallable(const Model::DescribeParameterModificationHistoriesRequest& request) const;
|
||||
DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const;
|
||||
void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeSecurityGroupsOutcome describeSecurityGroups(const Model::DescribeSecurityGroupsRequest &request)const;
|
||||
void describeSecurityGroupsAsync(const Model::DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSecurityGroupsOutcomeCallable describeSecurityGroupsCallable(const Model::DescribeSecurityGroupsRequest& request) const;
|
||||
ExecuteNodeToolOutcome executeNodeTool(const Model::ExecuteNodeToolRequest &request)const;
|
||||
void executeNodeToolAsync(const Model::ExecuteNodeToolRequest& request, const ExecuteNodeToolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecuteNodeToolOutcomeCallable executeNodeToolCallable(const Model::ExecuteNodeToolRequest& request) const;
|
||||
GetCmsUrlOutcome getCmsUrl(const Model::GetCmsUrlRequest &request)const;
|
||||
void getCmsUrlAsync(const Model::GetCmsUrlRequest& request, const GetCmsUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCmsUrlOutcomeCallable getCmsUrlCallable(const Model::GetCmsUrlRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const;
|
||||
void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const;
|
||||
ModifyBackupPlanOutcome modifyBackupPlan(const Model::ModifyBackupPlanRequest &request)const;
|
||||
void modifyBackupPlanAsync(const Model::ModifyBackupPlanRequest& request, const ModifyBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupPlanOutcomeCallable modifyBackupPlanCallable(const Model::ModifyBackupPlanRequest& request) const;
|
||||
ModifyClusterOutcome modifyCluster(const Model::ModifyClusterRequest &request)const;
|
||||
void modifyClusterAsync(const Model::ModifyClusterRequest& request, const ModifyClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyClusterOutcomeCallable modifyClusterCallable(const Model::ModifyClusterRequest& request) const;
|
||||
ModifyDataCenterOutcome modifyDataCenter(const Model::ModifyDataCenterRequest &request)const;
|
||||
void modifyDataCenterAsync(const Model::ModifyDataCenterRequest& request, const ModifyDataCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDataCenterOutcomeCallable modifyDataCenterCallable(const Model::ModifyDataCenterRequest& request) const;
|
||||
ModifyInstanceMaintainTimeOutcome modifyInstanceMaintainTime(const Model::ModifyInstanceMaintainTimeRequest &request)const;
|
||||
void modifyInstanceMaintainTimeAsync(const Model::ModifyInstanceMaintainTimeRequest& request, const ModifyInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceMaintainTimeOutcomeCallable modifyInstanceMaintainTimeCallable(const Model::ModifyInstanceMaintainTimeRequest& request) const;
|
||||
ModifyInstanceTypeOutcome modifyInstanceType(const Model::ModifyInstanceTypeRequest &request)const;
|
||||
void modifyInstanceTypeAsync(const Model::ModifyInstanceTypeRequest& request, const ModifyInstanceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceTypeOutcomeCallable modifyInstanceTypeCallable(const Model::ModifyInstanceTypeRequest& request) const;
|
||||
ModifyIpWhitelistOutcome modifyIpWhitelist(const Model::ModifyIpWhitelistRequest &request)const;
|
||||
void modifyIpWhitelistAsync(const Model::ModifyIpWhitelistRequest& request, const ModifyIpWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyIpWhitelistOutcomeCallable modifyIpWhitelistCallable(const Model::ModifyIpWhitelistRequest& request) const;
|
||||
ModifyIpWhitelistGroupOutcome modifyIpWhitelistGroup(const Model::ModifyIpWhitelistGroupRequest &request)const;
|
||||
void modifyIpWhitelistGroupAsync(const Model::ModifyIpWhitelistGroupRequest& request, const ModifyIpWhitelistGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyIpWhitelistGroupOutcomeCallable modifyIpWhitelistGroupCallable(const Model::ModifyIpWhitelistGroupRequest& request) const;
|
||||
ModifyParameterOutcome modifyParameter(const Model::ModifyParameterRequest &request)const;
|
||||
void modifyParameterAsync(const Model::ModifyParameterRequest& request, const ModifyParameterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyParameterOutcomeCallable modifyParameterCallable(const Model::ModifyParameterRequest& request) const;
|
||||
ModifySecurityGroupsOutcome modifySecurityGroups(const Model::ModifySecurityGroupsRequest &request)const;
|
||||
void modifySecurityGroupsAsync(const Model::ModifySecurityGroupsRequest& request, const ModifySecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySecurityGroupsOutcomeCallable modifySecurityGroupsCallable(const Model::ModifySecurityGroupsRequest& request) const;
|
||||
PurgeClusterOutcome purgeCluster(const Model::PurgeClusterRequest &request)const;
|
||||
void purgeClusterAsync(const Model::PurgeClusterRequest& request, const PurgeClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PurgeClusterOutcomeCallable purgeClusterCallable(const Model::PurgeClusterRequest& request) const;
|
||||
RebootClusterOutcome rebootCluster(const Model::RebootClusterRequest &request)const;
|
||||
void rebootClusterAsync(const Model::RebootClusterRequest& request, const RebootClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebootClusterOutcomeCallable rebootClusterCallable(const Model::RebootClusterRequest& request) const;
|
||||
ReleasePublicContactPointsOutcome releasePublicContactPoints(const Model::ReleasePublicContactPointsRequest &request)const;
|
||||
void releasePublicContactPointsAsync(const Model::ReleasePublicContactPointsRequest& request, const ReleasePublicContactPointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleasePublicContactPointsOutcomeCallable releasePublicContactPointsCallable(const Model::ReleasePublicContactPointsRequest& request) const;
|
||||
ResizeDiskSizeOutcome resizeDiskSize(const Model::ResizeDiskSizeRequest &request)const;
|
||||
void resizeDiskSizeAsync(const Model::ResizeDiskSizeRequest& request, const ResizeDiskSizeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResizeDiskSizeOutcomeCallable resizeDiskSizeCallable(const Model::ResizeDiskSizeRequest& request) const;
|
||||
ResizeNodeCountOutcome resizeNodeCount(const Model::ResizeNodeCountRequest &request)const;
|
||||
void resizeNodeCountAsync(const Model::ResizeNodeCountRequest& request, const ResizeNodeCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResizeNodeCountOutcomeCallable resizeNodeCountCallable(const Model::ResizeNodeCountRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const;
|
||||
void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const;
|
||||
UpgradeClusterVersionOutcome upgradeClusterVersion(const Model::UpgradeClusterVersionRequest &request)const;
|
||||
void upgradeClusterVersionAsync(const Model::UpgradeClusterVersionRequest& request, const UpgradeClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClusterVersionOutcomeCallable upgradeClusterVersionCallable(const Model::UpgradeClusterVersionRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_CASSANDRACLIENT_H_
|
||||
32
cassandra/include/alibabacloud/cassandra/CassandraExport.h
Normal file
32
cassandra/include/alibabacloud/cassandra/CassandraExport.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_CASSANDRA_CASSANDRAEXPORT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_CASSANDRAEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CASSANDRA_LIBRARY)
|
||||
# define ALIBABACLOUD_CASSANDRA_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CASSANDRA_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CASSANDRA_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_CASSANDRAEXPORT_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_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT AllocatePublicContactPointsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AllocatePublicContactPointsRequest();
|
||||
~AllocatePublicContactPointsRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSREQUEST_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_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT AllocatePublicContactPointsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AllocatePublicContactPointsResult();
|
||||
explicit AllocatePublicContactPointsResult(const std::string &payload);
|
||||
~AllocatePublicContactPointsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_ALLOCATEPUBLICCONTACTPOINTSRESULT_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_CASSANDRA_MODEL_CREATEBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATEBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBackupPlanRequest();
|
||||
~CreateBackupPlanRequest();
|
||||
|
||||
int getRetentionPeriod()const;
|
||||
void setRetentionPeriod(int retentionPeriod);
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
bool getActive()const;
|
||||
void setActive(bool active);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getBackupTime()const;
|
||||
void setBackupTime(const std::string& backupTime);
|
||||
std::string getBackupPeriod()const;
|
||||
void setBackupPeriod(const std::string& backupPeriod);
|
||||
|
||||
private:
|
||||
int retentionPeriod_;
|
||||
std::string dataCenterId_;
|
||||
bool active_;
|
||||
std::string clusterId_;
|
||||
std::string backupTime_;
|
||||
std::string backupPeriod_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATEBACKUPPLANREQUEST_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_CASSANDRA_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateBackupPlanResult();
|
||||
explicit CreateBackupPlanResult(const std::string &payload);
|
||||
~CreateBackupPlanResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATEBACKUPPLANRESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_CREATECLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATECLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateClusterRequest();
|
||||
~CreateClusterRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
std::string getPassword()const;
|
||||
void setPassword(const std::string& password);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
std::string getMajorVersion()const;
|
||||
void setMajorVersion(const std::string& majorVersion);
|
||||
int getDiskSize()const;
|
||||
void setDiskSize(int diskSize);
|
||||
std::string getDiskType()const;
|
||||
void setDiskType(const std::string& diskType);
|
||||
std::string getVswitchId()const;
|
||||
void setVswitchId(const std::string& vswitchId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
bool getAutoRenew()const;
|
||||
void setAutoRenew(bool autoRenew);
|
||||
std::string getDataCenterName()const;
|
||||
void setDataCenterName(const std::string& dataCenterName);
|
||||
int getNodeCount()const;
|
||||
void setNodeCount(int nodeCount);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string clusterName_;
|
||||
std::string password_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
std::string majorVersion_;
|
||||
int diskSize_;
|
||||
std::string diskType_;
|
||||
std::string vswitchId_;
|
||||
std::string periodUnit_;
|
||||
bool autoRenew_;
|
||||
std::string dataCenterName_;
|
||||
int nodeCount_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATECLUSTERREQUEST_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_CASSANDRA_MODEL_CREATECLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATECLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateClusterResult();
|
||||
explicit CreateClusterResult(const std::string &payload);
|
||||
~CreateClusterResult();
|
||||
std::string getClusterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATECLUSTERRESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_CREATEDATACENTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATEDATACENTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateDataCenterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDataCenterRequest();
|
||||
~CreateDataCenterRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
int getDiskSize()const;
|
||||
void setDiskSize(int diskSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getDiskType()const;
|
||||
void setDiskType(const std::string& diskType);
|
||||
std::string getVswitchId()const;
|
||||
void setVswitchId(const std::string& vswitchId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
bool getAutoRenew()const;
|
||||
void setAutoRenew(bool autoRenew);
|
||||
std::string getDataCenterName()const;
|
||||
void setDataCenterName(const std::string& dataCenterName);
|
||||
int getNodeCount()const;
|
||||
void setNodeCount(int nodeCount);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
int diskSize_;
|
||||
std::string clusterId_;
|
||||
std::string diskType_;
|
||||
std::string vswitchId_;
|
||||
std::string periodUnit_;
|
||||
bool autoRenew_;
|
||||
std::string dataCenterName_;
|
||||
int nodeCount_;
|
||||
std::string vpcId_;
|
||||
std::string zoneId_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATEDATACENTERREQUEST_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_CASSANDRA_MODEL_CREATEDATACENTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_CREATEDATACENTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT CreateDataCenterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDataCenterResult();
|
||||
explicit CreateDataCenterResult(const std::string &payload);
|
||||
~CreateDataCenterResult();
|
||||
std::string getDataCenterId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_CREATEDATACENTERRESULT_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_CASSANDRA_MODEL_DELETEBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETEBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBackupPlanRequest();
|
||||
~DeleteBackupPlanRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETEBACKUPPLANREQUEST_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_CASSANDRA_MODEL_DELETEBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETEBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteBackupPlanResult();
|
||||
explicit DeleteBackupPlanResult(const std::string &payload);
|
||||
~DeleteBackupPlanResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETEBACKUPPLANRESULT_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_CASSANDRA_MODEL_DELETECLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETECLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteClusterRequest();
|
||||
~DeleteClusterRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETECLUSTERREQUEST_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_CASSANDRA_MODEL_DELETECLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETECLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteClusterResult();
|
||||
explicit DeleteClusterResult(const std::string &payload);
|
||||
~DeleteClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETECLUSTERRESULT_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_CASSANDRA_MODEL_DELETEDATACENTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETEDATACENTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteDataCenterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDataCenterRequest();
|
||||
~DeleteDataCenterRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETEDATACENTERREQUEST_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_CASSANDRA_MODEL_DELETEDATACENTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETEDATACENTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteDataCenterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDataCenterResult();
|
||||
explicit DeleteDataCenterResult(const std::string &payload);
|
||||
~DeleteDataCenterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETEDATACENTERRESULT_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_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteNodeToolExecutionHistoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteNodeToolExecutionHistoryRequest();
|
||||
~DeleteNodeToolExecutionHistoryRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
std::string jobId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYREQUEST_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_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DeleteNodeToolExecutionHistoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteNodeToolExecutionHistoryResult();
|
||||
explicit DeleteNodeToolExecutionHistoryResult(const std::string &payload);
|
||||
~DeleteNodeToolExecutionHistoryResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DELETENODETOOLEXECUTIONHISTORYRESULT_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_CASSANDRA_MODEL_DESCRIBEACCOUNTSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEACCOUNTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeAccountsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAccountsRequest();
|
||||
~DescribeAccountsRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEACCOUNTSREQUEST_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_CASSANDRA_MODEL_DESCRIBEACCOUNTSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEACCOUNTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeAccountsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Account
|
||||
{
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeAccountsResult();
|
||||
explicit DescribeAccountsResult(const std::string &payload);
|
||||
~DescribeAccountsResult();
|
||||
std::vector<Account> getAccounts()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Account> accounts_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEACCOUNTSRESULT_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_CASSANDRA_MODEL_DESCRIBEBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupPlanRequest();
|
||||
~DescribeBackupPlanRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupPlan
|
||||
{
|
||||
std::string dataCenterId;
|
||||
std::string backupPeriod;
|
||||
bool active;
|
||||
std::string createdTime;
|
||||
std::string clusterId;
|
||||
std::string backupTime;
|
||||
int retentionPeriod;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupPlanResult();
|
||||
explicit DescribeBackupPlanResult(const std::string &payload);
|
||||
~DescribeBackupPlanResult();
|
||||
BackupPlan getBackupPlan()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
BackupPlan backupPlan_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANRESULT_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_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupPlansRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupPlansRequest();
|
||||
~DescribeBackupPlansRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupPlansResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupPlan
|
||||
{
|
||||
std::string dataCenterId;
|
||||
std::string backupPeriod;
|
||||
bool active;
|
||||
std::string createdTime;
|
||||
std::string clusterId;
|
||||
std::string backupTime;
|
||||
int retentionPeriod;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupPlansResult();
|
||||
explicit DescribeBackupPlansResult(const std::string &payload);
|
||||
~DescribeBackupPlansResult();
|
||||
std::vector<BackupPlan> getBackupPlans()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<BackupPlan> backupPlans_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPPLANSRESULT_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_CASSANDRA_MODEL_DESCRIBEBACKUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupRequest();
|
||||
~DescribeBackupRequest();
|
||||
|
||||
std::string getBackupType()const;
|
||||
void setBackupType(const std::string& backupType);
|
||||
std::string getBackupId()const;
|
||||
void setBackupId(const std::string& backupId);
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string backupType_;
|
||||
std::string backupId_;
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPREQUEST_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_CASSANDRA_MODEL_DESCRIBEBACKUPRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Backup
|
||||
{
|
||||
std::string status;
|
||||
std::string dataCenterId;
|
||||
std::string details;
|
||||
std::string endTime;
|
||||
std::string clusterId;
|
||||
long size;
|
||||
std::string startTime;
|
||||
std::string backupId;
|
||||
std::string backupType;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupResult();
|
||||
explicit DescribeBackupResult(const std::string &payload);
|
||||
~DescribeBackupResult();
|
||||
Backup getBackup()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Backup backup_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPRESULT_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_CASSANDRA_MODEL_DESCRIBEBACKUPSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupsRequest();
|
||||
~DescribeBackupsRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getBackupType()const;
|
||||
void setBackupType(const std::string& backupType);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
std::string backupType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPSREQUEST_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_CASSANDRA_MODEL_DESCRIBEBACKUPSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeBackupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Backup
|
||||
{
|
||||
std::string status;
|
||||
std::string dataCenterId;
|
||||
std::string endTime;
|
||||
std::string clusterId;
|
||||
long size;
|
||||
std::string startTime;
|
||||
std::string backupId;
|
||||
std::string backupType;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupsResult();
|
||||
explicit DescribeBackupsResult(const std::string &payload);
|
||||
~DescribeBackupsResult();
|
||||
std::vector<Backup> getBackups()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Backup> backups_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBEBACKUPSRESULT_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_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterDashboardRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterDashboardRequest();
|
||||
~DescribeClusterDashboardRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterDashboardResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Dashboard
|
||||
{
|
||||
struct DataCenter
|
||||
{
|
||||
struct Node
|
||||
{
|
||||
std::string status;
|
||||
std::string load;
|
||||
std::string address;
|
||||
};
|
||||
std::string dataCenterId;
|
||||
std::vector<DataCenter::Node> nodes;
|
||||
};
|
||||
std::vector<DataCenter> dataCenters;
|
||||
std::string clusterId;
|
||||
};
|
||||
|
||||
|
||||
DescribeClusterDashboardResult();
|
||||
explicit DescribeClusterDashboardResult(const std::string &payload);
|
||||
~DescribeClusterDashboardResult();
|
||||
Dashboard getDashboard()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Dashboard dashboard_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERDASHBOARDRESULT_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_CASSANDRA_MODEL_DESCRIBECLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterRequest();
|
||||
~DescribeClusterRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
std::string clusterId;
|
||||
std::string minorVersion;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
bool isLatestVersion;
|
||||
std::string maintainEndTime;
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
std::vector<Tag> tags;
|
||||
std::string maintainStartTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeClusterResult();
|
||||
explicit DescribeClusterResult(const std::string &payload);
|
||||
~DescribeClusterResult();
|
||||
Cluster getCluster()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Cluster cluster_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERRESULT_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_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeClusterStatusRequest();
|
||||
~DescribeClusterStatusRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSREQUEST_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_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClusterStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeClusterStatusResult();
|
||||
explicit DescribeClusterStatusResult(const std::string &payload);
|
||||
~DescribeClusterStatusResult();
|
||||
std::string getStatus()const;
|
||||
std::string getCreatedTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string createdTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSTATUSRESULT_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_CASSANDRA_MODEL_DESCRIBECLUSTERSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeClustersRequest();
|
||||
~DescribeClustersRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_DESCRIBECLUSTERSREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user