Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
590e1bdfaf | ||
|
|
bde21ef594 | ||
|
|
7a8130ffb0 | ||
|
|
4bb1852f8a | ||
|
|
b1e2187ca5 | ||
|
|
92be79728f | ||
|
|
e1097547c2 | ||
|
|
87957e1677 | ||
|
|
8ef38637d2 | ||
|
|
7041b32dc4 | ||
|
|
d3ae1f02a3 | ||
|
|
87fc3376cb | ||
|
|
f6ec6326cb | ||
|
|
bd43e54271 | ||
|
|
f16150baca |
47
CHANGELOG
47
CHANGELOG
@@ -1,3 +1,50 @@
|
||||
2020-05-08 Version: 1.36.399
|
||||
- Support sg for region.
|
||||
|
||||
2020-05-06 Version: 1.36.398
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-30 Version: 1.36.397
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.396
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.395
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.394
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.393
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.392
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.391
|
||||
- Add ListTemplateVersions API.
|
||||
- GenerateExecutionPolicy supports TemplateVersion.
|
||||
- CreateTemplate and UpdateTemplate support VersionName.
|
||||
|
||||
|
||||
2020-04-29 Version: 1.36.390
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-29 Version: 1.36.389
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-04-29 Version: 1.36.388
|
||||
- Support Document Translation.
|
||||
- Support Lanuage Detection.
|
||||
|
||||
2020-04-29 Version: 1.36.387
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-04-29 Version: 1.36.386
|
||||
- Add Scdn APIS.
|
||||
- Sync cdn APIS.
|
||||
|
||||
2020-04-28 Version: 1.36.385
|
||||
- Generated 2019-03-15 for `fnf`.
|
||||
|
||||
|
||||
@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
|
||||
@@ -25,6 +25,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -39,6 +41,8 @@ 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/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
@@ -51,6 +55,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||
include/alibabacloud/arms/model/ListDashboardsResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
@@ -98,6 +104,8 @@ set(arms_src
|
||||
src/model/AddGrafanaResult.cc
|
||||
src/model/AddIntegrationRequest.cc
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/CheckDataConsistencyRequest.cc
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
@@ -112,6 +120,8 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
src/model/GetPrometheusApiTokenResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
@@ -124,6 +134,8 @@ set(arms_src
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListDashboardsRequest.cc
|
||||
src/model/ListDashboardsResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "model/AddGrafanaResult.h"
|
||||
#include "model/AddIntegrationRequest.h"
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/CheckDataConsistencyRequest.h"
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -40,6 +42,8 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
#include "model/GetPrometheusApiTokenResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
@@ -52,6 +56,8 @@
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListDashboardsRequest.h"
|
||||
#include "model/ListDashboardsResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
@@ -107,6 +113,9 @@ namespace AlibabaCloud
|
||||
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::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
||||
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
||||
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;
|
||||
@@ -128,6 +137,9 @@ 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::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
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;
|
||||
@@ -146,6 +158,9 @@ namespace AlibabaCloud
|
||||
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::ListDashboardsResult> ListDashboardsOutcome;
|
||||
typedef std::future<ListDashboardsOutcome> ListDashboardsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListDashboardsRequest&, const ListDashboardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardsAsyncHandler;
|
||||
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;
|
||||
@@ -217,6 +232,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
||||
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& 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;
|
||||
@@ -238,6 +256,9 @@ 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;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& 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;
|
||||
@@ -256,6 +277,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ListDashboardsOutcome listDashboards(const Model::ListDashboardsRequest &request)const;
|
||||
void listDashboardsAsync(const Model::ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardsOutcomeCallable listDashboardsCallable(const Model::ListDashboardsRequest& 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;
|
||||
|
||||
@@ -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_CHECKDATACONSISTENCYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_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 CheckDataConsistencyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckDataConsistencyRequest();
|
||||
~CheckDataConsistencyRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
@@ -14,44 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCnameResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int status;
|
||||
std::string domain;
|
||||
std::string cname;
|
||||
};
|
||||
|
||||
|
||||
DescribeDomainCnameResult();
|
||||
explicit DescribeDomainCnameResult(const std::string &payload);
|
||||
~DescribeDomainCnameResult();
|
||||
std::vector<Data> getCnameDatas()const;
|
||||
CheckDataConsistencyResult();
|
||||
explicit CheckDataConsistencyResult(const std::string &payload);
|
||||
~CheckDataConsistencyResult();
|
||||
bool getIsDataConsistency()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Data> cnameDatas_;
|
||||
bool isDataConsistency_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_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_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_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 GetConsistencySnapshotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConsistencySnapshotRequest();
|
||||
~GetConsistencySnapshotRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_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 GetConsistencySnapshotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConsistencyResult
|
||||
{
|
||||
struct SlsShardWatermarkBean
|
||||
{
|
||||
struct CheckPointResponse
|
||||
{
|
||||
std::string consumer;
|
||||
long updateTime;
|
||||
int shard;
|
||||
std::string checkPoint;
|
||||
};
|
||||
std::string userId;
|
||||
std::vector<CheckPointResponse> checkPointResponses;
|
||||
std::string pid;
|
||||
std::vector<std::string> cursorUpdateTimes;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
};
|
||||
struct AgentHeartbeatInfo
|
||||
{
|
||||
long startTimestamp;
|
||||
std::string agentVersion;
|
||||
std::string ip;
|
||||
std::string hostname;
|
||||
long lastHeartbeatTime;
|
||||
std::string pid;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
std::string procId;
|
||||
};
|
||||
long lastSlsShardWatermarkTimestamp;
|
||||
long lastAgentInfoTimestamp;
|
||||
long judgeTimestamp;
|
||||
SlsShardWatermarkBean slsShardWatermarkBean;
|
||||
std::string barrierPointsLastTimestampMap;
|
||||
long lastBarrierTimestamp;
|
||||
std::vector<AgentHeartbeatInfo> agentHeartbeatInfos;
|
||||
};
|
||||
|
||||
|
||||
GetConsistencySnapshotResult();
|
||||
explicit GetConsistencySnapshotResult(const std::string &payload);
|
||||
~GetConsistencySnapshotResult();
|
||||
ConsistencyResult getConsistencyResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConsistencyResult consistencyResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCnameRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListDashboardsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDomainCnameRequest();
|
||||
~DescribeDomainCnameRequest();
|
||||
ListDashboardsRequest();
|
||||
~ListDashboardsRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string regionId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
63
arms/include/alibabacloud/arms/model/ListDashboardsResult.h
Normal file
63
arms/include/alibabacloud/arms/model/ListDashboardsResult.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_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 ListDashboardsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DashboardVosItem
|
||||
{
|
||||
std::string uid;
|
||||
std::string type;
|
||||
std::string title;
|
||||
std::string time;
|
||||
std::string id;
|
||||
std::string exporter;
|
||||
std::string url;
|
||||
std::vector<std::string> tags;
|
||||
bool isArmsExporter;
|
||||
};
|
||||
|
||||
|
||||
ListDashboardsResult();
|
||||
explicit ListDashboardsResult(const std::string &payload);
|
||||
~ListDashboardsResult();
|
||||
std::vector<DashboardVosItem> getDashboardVos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DashboardVosItem> dashboardVos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
QueryMetricRequest();
|
||||
~QueryMetricRequest();
|
||||
|
||||
std::string getConsistencyQueryStrategy()const;
|
||||
void setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
@@ -49,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getConsistencyDataKey()const;
|
||||
void setConsistencyDataKey(const std::string& consistencyDataKey);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
@@ -65,10 +69,12 @@ namespace AlibabaCloud
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string consistencyQueryStrategy_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string consistencyDataKey_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
|
||||
@@ -123,6 +123,42 @@ ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(CheckDataConsistencyResult(outcome.result()));
|
||||
else
|
||||
return CheckDataConsistencyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::checkDataConsistencyAsync(const CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDataConsistency(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcomeCallable ARMSClient::checkDataConsistencyCallable(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDataConsistencyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDataConsistency(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +411,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(GetConsistencySnapshotResult(outcome.result()));
|
||||
else
|
||||
return GetConsistencySnapshotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getConsistencySnapshotAsync(const GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getConsistencySnapshot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnapshotCallable(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetConsistencySnapshotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getConsistencySnapshot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcome ARMSClient::getPrometheusApiToken(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +663,42 @@ ARMSClient::ListClusterFromGrafanaOutcomeCallable ARMSClient::listClusterFromGra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcome ARMSClient::listDashboards(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDashboardsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDashboardsOutcome(ListDashboardsResult(outcome.result()));
|
||||
else
|
||||
return ListDashboardsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listDashboardsAsync(const ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDashboards(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcomeCallable ARMSClient::listDashboardsCallable(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDashboardsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDashboards(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcome ARMSClient::listPromClusters(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
arms/src/model/CheckDataConsistencyRequest.cc
Normal file
84
arms/src/model/CheckDataConsistencyRequest.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/arms/model/CheckDataConsistencyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckDataConsistencyRequest;
|
||||
|
||||
CheckDataConsistencyRequest::CheckDataConsistencyRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckDataConsistency")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDataConsistencyRequest::~CheckDataConsistencyRequest()
|
||||
{}
|
||||
|
||||
long CheckDataConsistencyRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/CheckDataConsistencyResult.cc
Normal file
51
arms/src/model/CheckDataConsistencyResult.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/CheckDataConsistencyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDataConsistencyResult::~CheckDataConsistencyResult()
|
||||
{}
|
||||
|
||||
void CheckDataConsistencyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsDataConsistency"].isNull())
|
||||
isDataConsistency_ = value["IsDataConsistency"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDataConsistencyResult::getIsDataConsistency()const
|
||||
{
|
||||
return isDataConsistency_;
|
||||
}
|
||||
|
||||
84
arms/src/model/GetConsistencySnapshotRequest.cc
Normal file
84
arms/src/model/GetConsistencySnapshotRequest.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/arms/model/GetConsistencySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetConsistencySnapshotRequest;
|
||||
|
||||
GetConsistencySnapshotRequest::GetConsistencySnapshotRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetConsistencySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotRequest::~GetConsistencySnapshotRequest()
|
||||
{}
|
||||
|
||||
long GetConsistencySnapshotRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetConsistencySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::~GetConsistencySnapshotResult()
|
||||
{}
|
||||
|
||||
void GetConsistencySnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto consistencyResultNode = value["ConsistencyResult"];
|
||||
if(!consistencyResultNode["JudgeTimestamp"].isNull())
|
||||
consistencyResult_.judgeTimestamp = std::stol(consistencyResultNode["JudgeTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastSlsShardWatermarkTimestamp"].isNull())
|
||||
consistencyResult_.lastSlsShardWatermarkTimestamp = std::stol(consistencyResultNode["LastSlsShardWatermarkTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastAgentInfoTimestamp"].isNull())
|
||||
consistencyResult_.lastAgentInfoTimestamp = std::stol(consistencyResultNode["LastAgentInfoTimestamp"].asString());
|
||||
if(!consistencyResultNode["BarrierPointsLastTimestampMap"].isNull())
|
||||
consistencyResult_.barrierPointsLastTimestampMap = consistencyResultNode["BarrierPointsLastTimestampMap"].asString();
|
||||
if(!consistencyResultNode["LastBarrierTimestamp"].isNull())
|
||||
consistencyResult_.lastBarrierTimestamp = std::stol(consistencyResultNode["LastBarrierTimestamp"].asString());
|
||||
auto allAgentHeartbeatInfosNode = consistencyResultNode["AgentHeartbeatInfos"]["AgentHeartbeatInfo"];
|
||||
for (auto consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo : allAgentHeartbeatInfosNode)
|
||||
{
|
||||
ConsistencyResult::AgentHeartbeatInfo agentHeartbeatInfoObject;
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].isNull())
|
||||
agentHeartbeatInfoObject.regionId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].isNull())
|
||||
agentHeartbeatInfoObject.appType = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].isNull())
|
||||
agentHeartbeatInfoObject.pid = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].isNull())
|
||||
agentHeartbeatInfoObject.ip = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].isNull())
|
||||
agentHeartbeatInfoObject.startTimestamp = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].asString());
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].isNull())
|
||||
agentHeartbeatInfoObject.hostname = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].isNull())
|
||||
agentHeartbeatInfoObject.procId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].isNull())
|
||||
agentHeartbeatInfoObject.agentVersion = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].isNull())
|
||||
agentHeartbeatInfoObject.lastHeartbeatTime = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].asString());
|
||||
consistencyResult_.agentHeartbeatInfos.push_back(agentHeartbeatInfoObject);
|
||||
}
|
||||
auto slsShardWatermarkBeanNode = consistencyResultNode["SlsShardWatermarkBean"];
|
||||
if(!slsShardWatermarkBeanNode["Pid"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.pid = slsShardWatermarkBeanNode["Pid"].asString();
|
||||
if(!slsShardWatermarkBeanNode["UserId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.userId = slsShardWatermarkBeanNode["UserId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["RegionId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.regionId = slsShardWatermarkBeanNode["RegionId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["AppType"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.appType = slsShardWatermarkBeanNode["AppType"].asString();
|
||||
auto allCheckPointResponsesNode = slsShardWatermarkBeanNode["CheckPointResponses"]["CheckPointResponse"];
|
||||
for (auto slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse : allCheckPointResponsesNode)
|
||||
{
|
||||
ConsistencyResult::SlsShardWatermarkBean::CheckPointResponse checkPointResponseObject;
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].isNull())
|
||||
checkPointResponseObject.shard = std::stoi(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].isNull())
|
||||
checkPointResponseObject.checkPoint = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].asString();
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].isNull())
|
||||
checkPointResponseObject.updateTime = std::stol(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].isNull())
|
||||
checkPointResponseObject.consumer = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].asString();
|
||||
consistencyResult_.slsShardWatermarkBean.checkPointResponses.push_back(checkPointResponseObject);
|
||||
}
|
||||
auto allCursorUpdateTimes = slsShardWatermarkBeanNode["CursorUpdateTimes"]["CursorUpdateTime"];
|
||||
for (auto value : allCursorUpdateTimes)
|
||||
consistencyResult_.slsShardWatermarkBean.cursorUpdateTimes.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::ConsistencyResult GetConsistencySnapshotResult::getConsistencyResult()const
|
||||
{
|
||||
return consistencyResult_;
|
||||
}
|
||||
|
||||
51
arms/src/model/ListDashboardsRequest.cc
Normal file
51
arms/src/model/ListDashboardsRequest.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/ListDashboardsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListDashboardsRequest;
|
||||
|
||||
ListDashboardsRequest::ListDashboardsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListDashboards")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDashboardsRequest::~ListDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
74
arms/src/model/ListDashboardsResult.cc
Normal file
74
arms/src/model/ListDashboardsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListDashboardsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDashboardsResult::~ListDashboardsResult()
|
||||
{}
|
||||
|
||||
void ListDashboardsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDashboardVosNode = value["DashboardVos"]["DashboardVosItem"];
|
||||
for (auto valueDashboardVosDashboardVosItem : allDashboardVosNode)
|
||||
{
|
||||
DashboardVosItem dashboardVosObject;
|
||||
if(!valueDashboardVosDashboardVosItem["Id"].isNull())
|
||||
dashboardVosObject.id = valueDashboardVosDashboardVosItem["Id"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Uid"].isNull())
|
||||
dashboardVosObject.uid = valueDashboardVosDashboardVosItem["Uid"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Title"].isNull())
|
||||
dashboardVosObject.title = valueDashboardVosDashboardVosItem["Title"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Time"].isNull())
|
||||
dashboardVosObject.time = valueDashboardVosDashboardVosItem["Time"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Url"].isNull())
|
||||
dashboardVosObject.url = valueDashboardVosDashboardVosItem["Url"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Type"].isNull())
|
||||
dashboardVosObject.type = valueDashboardVosDashboardVosItem["Type"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Exporter"].isNull())
|
||||
dashboardVosObject.exporter = valueDashboardVosDashboardVosItem["Exporter"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["IsArmsExporter"].isNull())
|
||||
dashboardVosObject.isArmsExporter = valueDashboardVosDashboardVosItem["IsArmsExporter"].asString() == "true";
|
||||
auto allTags = value["Tags"]["Tags"];
|
||||
for (auto value : allTags)
|
||||
dashboardVosObject.tags.push_back(value.asString());
|
||||
dashboardVos_.push_back(dashboardVosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListDashboardsResult::DashboardVosItem> ListDashboardsResult::getDashboardVos()const
|
||||
{
|
||||
return dashboardVos_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryMetricRequest::QueryMetricRequest() :
|
||||
QueryMetricRequest::~QueryMetricRequest()
|
||||
{}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyQueryStrategy()const
|
||||
{
|
||||
return consistencyQueryStrategy_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy)
|
||||
{
|
||||
consistencyQueryStrategy_ = consistencyQueryStrategy;
|
||||
setParameter("ConsistencyQueryStrategy", consistencyQueryStrategy);
|
||||
}
|
||||
|
||||
long QueryMetricRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -76,6 +87,17 @@ void QueryMetricRequest::setFilters(const std::vector<Filters>& filters)
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyDataKey()const
|
||||
{
|
||||
return consistencyDataKey_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyDataKey(const std::string& consistencyDataKey)
|
||||
{
|
||||
consistencyDataKey_ = consistencyDataKey;
|
||||
setParameter("ConsistencyDataKey", consistencyDataKey);
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
|
||||
@@ -127,10 +127,10 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCcActivityLogRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCcActivityLogResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCertificateInfoRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCertificateInfoResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCnameRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCnameResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainConfigsRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCustomLogConfigRequest.h
|
||||
@@ -516,10 +516,10 @@ set(cdn_src
|
||||
src/model/DescribeDomainBpsDataResult.cc
|
||||
src/model/DescribeDomainBpsDataByTimeStampRequest.cc
|
||||
src/model/DescribeDomainBpsDataByTimeStampResult.cc
|
||||
src/model/DescribeDomainCcActivityLogRequest.cc
|
||||
src/model/DescribeDomainCcActivityLogResult.cc
|
||||
src/model/DescribeDomainCertificateInfoRequest.cc
|
||||
src/model/DescribeDomainCertificateInfoResult.cc
|
||||
src/model/DescribeDomainCnameRequest.cc
|
||||
src/model/DescribeDomainCnameResult.cc
|
||||
src/model/DescribeDomainConfigsRequest.cc
|
||||
src/model/DescribeDomainConfigsResult.cc
|
||||
src/model/DescribeDomainCustomLogConfigRequest.cc
|
||||
|
||||
@@ -128,10 +128,10 @@
|
||||
#include "model/DescribeDomainBpsDataResult.h"
|
||||
#include "model/DescribeDomainBpsDataByTimeStampRequest.h"
|
||||
#include "model/DescribeDomainBpsDataByTimeStampResult.h"
|
||||
#include "model/DescribeDomainCcActivityLogRequest.h"
|
||||
#include "model/DescribeDomainCcActivityLogResult.h"
|
||||
#include "model/DescribeDomainCertificateInfoRequest.h"
|
||||
#include "model/DescribeDomainCertificateInfoResult.h"
|
||||
#include "model/DescribeDomainCnameRequest.h"
|
||||
#include "model/DescribeDomainCnameResult.h"
|
||||
#include "model/DescribeDomainConfigsRequest.h"
|
||||
#include "model/DescribeDomainConfigsResult.h"
|
||||
#include "model/DescribeDomainCustomLogConfigRequest.h"
|
||||
@@ -576,12 +576,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDomainBpsDataByTimeStampResult> DescribeDomainBpsDataByTimeStampOutcome;
|
||||
typedef std::future<DescribeDomainBpsDataByTimeStampOutcome> DescribeDomainBpsDataByTimeStampOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainBpsDataByTimeStampRequest&, const DescribeDomainBpsDataByTimeStampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainBpsDataByTimeStampAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCcActivityLogResult> DescribeDomainCcActivityLogOutcome;
|
||||
typedef std::future<DescribeDomainCcActivityLogOutcome> DescribeDomainCcActivityLogOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCcActivityLogRequest&, const DescribeDomainCcActivityLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCcActivityLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCertificateInfoResult> DescribeDomainCertificateInfoOutcome;
|
||||
typedef std::future<DescribeDomainCertificateInfoOutcome> DescribeDomainCertificateInfoOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCertificateInfoRequest&, const DescribeDomainCertificateInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCertificateInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCnameResult> DescribeDomainCnameOutcome;
|
||||
typedef std::future<DescribeDomainCnameOutcome> DescribeDomainCnameOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCnameRequest&, const DescribeDomainCnameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCnameAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainConfigsResult> DescribeDomainConfigsOutcome;
|
||||
typedef std::future<DescribeDomainConfigsOutcome> DescribeDomainConfigsOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainConfigsRequest&, const DescribeDomainConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainConfigsAsyncHandler;
|
||||
@@ -1160,12 +1160,12 @@ namespace AlibabaCloud
|
||||
DescribeDomainBpsDataByTimeStampOutcome describeDomainBpsDataByTimeStamp(const Model::DescribeDomainBpsDataByTimeStampRequest &request)const;
|
||||
void describeDomainBpsDataByTimeStampAsync(const Model::DescribeDomainBpsDataByTimeStampRequest& request, const DescribeDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainBpsDataByTimeStampOutcomeCallable describeDomainBpsDataByTimeStampCallable(const Model::DescribeDomainBpsDataByTimeStampRequest& request) const;
|
||||
DescribeDomainCcActivityLogOutcome describeDomainCcActivityLog(const Model::DescribeDomainCcActivityLogRequest &request)const;
|
||||
void describeDomainCcActivityLogAsync(const Model::DescribeDomainCcActivityLogRequest& request, const DescribeDomainCcActivityLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCcActivityLogOutcomeCallable describeDomainCcActivityLogCallable(const Model::DescribeDomainCcActivityLogRequest& request) const;
|
||||
DescribeDomainCertificateInfoOutcome describeDomainCertificateInfo(const Model::DescribeDomainCertificateInfoRequest &request)const;
|
||||
void describeDomainCertificateInfoAsync(const Model::DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCertificateInfoOutcomeCallable describeDomainCertificateInfoCallable(const Model::DescribeDomainCertificateInfoRequest& request) const;
|
||||
DescribeDomainCnameOutcome describeDomainCname(const Model::DescribeDomainCnameRequest &request)const;
|
||||
void describeDomainCnameAsync(const Model::DescribeDomainCnameRequest& request, const DescribeDomainCnameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCnameOutcomeCallable describeDomainCnameCallable(const Model::DescribeDomainCnameRequest& request) const;
|
||||
DescribeDomainConfigsOutcome describeDomainConfigs(const Model::DescribeDomainConfigsRequest &request)const;
|
||||
void describeDomainConfigsAsync(const Model::DescribeDomainConfigsRequest& request, const DescribeDomainConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainConfigsOutcomeCallable describeDomainConfigsCallable(const Model::DescribeDomainConfigsRequest& request) const;
|
||||
|
||||
@@ -35,28 +35,28 @@ namespace AlibabaCloud
|
||||
AddLiveAppRecordConfigRequest();
|
||||
~AddLiveAppRecordConfigRequest();
|
||||
|
||||
std::string getOssBucket()const;
|
||||
void setOssBucket(const std::string& ossBucket);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getOssEndpoint()const;
|
||||
void setOssEndpoint(const std::string& ossEndpoint);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getOssBucket()const;
|
||||
void setOssBucket(const std::string& ossBucket);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOssObjectPrefix()const;
|
||||
void setOssObjectPrefix(const std::string& ossObjectPrefix);
|
||||
|
||||
private:
|
||||
std::string ossBucket_;
|
||||
std::string domainName_;
|
||||
std::string ossEndpoint_;
|
||||
long ownerId_;
|
||||
std::string appName_;
|
||||
std::string securityToken_;
|
||||
std::string ossBucket_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string ossObjectPrefix_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,23 +37,23 @@ namespace AlibabaCloud
|
||||
|
||||
std::string get_Template()const;
|
||||
void set_Template(const std::string& _template);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getApp()const;
|
||||
void setApp(const std::string& app);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
|
||||
private:
|
||||
std::string _template_;
|
||||
std::string securityToken_;
|
||||
std::string app_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
std::string domain_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCcActivityLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDomainCcActivityLogRequest();
|
||||
~DescribeDomainCcActivityLogRequest();
|
||||
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getTriggerObject()const;
|
||||
void setTriggerObject(const std::string& triggerObject);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string ruleName_;
|
||||
std::string startTime_;
|
||||
std::string triggerObject_;
|
||||
long pageNumber_;
|
||||
long pageSize_;
|
||||
std::string value_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_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_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCcActivityLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LogInfo
|
||||
{
|
||||
std::string action;
|
||||
std::string domainName;
|
||||
std::string value;
|
||||
std::string triggerObject;
|
||||
long ttl;
|
||||
std::string timeStamp;
|
||||
std::string ruleName;
|
||||
};
|
||||
|
||||
|
||||
DescribeDomainCcActivityLogResult();
|
||||
explicit DescribeDomainCcActivityLogResult(const std::string &payload);
|
||||
~DescribeDomainCcActivityLogResult();
|
||||
long getPageSize()const;
|
||||
long getTotal()const;
|
||||
std::vector<LogInfo> getActivityLog()const;
|
||||
long getPageIndex()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long pageSize_;
|
||||
long total_;
|
||||
std::vector<LogInfo> activityLog_;
|
||||
long pageIndex_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ModifyPathCacheExpiredConfigRequest();
|
||||
~ModifyPathCacheExpiredConfigRequest();
|
||||
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getWeight()const;
|
||||
@@ -45,18 +47,16 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTTL()const;
|
||||
void setTTL(const std::string& tTL);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getConfigID()const;
|
||||
void setConfigID(const std::string& configID);
|
||||
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string domainName_;
|
||||
std::string weight_;
|
||||
std::string cacheContent_;
|
||||
long ownerId_;
|
||||
std::string tTL_;
|
||||
std::string securityToken_;
|
||||
std::string configID_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1959,6 +1959,42 @@ CdnClient::DescribeDomainBpsDataByTimeStampOutcomeCallable CdnClient::describeDo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCcActivityLogOutcome CdnClient::describeDomainCcActivityLog(const DescribeDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDomainCcActivityLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDomainCcActivityLogOutcome(DescribeDomainCcActivityLogResult(outcome.result()));
|
||||
else
|
||||
return DescribeDomainCcActivityLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeDomainCcActivityLogAsync(const DescribeDomainCcActivityLogRequest& request, const DescribeDomainCcActivityLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDomainCcActivityLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCcActivityLogOutcomeCallable CdnClient::describeDomainCcActivityLogCallable(const DescribeDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDomainCcActivityLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDomainCcActivityLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCertificateInfoOutcome CdnClient::describeDomainCertificateInfo(const DescribeDomainCertificateInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1995,42 +2031,6 @@ CdnClient::DescribeDomainCertificateInfoOutcomeCallable CdnClient::describeDomai
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCnameOutcome CdnClient::describeDomainCname(const DescribeDomainCnameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDomainCnameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDomainCnameOutcome(DescribeDomainCnameResult(outcome.result()));
|
||||
else
|
||||
return DescribeDomainCnameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeDomainCnameAsync(const DescribeDomainCnameRequest& request, const DescribeDomainCnameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDomainCname(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCnameOutcomeCallable CdnClient::describeDomainCnameCallable(const DescribeDomainCnameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDomainCnameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDomainCname(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainConfigsOutcome CdnClient::describeDomainConfigs(const DescribeDomainConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -27,28 +27,6 @@ AddLiveAppRecordConfigRequest::AddLiveAppRecordConfigRequest() :
|
||||
AddLiveAppRecordConfigRequest::~AddLiveAppRecordConfigRequest()
|
||||
{}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssEndpoint()const
|
||||
{
|
||||
return ossEndpoint_;
|
||||
@@ -60,17 +38,6 @@ void AddLiveAppRecordConfigRequest::setOssEndpoint(const std::string& ossEndpoin
|
||||
setParameter("OssEndpoint", ossEndpoint);
|
||||
}
|
||||
|
||||
long AddLiveAppRecordConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
@@ -93,6 +60,39 @@ void AddLiveAppRecordConfigRequest::setSecurityToken(const std::string& security
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long AddLiveAppRecordConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssObjectPrefix()const
|
||||
{
|
||||
return ossObjectPrefix_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DeleteLiveStreamTranscodeRequest::set_Template(const std::string& _template
|
||||
setParameter("_Template", _template);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getApp()const
|
||||
{
|
||||
return app_;
|
||||
@@ -71,17 +82,6 @@ void DeleteLiveStreamTranscodeRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
|
||||
128
cdn/src/model/DescribeDomainCcActivityLogRequest.cc
Normal file
128
cdn/src/model/DescribeDomainCcActivityLogRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cdn/model/DescribeDomainCcActivityLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainCcActivityLogRequest;
|
||||
|
||||
DescribeDomainCcActivityLogRequest::DescribeDomainCcActivityLogRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainCcActivityLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainCcActivityLogRequest::~DescribeDomainCcActivityLogRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getTriggerObject()const
|
||||
{
|
||||
return triggerObject_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setTriggerObject(const std::string& triggerObject)
|
||||
{
|
||||
triggerObject_ = triggerObject;
|
||||
setParameter("TriggerObject", triggerObject);
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
90
cdn/src/model/DescribeDomainCcActivityLogResult.cc
Normal file
90
cdn/src/model/DescribeDomainCcActivityLogResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cdn/model/DescribeDomainCcActivityLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainCcActivityLogResult::DescribeDomainCcActivityLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainCcActivityLogResult::DescribeDomainCcActivityLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainCcActivityLogResult::~DescribeDomainCcActivityLogResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainCcActivityLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActivityLogNode = value["ActivityLog"]["LogInfo"];
|
||||
for (auto valueActivityLogLogInfo : allActivityLogNode)
|
||||
{
|
||||
LogInfo activityLogObject;
|
||||
if(!valueActivityLogLogInfo["TimeStamp"].isNull())
|
||||
activityLogObject.timeStamp = valueActivityLogLogInfo["TimeStamp"].asString();
|
||||
if(!valueActivityLogLogInfo["Value"].isNull())
|
||||
activityLogObject.value = valueActivityLogLogInfo["Value"].asString();
|
||||
if(!valueActivityLogLogInfo["TriggerObject"].isNull())
|
||||
activityLogObject.triggerObject = valueActivityLogLogInfo["TriggerObject"].asString();
|
||||
if(!valueActivityLogLogInfo["DomainName"].isNull())
|
||||
activityLogObject.domainName = valueActivityLogLogInfo["DomainName"].asString();
|
||||
if(!valueActivityLogLogInfo["Ttl"].isNull())
|
||||
activityLogObject.ttl = std::stol(valueActivityLogLogInfo["Ttl"].asString());
|
||||
if(!valueActivityLogLogInfo["Action"].isNull())
|
||||
activityLogObject.action = valueActivityLogLogInfo["Action"].asString();
|
||||
if(!valueActivityLogLogInfo["RuleName"].isNull())
|
||||
activityLogObject.ruleName = valueActivityLogLogInfo["RuleName"].asString();
|
||||
activityLog_.push_back(activityLogObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stol(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCcActivityLogResult::LogInfo> DescribeDomainCcActivityLogResult::getActivityLog()const
|
||||
{
|
||||
return activityLog_;
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cdn/model/DescribeDomainCnameRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainCnameRequest;
|
||||
|
||||
DescribeDomainCnameRequest::DescribeDomainCnameRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeDomainCname")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDomainCnameRequest::~DescribeDomainCnameRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCnameRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCnameRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeDomainCnameRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCnameRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cdn/model/DescribeDomainCnameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainCnameResult::DescribeDomainCnameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainCnameResult::DescribeDomainCnameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainCnameResult::~DescribeDomainCnameResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainCnameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCnameDatasNode = value["CnameDatas"]["Data"];
|
||||
for (auto valueCnameDatasData : allCnameDatasNode)
|
||||
{
|
||||
Data cnameDatasObject;
|
||||
if(!valueCnameDatasData["Domain"].isNull())
|
||||
cnameDatasObject.domain = valueCnameDatasData["Domain"].asString();
|
||||
if(!valueCnameDatasData["Cname"].isNull())
|
||||
cnameDatasObject.cname = valueCnameDatasData["Cname"].asString();
|
||||
if(!valueCnameDatasData["Status"].isNull())
|
||||
cnameDatasObject.status = std::stoi(valueCnameDatasData["Status"].asString());
|
||||
cnameDatas_.push_back(cnameDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCnameResult::Data> DescribeDomainCnameResult::getCnameDatas()const
|
||||
{
|
||||
return cnameDatas_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ModifyPathCacheExpiredConfigRequest::ModifyPathCacheExpiredConfigRequest() :
|
||||
ModifyPathCacheExpiredConfigRequest::~ModifyPathCacheExpiredConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -82,17 +93,6 @@ void ModifyPathCacheExpiredConfigRequest::setTTL(const std::string& tTL)
|
||||
setParameter("TTL", tTL);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getConfigID()const
|
||||
{
|
||||
return configID_;
|
||||
|
||||
@@ -221,6 +221,7 @@ CurlHttpClient::makeRequest(const HttpRequest &request) {
|
||||
HttpMethodToString(request.method()) + " " + request.url().toString()));
|
||||
}
|
||||
}
|
||||
curl_slist_free_all(list);
|
||||
}
|
||||
|
||||
} // namespace AlibabaCloud
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include <iomanip>
|
||||
#include <json/json.h>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
|
||||
#ifndef WIN32
|
||||
#include "LocalEndpoints.h"
|
||||
@@ -39,7 +42,10 @@ namespace
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
std::mutex mutex;
|
||||
std::condition_variable cv;
|
||||
bool local_endpoints_loaded = false;
|
||||
bool local_endpoints_loading = false;
|
||||
typedef std::string productType;
|
||||
typedef std::string regionType;
|
||||
typedef std::string endpointType;
|
||||
@@ -60,6 +66,8 @@ static void LoadLocalEndpoints()
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
std::unique_lock<std::mutex> lock(mutex);
|
||||
|
||||
if (local_endpoints_loaded)
|
||||
{
|
||||
return;
|
||||
@@ -76,6 +84,10 @@ static void LoadLocalEndpoints()
|
||||
return;
|
||||
}
|
||||
|
||||
cv.wait(lock, [] { return !local_endpoints_loading; });// continue if loading completed
|
||||
|
||||
local_endpoints_loading = true;
|
||||
|
||||
auto regions = value["regions"];
|
||||
for (const auto ®ion : regions)
|
||||
{
|
||||
@@ -107,6 +119,10 @@ static void LoadLocalEndpoints()
|
||||
allLocalEndpoints[product] = p;
|
||||
}
|
||||
local_endpoints_loaded = true;
|
||||
local_endpoints_loading = false;
|
||||
|
||||
lock.unlock();
|
||||
cv.notify_one();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -139,7 +139,7 @@ HttpMessage::HeaderValueType HttpMessage::header(KnownHeader header)const {
|
||||
|
||||
void HttpMessage::setBody(const char *data, size_t size) {
|
||||
if (body_)
|
||||
delete body_;
|
||||
delete[] body_;
|
||||
body_ = nullptr;
|
||||
bodySize_ = 0;
|
||||
if (size) {
|
||||
|
||||
@@ -65,6 +65,12 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/DescribeRecoverableTimeRangeResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreFullDetailsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreFullDetailsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreIncrDetailRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreIncrDetailResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSchemaDetailsRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSchemaDetailsResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSummaryRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreSummaryResult.h
|
||||
include/alibabacloud/hbase/model/DescribeRestoreTablesRequest.h
|
||||
@@ -158,6 +164,12 @@ set(hbase_src
|
||||
src/model/DescribeRecoverableTimeRangeResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeRestoreFullDetailsRequest.cc
|
||||
src/model/DescribeRestoreFullDetailsResult.cc
|
||||
src/model/DescribeRestoreIncrDetailRequest.cc
|
||||
src/model/DescribeRestoreIncrDetailResult.cc
|
||||
src/model/DescribeRestoreSchemaDetailsRequest.cc
|
||||
src/model/DescribeRestoreSchemaDetailsResult.cc
|
||||
src/model/DescribeRestoreSummaryRequest.cc
|
||||
src/model/DescribeRestoreSummaryResult.cc
|
||||
src/model/DescribeRestoreTablesRequest.cc
|
||||
|
||||
@@ -66,6 +66,12 @@
|
||||
#include "model/DescribeRecoverableTimeRangeResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeRestoreFullDetailsRequest.h"
|
||||
#include "model/DescribeRestoreFullDetailsResult.h"
|
||||
#include "model/DescribeRestoreIncrDetailRequest.h"
|
||||
#include "model/DescribeRestoreIncrDetailResult.h"
|
||||
#include "model/DescribeRestoreSchemaDetailsRequest.h"
|
||||
#include "model/DescribeRestoreSchemaDetailsResult.h"
|
||||
#include "model/DescribeRestoreSummaryRequest.h"
|
||||
#include "model/DescribeRestoreSummaryResult.h"
|
||||
#include "model/DescribeRestoreTablesRequest.h"
|
||||
@@ -187,6 +193,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreFullDetailsResult> DescribeRestoreFullDetailsOutcome;
|
||||
typedef std::future<DescribeRestoreFullDetailsOutcome> DescribeRestoreFullDetailsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreFullDetailsRequest&, const DescribeRestoreFullDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreFullDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreIncrDetailResult> DescribeRestoreIncrDetailOutcome;
|
||||
typedef std::future<DescribeRestoreIncrDetailOutcome> DescribeRestoreIncrDetailOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreIncrDetailRequest&, const DescribeRestoreIncrDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreIncrDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreSchemaDetailsResult> DescribeRestoreSchemaDetailsOutcome;
|
||||
typedef std::future<DescribeRestoreSchemaDetailsOutcome> DescribeRestoreSchemaDetailsOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreSchemaDetailsRequest&, const DescribeRestoreSchemaDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreSchemaDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreSummaryResult> DescribeRestoreSummaryOutcome;
|
||||
typedef std::future<DescribeRestoreSummaryOutcome> DescribeRestoreSummaryOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeRestoreSummaryRequest&, const DescribeRestoreSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreSummaryAsyncHandler;
|
||||
@@ -327,6 +342,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
DescribeRestoreFullDetailsOutcome describeRestoreFullDetails(const Model::DescribeRestoreFullDetailsRequest &request)const;
|
||||
void describeRestoreFullDetailsAsync(const Model::DescribeRestoreFullDetailsRequest& request, const DescribeRestoreFullDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreFullDetailsOutcomeCallable describeRestoreFullDetailsCallable(const Model::DescribeRestoreFullDetailsRequest& request) const;
|
||||
DescribeRestoreIncrDetailOutcome describeRestoreIncrDetail(const Model::DescribeRestoreIncrDetailRequest &request)const;
|
||||
void describeRestoreIncrDetailAsync(const Model::DescribeRestoreIncrDetailRequest& request, const DescribeRestoreIncrDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreIncrDetailOutcomeCallable describeRestoreIncrDetailCallable(const Model::DescribeRestoreIncrDetailRequest& request) const;
|
||||
DescribeRestoreSchemaDetailsOutcome describeRestoreSchemaDetails(const Model::DescribeRestoreSchemaDetailsRequest &request)const;
|
||||
void describeRestoreSchemaDetailsAsync(const Model::DescribeRestoreSchemaDetailsRequest& request, const DescribeRestoreSchemaDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreSchemaDetailsOutcomeCallable describeRestoreSchemaDetailsCallable(const Model::DescribeRestoreSchemaDetailsRequest& request) const;
|
||||
DescribeRestoreSummaryOutcome describeRestoreSummary(const Model::DescribeRestoreSummaryRequest &request)const;
|
||||
void describeRestoreSummaryAsync(const Model::DescribeRestoreSummaryRequest& request, const DescribeRestoreSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreSummaryOutcomeCallable describeRestoreSummaryCallable(const Model::DescribeRestoreSummaryRequest& request) const;
|
||||
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,9 +54,11 @@ namespace AlibabaCloud
|
||||
std::string recordId;
|
||||
};
|
||||
std::string hasMore;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string nextFullBackupDate;
|
||||
int total;
|
||||
std::vector<Record> records;
|
||||
std::string recordSize;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,14 +35,20 @@ namespace AlibabaCloud
|
||||
DescribeBackupTablesRequest();
|
||||
~DescribeBackupTablesRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getBackupRecordId()const;
|
||||
void setBackupRecordId(const std::string& backupRecordId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string backupRecordId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,16 +32,35 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeBackupTablesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupRecord
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupTablesResult();
|
||||
explicit DescribeBackupTablesResult(const std::string &payload);
|
||||
~DescribeBackupTablesResult();
|
||||
std::vector<BackupRecord> getBackupRecords()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
long getTotal()const;
|
||||
std::vector<std::string> getTables()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<BackupRecord> backupRecords_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
long total_;
|
||||
std::vector<std::string> tables_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreFullDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreFullDetailsRequest();
|
||||
~DescribeRestoreFullDetailsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSREQUEST_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_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreFullDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreFull
|
||||
{
|
||||
struct RestoreFullDetail
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
std::vector<RestoreFullDetail> restoreFullDetails;
|
||||
std::string speed;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string dataSize;
|
||||
long total;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreFullDetailsResult();
|
||||
explicit DescribeRestoreFullDetailsResult(const std::string &payload);
|
||||
~DescribeRestoreFullDetailsResult();
|
||||
RestoreFull getRestoreFull()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreFull restoreFull_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREFULLDETAILSRESULT_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_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreIncrDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreIncrDetailRequest();
|
||||
~DescribeRestoreIncrDetailRequest();
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILREQUEST_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_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreIncrDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreIncrDetail
|
||||
{
|
||||
std::string endTime;
|
||||
std::string restoreDelay;
|
||||
std::string restoreStartTs;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoredTs;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreIncrDetailResult();
|
||||
explicit DescribeRestoreIncrDetailResult(const std::string &payload);
|
||||
~DescribeRestoreIncrDetailResult();
|
||||
RestoreIncrDetail getRestoreIncrDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreIncrDetail restoreIncrDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTOREINCRDETAILRESULT_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_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreSchemaDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRestoreSchemaDetailsRequest();
|
||||
~DescribeRestoreSchemaDetailsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getRestoreRecordId()const;
|
||||
void setRestoreRecordId(const std::string& restoreRecordId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
std::string restoreRecordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreSchemaDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreSchema
|
||||
{
|
||||
struct RestoreSchemaDetail
|
||||
{
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<RestoreSchemaDetail> restoreSchemaDetails;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreSchemaDetailsResult();
|
||||
explicit DescribeRestoreSchemaDetailsResult(const std::string &payload);
|
||||
~DescribeRestoreSchemaDetailsResult();
|
||||
RestoreSchema getRestoreSchema()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreSchema restoreSchema_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBERESTORESCHEMADETAILSRESULT_H_
|
||||
@@ -37,9 +37,15 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,14 +48,18 @@ namespace AlibabaCloud
|
||||
DescribeRestoreSummaryResult();
|
||||
explicit DescribeRestoreSummaryResult(const std::string &payload);
|
||||
~DescribeRestoreSummaryResult();
|
||||
int getRestoreRecordSize()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
int getHasMoreRestoreRecord()const;
|
||||
std::vector<Rescord> getRescords()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int restoreRecordSize_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
int hasMoreRestoreRecord_;
|
||||
std::vector<Rescord> rescords_;
|
||||
|
||||
|
||||
@@ -32,17 +32,83 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeRestoreTablesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RestoreSummary
|
||||
{
|
||||
std::string endTime;
|
||||
std::string targetCluster;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoreToDate;
|
||||
std::string recordId;
|
||||
};
|
||||
struct RestoreSchema
|
||||
{
|
||||
struct RestoreSchemaDetail
|
||||
{
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
};
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
long total;
|
||||
std::vector<RestoreSchemaDetail> restoreSchemaDetails;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
struct RestoreFull
|
||||
{
|
||||
struct RestoreFullDetail
|
||||
{
|
||||
std::string speed;
|
||||
std::string table;
|
||||
std::string endTime;
|
||||
std::string message;
|
||||
std::string state;
|
||||
std::string dataSize;
|
||||
std::string startTime;
|
||||
std::string process;
|
||||
};
|
||||
std::vector<RestoreFullDetail> restoreFullDetails;
|
||||
std::string speed;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::string dataSize;
|
||||
long total;
|
||||
int succeed;
|
||||
int fail;
|
||||
};
|
||||
struct RestoreIncrDetail
|
||||
{
|
||||
std::string endTime;
|
||||
std::string restoreDelay;
|
||||
std::string restoreStartTs;
|
||||
std::string state;
|
||||
std::string startTime;
|
||||
std::string restoredTs;
|
||||
std::string process;
|
||||
};
|
||||
|
||||
|
||||
DescribeRestoreTablesResult();
|
||||
explicit DescribeRestoreTablesResult(const std::string &payload);
|
||||
~DescribeRestoreTablesResult();
|
||||
RestoreSchema getRestoreSchema()const;
|
||||
RestoreFull getRestoreFull()const;
|
||||
RestoreSummary getRestoreSummary()const;
|
||||
std::vector<std::string> getTables()const;
|
||||
RestoreIncrDetail getRestoreIncrDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
RestoreSchema restoreSchema_;
|
||||
RestoreFull restoreFull_;
|
||||
RestoreSummary restoreSummary_;
|
||||
std::vector<std::string> tables_;
|
||||
RestoreIncrDetail restoreIncrDetail_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -843,6 +843,114 @@ HBaseClient::DescribeRegionsOutcomeCallable HBaseClient::describeRegionsCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreFullDetailsOutcome HBaseClient::describeRestoreFullDetails(const DescribeRestoreFullDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreFullDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreFullDetailsOutcome(DescribeRestoreFullDetailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreFullDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreFullDetailsAsync(const DescribeRestoreFullDetailsRequest& request, const DescribeRestoreFullDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreFullDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreFullDetailsOutcomeCallable HBaseClient::describeRestoreFullDetailsCallable(const DescribeRestoreFullDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreFullDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreFullDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreIncrDetailOutcome HBaseClient::describeRestoreIncrDetail(const DescribeRestoreIncrDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreIncrDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreIncrDetailOutcome(DescribeRestoreIncrDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreIncrDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreIncrDetailAsync(const DescribeRestoreIncrDetailRequest& request, const DescribeRestoreIncrDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreIncrDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreIncrDetailOutcomeCallable HBaseClient::describeRestoreIncrDetailCallable(const DescribeRestoreIncrDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreIncrDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreIncrDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSchemaDetailsOutcome HBaseClient::describeRestoreSchemaDetails(const DescribeRestoreSchemaDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreSchemaDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreSchemaDetailsOutcome(DescribeRestoreSchemaDetailsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreSchemaDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreSchemaDetailsAsync(const DescribeRestoreSchemaDetailsRequest& request, const DescribeRestoreSchemaDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreSchemaDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSchemaDetailsOutcomeCallable HBaseClient::describeRestoreSchemaDetailsCallable(const DescribeRestoreSchemaDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreSchemaDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreSchemaDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSummaryOutcome HBaseClient::describeRestoreSummary(const DescribeRestoreSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,3 +38,25 @@ void DescribeBackupSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeBackupSummaryRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupSummaryRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeBackupSummaryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -55,10 +55,14 @@ void DescribeBackupSummaryResult::parse(const std::string &payload)
|
||||
auto fullNode = value["Full"];
|
||||
if(!fullNode["HasMore"].isNull())
|
||||
full_.hasMore = fullNode["HasMore"].asString();
|
||||
if(!fullNode["RecordSize"].isNull())
|
||||
full_.recordSize = fullNode["RecordSize"].asString();
|
||||
if(!fullNode["NextFullBackupDate"].isNull())
|
||||
full_.nextFullBackupDate = fullNode["NextFullBackupDate"].asString();
|
||||
if(!fullNode["PageNumber"].isNull())
|
||||
full_.pageNumber = std::stoi(fullNode["PageNumber"].asString());
|
||||
if(!fullNode["PageSize"].isNull())
|
||||
full_.pageSize = std::stoi(fullNode["PageSize"].asString());
|
||||
if(!fullNode["Total"].isNull())
|
||||
full_.total = std::stoi(fullNode["Total"].asString());
|
||||
auto allRecordsNode = fullNode["Records"]["Record"];
|
||||
for (auto fullNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
|
||||
@@ -27,15 +27,26 @@ DescribeBackupTablesRequest::DescribeBackupTablesRequest() :
|
||||
DescribeBackupTablesRequest::~DescribeBackupTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getClusterId()const
|
||||
int DescribeBackupTablesRequest::getPageNumber()const
|
||||
{
|
||||
return clusterId_;
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setClusterId(const std::string& clusterId)
|
||||
void DescribeBackupTablesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeBackupTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getBackupRecordId()const
|
||||
@@ -49,3 +60,14 @@ void DescribeBackupTablesRequest::setBackupRecordId(const std::string& backupRec
|
||||
setParameter("BackupRecordId", backupRecordId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,60 @@ void DescribeBackupTablesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackupRecordsNode = value["BackupRecords"]["BackupRecord"];
|
||||
for (auto valueBackupRecordsBackupRecord : allBackupRecordsNode)
|
||||
{
|
||||
BackupRecord backupRecordsObject;
|
||||
if(!valueBackupRecordsBackupRecord["Table"].isNull())
|
||||
backupRecordsObject.table = valueBackupRecordsBackupRecord["Table"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["State"].isNull())
|
||||
backupRecordsObject.state = valueBackupRecordsBackupRecord["State"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["StartTime"].isNull())
|
||||
backupRecordsObject.startTime = valueBackupRecordsBackupRecord["StartTime"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["EndTime"].isNull())
|
||||
backupRecordsObject.endTime = valueBackupRecordsBackupRecord["EndTime"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Process"].isNull())
|
||||
backupRecordsObject.process = valueBackupRecordsBackupRecord["Process"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["DataSize"].isNull())
|
||||
backupRecordsObject.dataSize = valueBackupRecordsBackupRecord["DataSize"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Speed"].isNull())
|
||||
backupRecordsObject.speed = valueBackupRecordsBackupRecord["Speed"].asString();
|
||||
if(!valueBackupRecordsBackupRecord["Message"].isNull())
|
||||
backupRecordsObject.message = valueBackupRecordsBackupRecord["Message"].asString();
|
||||
backupRecords_.push_back(backupRecordsObject);
|
||||
}
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupTablesResult::BackupRecord> DescribeBackupTablesResult::getBackupRecords()const
|
||||
{
|
||||
return backupRecords_;
|
||||
}
|
||||
|
||||
int DescribeBackupTablesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupTablesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeBackupTablesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackupTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
|
||||
73
hbase/src/model/DescribeRestoreFullDetailsRequest.cc
Normal file
73
hbase/src/model/DescribeRestoreFullDetailsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreFullDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreFullDetailsRequest;
|
||||
|
||||
DescribeRestoreFullDetailsRequest::DescribeRestoreFullDetailsRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreFullDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsRequest::~DescribeRestoreFullDetailsRequest()
|
||||
{}
|
||||
|
||||
int DescribeRestoreFullDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreFullDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreFullDetailsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreFullDetailsRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreFullDetailsRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
86
hbase/src/model/DescribeRestoreFullDetailsResult.cc
Normal file
86
hbase/src/model/DescribeRestoreFullDetailsResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreFullDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreFullDetailsResult::DescribeRestoreFullDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreFullDetailsResult::DescribeRestoreFullDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsResult::~DescribeRestoreFullDetailsResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreFullDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreFullNode = value["RestoreFull"];
|
||||
if(!restoreFullNode["Succeed"].isNull())
|
||||
restoreFull_.succeed = std::stoi(restoreFullNode["Succeed"].asString());
|
||||
if(!restoreFullNode["Fail"].isNull())
|
||||
restoreFull_.fail = std::stoi(restoreFullNode["Fail"].asString());
|
||||
if(!restoreFullNode["DataSize"].isNull())
|
||||
restoreFull_.dataSize = restoreFullNode["DataSize"].asString();
|
||||
if(!restoreFullNode["Speed"].isNull())
|
||||
restoreFull_.speed = restoreFullNode["Speed"].asString();
|
||||
if(!restoreFullNode["Total"].isNull())
|
||||
restoreFull_.total = std::stol(restoreFullNode["Total"].asString());
|
||||
if(!restoreFullNode["PageNumber"].isNull())
|
||||
restoreFull_.pageNumber = std::stoi(restoreFullNode["PageNumber"].asString());
|
||||
if(!restoreFullNode["PageSize"].isNull())
|
||||
restoreFull_.pageSize = std::stoi(restoreFullNode["PageSize"].asString());
|
||||
auto allRestoreFullDetailsNode = restoreFullNode["RestoreFullDetails"]["RestoreFullDetail"];
|
||||
for (auto restoreFullNodeRestoreFullDetailsRestoreFullDetail : allRestoreFullDetailsNode)
|
||||
{
|
||||
RestoreFull::RestoreFullDetail restoreFullDetailObject;
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].isNull())
|
||||
restoreFullDetailObject.table = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].isNull())
|
||||
restoreFullDetailObject.state = restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].isNull())
|
||||
restoreFullDetailObject.startTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].isNull())
|
||||
restoreFullDetailObject.endTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].isNull())
|
||||
restoreFullDetailObject.process = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].isNull())
|
||||
restoreFullDetailObject.dataSize = restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].isNull())
|
||||
restoreFullDetailObject.speed = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].isNull())
|
||||
restoreFullDetailObject.message = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].asString();
|
||||
restoreFull_.restoreFullDetails.push_back(restoreFullDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreFullDetailsResult::RestoreFull DescribeRestoreFullDetailsResult::getRestoreFull()const
|
||||
{
|
||||
return restoreFull_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeRestoreIncrDetailRequest.cc
Normal file
51
hbase/src/model/DescribeRestoreIncrDetailRequest.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/hbase/model/DescribeRestoreIncrDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreIncrDetailRequest;
|
||||
|
||||
DescribeRestoreIncrDetailRequest::DescribeRestoreIncrDetailRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreIncrDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailRequest::~DescribeRestoreIncrDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRestoreIncrDetailRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreIncrDetailRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreIncrDetailRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreIncrDetailRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
64
hbase/src/model/DescribeRestoreIncrDetailResult.cc
Normal file
64
hbase/src/model/DescribeRestoreIncrDetailResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreIncrDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreIncrDetailResult::DescribeRestoreIncrDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreIncrDetailResult::DescribeRestoreIncrDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailResult::~DescribeRestoreIncrDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreIncrDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreIncrDetailNode = value["RestoreIncrDetail"];
|
||||
if(!restoreIncrDetailNode["State"].isNull())
|
||||
restoreIncrDetail_.state = restoreIncrDetailNode["State"].asString();
|
||||
if(!restoreIncrDetailNode["StartTime"].isNull())
|
||||
restoreIncrDetail_.startTime = restoreIncrDetailNode["StartTime"].asString();
|
||||
if(!restoreIncrDetailNode["EndTime"].isNull())
|
||||
restoreIncrDetail_.endTime = restoreIncrDetailNode["EndTime"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreStartTs"].isNull())
|
||||
restoreIncrDetail_.restoreStartTs = restoreIncrDetailNode["RestoreStartTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoredTs"].isNull())
|
||||
restoreIncrDetail_.restoredTs = restoreIncrDetailNode["RestoredTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreDelay"].isNull())
|
||||
restoreIncrDetail_.restoreDelay = restoreIncrDetailNode["RestoreDelay"].asString();
|
||||
if(!restoreIncrDetailNode["Process"].isNull())
|
||||
restoreIncrDetail_.process = restoreIncrDetailNode["Process"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreIncrDetailResult::RestoreIncrDetail DescribeRestoreIncrDetailResult::getRestoreIncrDetail()const
|
||||
{
|
||||
return restoreIncrDetail_;
|
||||
}
|
||||
|
||||
73
hbase/src/model/DescribeRestoreSchemaDetailsRequest.cc
Normal file
73
hbase/src/model/DescribeRestoreSchemaDetailsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSchemaDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreSchemaDetailsRequest;
|
||||
|
||||
DescribeRestoreSchemaDetailsRequest::DescribeRestoreSchemaDetailsRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreSchemaDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsRequest::~DescribeRestoreSchemaDetailsRequest()
|
||||
{}
|
||||
|
||||
int DescribeRestoreSchemaDetailsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreSchemaDetailsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreSchemaDetailsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreSchemaDetailsRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSchemaDetailsRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
76
hbase/src/model/DescribeRestoreSchemaDetailsResult.cc
Normal file
76
hbase/src/model/DescribeRestoreSchemaDetailsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSchemaDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::DescribeRestoreSchemaDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::DescribeRestoreSchemaDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::~DescribeRestoreSchemaDetailsResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreSchemaDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreSchemaNode = value["RestoreSchema"];
|
||||
if(!restoreSchemaNode["Succeed"].isNull())
|
||||
restoreSchema_.succeed = std::stoi(restoreSchemaNode["Succeed"].asString());
|
||||
if(!restoreSchemaNode["Fail"].isNull())
|
||||
restoreSchema_.fail = std::stoi(restoreSchemaNode["Fail"].asString());
|
||||
if(!restoreSchemaNode["Total"].isNull())
|
||||
restoreSchema_.total = std::stol(restoreSchemaNode["Total"].asString());
|
||||
if(!restoreSchemaNode["PageNumber"].isNull())
|
||||
restoreSchema_.pageNumber = std::stoi(restoreSchemaNode["PageNumber"].asString());
|
||||
if(!restoreSchemaNode["PageSize"].isNull())
|
||||
restoreSchema_.pageSize = std::stoi(restoreSchemaNode["PageSize"].asString());
|
||||
auto allRestoreSchemaDetailsNode = restoreSchemaNode["RestoreSchemaDetails"]["RestoreSchemaDetail"];
|
||||
for (auto restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail : allRestoreSchemaDetailsNode)
|
||||
{
|
||||
RestoreSchema::RestoreSchemaDetail restoreSchemaDetailObject;
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].isNull())
|
||||
restoreSchemaDetailObject.table = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].isNull())
|
||||
restoreSchemaDetailObject.startTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].isNull())
|
||||
restoreSchemaDetailObject.endTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].isNull())
|
||||
restoreSchemaDetailObject.state = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].isNull())
|
||||
restoreSchemaDetailObject.message = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].asString();
|
||||
restoreSchema_.restoreSchemaDetails.push_back(restoreSchemaDetailObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreSchemaDetailsResult::RestoreSchema DescribeRestoreSchemaDetailsResult::getRestoreSchema()const
|
||||
{
|
||||
return restoreSchema_;
|
||||
}
|
||||
|
||||
@@ -38,3 +38,25 @@ void DescribeRestoreSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSummaryRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -61,16 +61,30 @@ void DescribeRestoreSummaryResult::parse(const std::string &payload)
|
||||
rescordsObject.logProcess = valueRescordsRescord["LogProcess"].asString();
|
||||
rescords_.push_back(rescordsObject);
|
||||
}
|
||||
if(!value["RestoreRecordSize"].isNull())
|
||||
restoreRecordSize_ = std::stoi(value["RestoreRecordSize"].asString());
|
||||
if(!value["HasMoreRestoreRecord"].isNull())
|
||||
hasMoreRestoreRecord_ = std::stoi(value["HasMoreRestoreRecord"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getRestoreRecordSize()const
|
||||
int DescribeRestoreSummaryResult::getPageSize()const
|
||||
{
|
||||
return restoreRecordSize_;
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getHasMoreRestoreRecord()const
|
||||
|
||||
@@ -39,14 +39,126 @@ void DescribeRestoreTablesResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreSummaryNode = value["RestoreSummary"];
|
||||
if(!restoreSummaryNode["RecordId"].isNull())
|
||||
restoreSummary_.recordId = restoreSummaryNode["RecordId"].asString();
|
||||
if(!restoreSummaryNode["StartTime"].isNull())
|
||||
restoreSummary_.startTime = restoreSummaryNode["StartTime"].asString();
|
||||
if(!restoreSummaryNode["EndTime"].isNull())
|
||||
restoreSummary_.endTime = restoreSummaryNode["EndTime"].asString();
|
||||
if(!restoreSummaryNode["State"].isNull())
|
||||
restoreSummary_.state = restoreSummaryNode["State"].asString();
|
||||
if(!restoreSummaryNode["TargetCluster"].isNull())
|
||||
restoreSummary_.targetCluster = restoreSummaryNode["TargetCluster"].asString();
|
||||
if(!restoreSummaryNode["RestoreToDate"].isNull())
|
||||
restoreSummary_.restoreToDate = restoreSummaryNode["RestoreToDate"].asString();
|
||||
auto restoreSchemaNode = value["RestoreSchema"];
|
||||
if(!restoreSchemaNode["Succeed"].isNull())
|
||||
restoreSchema_.succeed = std::stoi(restoreSchemaNode["Succeed"].asString());
|
||||
if(!restoreSchemaNode["Fail"].isNull())
|
||||
restoreSchema_.fail = std::stoi(restoreSchemaNode["Fail"].asString());
|
||||
if(!restoreSchemaNode["Total"].isNull())
|
||||
restoreSchema_.total = std::stol(restoreSchemaNode["Total"].asString());
|
||||
if(!restoreSchemaNode["PageNumber"].isNull())
|
||||
restoreSchema_.pageNumber = std::stoi(restoreSchemaNode["PageNumber"].asString());
|
||||
if(!restoreSchemaNode["PageSize"].isNull())
|
||||
restoreSchema_.pageSize = std::stoi(restoreSchemaNode["PageSize"].asString());
|
||||
auto allRestoreSchemaDetailsNode = restoreSchemaNode["RestoreSchemaDetails"]["RestoreSchemaDetail"];
|
||||
for (auto restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail : allRestoreSchemaDetailsNode)
|
||||
{
|
||||
RestoreSchema::RestoreSchemaDetail restoreSchemaDetailObject;
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].isNull())
|
||||
restoreSchemaDetailObject.table = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Table"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].isNull())
|
||||
restoreSchemaDetailObject.startTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["StartTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].isNull())
|
||||
restoreSchemaDetailObject.endTime = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["EndTime"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].isNull())
|
||||
restoreSchemaDetailObject.state = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["State"].asString();
|
||||
if(!restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].isNull())
|
||||
restoreSchemaDetailObject.message = restoreSchemaNodeRestoreSchemaDetailsRestoreSchemaDetail["Message"].asString();
|
||||
restoreSchema_.restoreSchemaDetails.push_back(restoreSchemaDetailObject);
|
||||
}
|
||||
auto restoreFullNode = value["RestoreFull"];
|
||||
if(!restoreFullNode["Succeed"].isNull())
|
||||
restoreFull_.succeed = std::stoi(restoreFullNode["Succeed"].asString());
|
||||
if(!restoreFullNode["Fail"].isNull())
|
||||
restoreFull_.fail = std::stoi(restoreFullNode["Fail"].asString());
|
||||
if(!restoreFullNode["DataSize"].isNull())
|
||||
restoreFull_.dataSize = restoreFullNode["DataSize"].asString();
|
||||
if(!restoreFullNode["Speed"].isNull())
|
||||
restoreFull_.speed = restoreFullNode["Speed"].asString();
|
||||
if(!restoreFullNode["Total"].isNull())
|
||||
restoreFull_.total = std::stol(restoreFullNode["Total"].asString());
|
||||
if(!restoreFullNode["PageNumber"].isNull())
|
||||
restoreFull_.pageNumber = std::stoi(restoreFullNode["PageNumber"].asString());
|
||||
if(!restoreFullNode["PageSize"].isNull())
|
||||
restoreFull_.pageSize = std::stoi(restoreFullNode["PageSize"].asString());
|
||||
auto allRestoreFullDetailsNode = restoreFullNode["RestoreFullDetails"]["RestoreFullDetail"];
|
||||
for (auto restoreFullNodeRestoreFullDetailsRestoreFullDetail : allRestoreFullDetailsNode)
|
||||
{
|
||||
RestoreFull::RestoreFullDetail restoreFullDetailObject;
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].isNull())
|
||||
restoreFullDetailObject.table = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Table"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].isNull())
|
||||
restoreFullDetailObject.state = restoreFullNodeRestoreFullDetailsRestoreFullDetail["State"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].isNull())
|
||||
restoreFullDetailObject.startTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["StartTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].isNull())
|
||||
restoreFullDetailObject.endTime = restoreFullNodeRestoreFullDetailsRestoreFullDetail["EndTime"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].isNull())
|
||||
restoreFullDetailObject.process = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Process"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].isNull())
|
||||
restoreFullDetailObject.dataSize = restoreFullNodeRestoreFullDetailsRestoreFullDetail["DataSize"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].isNull())
|
||||
restoreFullDetailObject.speed = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Speed"].asString();
|
||||
if(!restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].isNull())
|
||||
restoreFullDetailObject.message = restoreFullNodeRestoreFullDetailsRestoreFullDetail["Message"].asString();
|
||||
restoreFull_.restoreFullDetails.push_back(restoreFullDetailObject);
|
||||
}
|
||||
auto restoreIncrDetailNode = value["RestoreIncrDetail"];
|
||||
if(!restoreIncrDetailNode["State"].isNull())
|
||||
restoreIncrDetail_.state = restoreIncrDetailNode["State"].asString();
|
||||
if(!restoreIncrDetailNode["StartTime"].isNull())
|
||||
restoreIncrDetail_.startTime = restoreIncrDetailNode["StartTime"].asString();
|
||||
if(!restoreIncrDetailNode["EndTime"].isNull())
|
||||
restoreIncrDetail_.endTime = restoreIncrDetailNode["EndTime"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreStartTs"].isNull())
|
||||
restoreIncrDetail_.restoreStartTs = restoreIncrDetailNode["RestoreStartTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoredTs"].isNull())
|
||||
restoreIncrDetail_.restoredTs = restoreIncrDetailNode["RestoredTs"].asString();
|
||||
if(!restoreIncrDetailNode["RestoreDelay"].isNull())
|
||||
restoreIncrDetail_.restoreDelay = restoreIncrDetailNode["RestoreDelay"].asString();
|
||||
if(!restoreIncrDetailNode["Process"].isNull())
|
||||
restoreIncrDetail_.process = restoreIncrDetailNode["Process"].asString();
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreSchema DescribeRestoreTablesResult::getRestoreSchema()const
|
||||
{
|
||||
return restoreSchema_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreFull DescribeRestoreTablesResult::getRestoreFull()const
|
||||
{
|
||||
return restoreFull_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreSummary DescribeRestoreTablesResult::getRestoreSummary()const
|
||||
{
|
||||
return restoreSummary_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRestoreTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::RestoreIncrDetail DescribeRestoreTablesResult::getRestoreIncrDetail()const
|
||||
{
|
||||
return restoreIncrDetail_;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexRequest.h
|
||||
@@ -198,6 +200,8 @@ set(imm_src
|
||||
src/model/CreateVideoAnalyseTaskResult.cc
|
||||
src/model/CreateVideoCompressTaskRequest.cc
|
||||
src/model/CreateVideoCompressTaskResult.cc
|
||||
src/model/CreateVideoProduceTaskRequest.cc
|
||||
src/model/CreateVideoProduceTaskResult.cc
|
||||
src/model/DecodeBlindWatermarkRequest.cc
|
||||
src/model/DecodeBlindWatermarkResult.cc
|
||||
src/model/DeleteDocIndexRequest.cc
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include "model/CreateVideoAnalyseTaskResult.h"
|
||||
#include "model/CreateVideoCompressTaskRequest.h"
|
||||
#include "model/CreateVideoCompressTaskResult.h"
|
||||
#include "model/CreateVideoProduceTaskRequest.h"
|
||||
#include "model/CreateVideoProduceTaskResult.h"
|
||||
#include "model/DecodeBlindWatermarkRequest.h"
|
||||
#include "model/DecodeBlindWatermarkResult.h"
|
||||
#include "model/DeleteDocIndexRequest.h"
|
||||
@@ -220,6 +222,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateVideoCompressTaskResult> CreateVideoCompressTaskOutcome;
|
||||
typedef std::future<CreateVideoCompressTaskOutcome> CreateVideoCompressTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoCompressTaskRequest&, const CreateVideoCompressTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoCompressTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVideoProduceTaskResult> CreateVideoProduceTaskOutcome;
|
||||
typedef std::future<CreateVideoProduceTaskOutcome> CreateVideoProduceTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoProduceTaskRequest&, const CreateVideoProduceTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoProduceTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DecodeBlindWatermarkResult> DecodeBlindWatermarkOutcome;
|
||||
typedef std::future<DecodeBlindWatermarkOutcome> DecodeBlindWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DecodeBlindWatermarkRequest&, const DecodeBlindWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DecodeBlindWatermarkAsyncHandler;
|
||||
@@ -441,6 +446,9 @@ namespace AlibabaCloud
|
||||
CreateVideoCompressTaskOutcome createVideoCompressTask(const Model::CreateVideoCompressTaskRequest &request)const;
|
||||
void createVideoCompressTaskAsync(const Model::CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoCompressTaskOutcomeCallable createVideoCompressTaskCallable(const Model::CreateVideoCompressTaskRequest& request) const;
|
||||
CreateVideoProduceTaskOutcome createVideoProduceTask(const Model::CreateVideoProduceTaskRequest &request)const;
|
||||
void createVideoProduceTaskAsync(const Model::CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoProduceTaskOutcomeCallable createVideoProduceTaskCallable(const Model::CreateVideoProduceTaskRequest& request) const;
|
||||
DecodeBlindWatermarkOutcome decodeBlindWatermark(const Model::DecodeBlindWatermarkRequest &request)const;
|
||||
void decodeBlindWatermarkAsync(const Model::DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DecodeBlindWatermarkOutcomeCallable decodeBlindWatermarkCallable(const Model::DecodeBlindWatermarkRequest& request) const;
|
||||
|
||||
@@ -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_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVideoProduceTaskRequest();
|
||||
~CreateVideoProduceTaskRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getMusic()const;
|
||||
void setMusic(const std::string& music);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
int getHeight()const;
|
||||
void setHeight(int height);
|
||||
std::string getCustomMessage()const;
|
||||
void setCustomMessage(const std::string& customMessage);
|
||||
std::string getImages()const;
|
||||
void setImages(const std::string& images);
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
int getWidth()const;
|
||||
void setWidth(int width);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string music_;
|
||||
std::string notifyEndpoint_;
|
||||
std::string targetUri_;
|
||||
std::string templateName_;
|
||||
int height_;
|
||||
std::string customMessage_;
|
||||
std::string images_;
|
||||
std::string notifyTopicName_;
|
||||
int width_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_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_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVideoProduceTaskResult();
|
||||
explicit CreateVideoProduceTaskResult(const std::string &payload);
|
||||
~CreateVideoProduceTaskResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getTaskType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string taskType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<Frames::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<Frames::FacesItem> faces;
|
||||
std::vector<Frames::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
FindImagesRequest();
|
||||
~FindImagesRequest();
|
||||
|
||||
std::string getRemarksArrayBIn()const;
|
||||
void setRemarksArrayBIn(const std::string& remarksArrayBIn);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getExternalId()const;
|
||||
@@ -67,6 +69,8 @@ namespace AlibabaCloud
|
||||
void setAddressLineContentsMatch(const std::string& addressLineContentsMatch);
|
||||
std::string getGender()const;
|
||||
void setGender(const std::string& gender);
|
||||
std::string getRemarksArrayAIn()const;
|
||||
void setRemarksArrayAIn(const std::string& remarksArrayAIn);
|
||||
std::string getImageSizeRange()const;
|
||||
void setImageSizeRange(const std::string& imageSizeRange);
|
||||
std::string getRemarksBPrefix()const;
|
||||
@@ -93,6 +97,7 @@ namespace AlibabaCloud
|
||||
void setSetId(const std::string& setId);
|
||||
|
||||
private:
|
||||
std::string remarksArrayBIn_;
|
||||
std::string project_;
|
||||
std::string externalId_;
|
||||
std::string facesModifyTimeRange_;
|
||||
@@ -109,6 +114,7 @@ namespace AlibabaCloud
|
||||
std::string modifyTimeRange_;
|
||||
std::string addressLineContentsMatch_;
|
||||
std::string gender_;
|
||||
std::string remarksArrayAIn_;
|
||||
std::string imageSizeRange_;
|
||||
std::string remarksBPrefix_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<ImagesItem::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<ImagesItem::FacesItem> faces;
|
||||
std::vector<ImagesItem::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -143,6 +143,7 @@ namespace AlibabaCloud
|
||||
std::string getAddressModifyTime()const;
|
||||
std::string getImageFormat()const;
|
||||
std::string getTagsFailReason()const;
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getExif()const;
|
||||
std::string getFacesModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
@@ -150,6 +151,7 @@ namespace AlibabaCloud
|
||||
int getImageWidth()const;
|
||||
std::vector<CelebrityItem> getCelebrity()const;
|
||||
std::string getSourcePosition()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::vector<FacesItem> getFaces()const;
|
||||
std::vector<TagsItem> getTags()const;
|
||||
std::string getAddressStatus()const;
|
||||
@@ -187,6 +189,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime_;
|
||||
std::string imageFormat_;
|
||||
std::string tagsFailReason_;
|
||||
std::string remarksArrayB_;
|
||||
std::string exif_;
|
||||
std::string facesModifyTime_;
|
||||
std::string remarksC_;
|
||||
@@ -194,6 +197,7 @@ namespace AlibabaCloud
|
||||
int imageWidth_;
|
||||
std::vector<CelebrityItem> celebrity_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksArrayA_;
|
||||
std::vector<FacesItem> faces_;
|
||||
std::vector<TagsItem> tags_;
|
||||
std::string addressStatus_;
|
||||
|
||||
@@ -55,6 +55,10 @@ namespace AlibabaCloud
|
||||
void setRemarksA(const std::string& remarksA);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getRemarksArrayA()const;
|
||||
void setRemarksArrayA(const std::string& remarksArrayA);
|
||||
std::string getRemarksArrayB()const;
|
||||
void setRemarksArrayB(const std::string& remarksArrayB);
|
||||
std::string getSourceUri()const;
|
||||
void setSourceUri(const std::string& sourceUri);
|
||||
std::string getSourcePosition()const;
|
||||
@@ -77,6 +81,8 @@ namespace AlibabaCloud
|
||||
std::string remarksB_;
|
||||
std::string remarksA_;
|
||||
std::string imageUri_;
|
||||
std::string remarksArrayA_;
|
||||
std::string remarksArrayB_;
|
||||
std::string sourceUri_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksD_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
IndexImageResult();
|
||||
explicit IndexImageResult(const std::string &payload);
|
||||
~IndexImageResult();
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
std::string getRemarksD()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getExternalId()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::string getSetId()const;
|
||||
std::string getImageUri()const;
|
||||
std::string getRemarksA()const;
|
||||
@@ -50,11 +52,13 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string remarksArrayB_;
|
||||
std::string modifyTime_;
|
||||
std::string remarksC_;
|
||||
std::string remarksD_;
|
||||
std::string createTime_;
|
||||
std::string externalId_;
|
||||
std::string remarksArrayA_;
|
||||
std::string setId_;
|
||||
std::string imageUri_;
|
||||
std::string remarksA_;
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<ImagesItem::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<ImagesItem::FacesItem> faces;
|
||||
std::vector<ImagesItem::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -49,6 +49,10 @@ namespace AlibabaCloud
|
||||
void setRemarksA(const std::string& remarksA);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getRemarksArrayA()const;
|
||||
void setRemarksArrayA(const std::string& remarksArrayA);
|
||||
std::string getRemarksArrayB()const;
|
||||
void setRemarksArrayB(const std::string& remarksArrayB);
|
||||
std::string getSourceUri()const;
|
||||
void setSourceUri(const std::string& sourceUri);
|
||||
std::string getSourcePosition()const;
|
||||
@@ -68,6 +72,8 @@ namespace AlibabaCloud
|
||||
std::string remarksB_;
|
||||
std::string remarksA_;
|
||||
std::string imageUri_;
|
||||
std::string remarksArrayA_;
|
||||
std::string remarksArrayB_;
|
||||
std::string sourceUri_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksD_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
UpdateImageResult();
|
||||
explicit UpdateImageResult(const std::string &payload);
|
||||
~UpdateImageResult();
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
std::string getRemarksD()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getExternalId()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::string getSetId()const;
|
||||
std::string getImageUri()const;
|
||||
std::string getRemarksA()const;
|
||||
@@ -50,11 +52,13 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string remarksArrayB_;
|
||||
std::string modifyTime_;
|
||||
std::string remarksC_;
|
||||
std::string remarksD_;
|
||||
std::string createTime_;
|
||||
std::string externalId_;
|
||||
std::string remarksArrayA_;
|
||||
std::string setId_;
|
||||
std::string imageUri_;
|
||||
std::string remarksA_;
|
||||
|
||||
@@ -591,6 +591,42 @@ ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompress
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoProduceTaskOutcome ImmClient::createVideoProduceTask(const CreateVideoProduceTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVideoProduceTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVideoProduceTaskOutcome(CreateVideoProduceTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateVideoProduceTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createVideoProduceTaskAsync(const CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVideoProduceTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoProduceTaskOutcomeCallable ImmClient::createVideoProduceTaskCallable(const CreateVideoProduceTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVideoProduceTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVideoProduceTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DecodeBlindWatermarkOutcome ImmClient::decodeBlindWatermark(const DecodeBlindWatermarkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
150
imm/src/model/CreateVideoProduceTaskRequest.cc
Normal file
150
imm/src/model/CreateVideoProduceTaskRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/imm/model/CreateVideoProduceTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateVideoProduceTaskRequest;
|
||||
|
||||
CreateVideoProduceTaskRequest::CreateVideoProduceTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateVideoProduceTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVideoProduceTaskRequest::~CreateVideoProduceTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getMusic()const
|
||||
{
|
||||
return music_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setMusic(const std::string& music)
|
||||
{
|
||||
music_ = music;
|
||||
setParameter("Music", music);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
int CreateVideoProduceTaskRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setHeight(int height)
|
||||
{
|
||||
height_ = height;
|
||||
setParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getCustomMessage()const
|
||||
{
|
||||
return customMessage_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setCustomMessage(const std::string& customMessage)
|
||||
{
|
||||
customMessage_ = customMessage;
|
||||
setParameter("CustomMessage", customMessage);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setImages(const std::string& images)
|
||||
{
|
||||
images_ = images;
|
||||
setParameter("Images", images);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
int CreateVideoProduceTaskRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setWidth(int width)
|
||||
{
|
||||
width_ = width;
|
||||
setParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
58
imm/src/model/CreateVideoProduceTaskResult.cc
Normal file
58
imm/src/model/CreateVideoProduceTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateVideoProduceTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateVideoProduceTaskResult::CreateVideoProduceTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoProduceTaskResult::CreateVideoProduceTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoProduceTaskResult::~CreateVideoProduceTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoProduceTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,10 @@ void FindImagesByTagNamesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesFrames["AddressStatus"].asString();
|
||||
if(!valueImagesFrames["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesFrames["AddressFailReason"].asString();
|
||||
if(!valueImagesFrames["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesFrames["RemarksArrayA"].asString();
|
||||
if(!valueImagesFrames["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesFrames["RemarksArrayB"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,17 @@ FindImagesRequest::FindImagesRequest() :
|
||||
FindImagesRequest::~FindImagesRequest()
|
||||
{}
|
||||
|
||||
std::string FindImagesRequest::getRemarksArrayBIn()const
|
||||
{
|
||||
return remarksArrayBIn_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setRemarksArrayBIn(const std::string& remarksArrayBIn)
|
||||
{
|
||||
remarksArrayBIn_ = remarksArrayBIn;
|
||||
setParameter("RemarksArrayBIn", remarksArrayBIn);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
@@ -203,6 +214,17 @@ void FindImagesRequest::setGender(const std::string& gender)
|
||||
setParameter("Gender", gender);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getRemarksArrayAIn()const
|
||||
{
|
||||
return remarksArrayAIn_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setRemarksArrayAIn(const std::string& remarksArrayAIn)
|
||||
{
|
||||
remarksArrayAIn_ = remarksArrayAIn;
|
||||
setParameter("RemarksArrayAIn", remarksArrayAIn);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getImageSizeRange()const
|
||||
{
|
||||
return imageSizeRange_;
|
||||
|
||||
@@ -111,6 +111,10 @@ void FindImagesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString();
|
||||
if(!valueImagesImagesItem["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -252,6 +252,10 @@ void GetImageResult::parse(const std::string &payload)
|
||||
addressStatus_ = value["AddressStatus"].asString();
|
||||
if(!value["AddressFailReason"].isNull())
|
||||
addressFailReason_ = value["AddressFailReason"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -310,6 +314,11 @@ std::string GetImageResult::getTagsFailReason()const
|
||||
return tagsFailReason_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getExif()const
|
||||
{
|
||||
return exif_;
|
||||
@@ -345,6 +354,11 @@ std::string GetImageResult::getSourcePosition()const
|
||||
return sourcePosition_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::vector<GetImageResult::FacesItem> GetImageResult::getFaces()const
|
||||
{
|
||||
return faces_;
|
||||
|
||||
@@ -137,6 +137,28 @@ void IndexImageRequest::setImageUri(const std::string& imageUri)
|
||||
setParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
void IndexImageRequest::setRemarksArrayA(const std::string& remarksArrayA)
|
||||
{
|
||||
remarksArrayA_ = remarksArrayA;
|
||||
setParameter("RemarksArrayA", remarksArrayA);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
void IndexImageRequest::setRemarksArrayB(const std::string& remarksArrayB)
|
||||
{
|
||||
remarksArrayB_ = remarksArrayB;
|
||||
setParameter("RemarksArrayB", remarksArrayB);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
|
||||
@@ -57,9 +57,18 @@ void IndexImageResult::parse(const std::string &payload)
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getModifyTime()const
|
||||
{
|
||||
return modifyTime_;
|
||||
@@ -85,6 +94,11 @@ std::string IndexImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
|
||||
@@ -111,6 +111,10 @@ void ListImagesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString();
|
||||
if(!valueImagesImagesItem["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -104,6 +104,28 @@ void UpdateImageRequest::setImageUri(const std::string& imageUri)
|
||||
setParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
void UpdateImageRequest::setRemarksArrayA(const std::string& remarksArrayA)
|
||||
{
|
||||
remarksArrayA_ = remarksArrayA;
|
||||
setParameter("RemarksArrayA", remarksArrayA);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
void UpdateImageRequest::setRemarksArrayB(const std::string& remarksArrayB)
|
||||
{
|
||||
remarksArrayB_ = remarksArrayB;
|
||||
setParameter("RemarksArrayB", remarksArrayB);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
|
||||
@@ -57,9 +57,18 @@ void UpdateImageResult::parse(const std::string &payload)
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getModifyTime()const
|
||||
{
|
||||
return modifyTime_;
|
||||
@@ -85,6 +94,11 @@ std::string UpdateImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
|
||||
@@ -31,21 +31,21 @@ OnsMqttClient::OnsMqttClient(const Credentials &credentials, const ClientConfigu
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "onsmqtt");
|
||||
}
|
||||
|
||||
OnsMqttClient::OnsMqttClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "onsmqtt");
|
||||
}
|
||||
|
||||
OnsMqttClient::OnsMqttClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "onsmqtt");
|
||||
}
|
||||
|
||||
OnsMqttClient::~OnsMqttClient()
|
||||
|
||||
@@ -55,6 +55,8 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/ListTagValuesResult.h
|
||||
include/alibabacloud/oos/model/ListTaskExecutionsRequest.h
|
||||
include/alibabacloud/oos/model/ListTaskExecutionsResult.h
|
||||
include/alibabacloud/oos/model/ListTemplateVersionsRequest.h
|
||||
include/alibabacloud/oos/model/ListTemplateVersionsResult.h
|
||||
include/alibabacloud/oos/model/ListTemplatesRequest.h
|
||||
include/alibabacloud/oos/model/ListTemplatesResult.h
|
||||
include/alibabacloud/oos/model/NotifyExecutionRequest.h
|
||||
@@ -108,6 +110,8 @@ set(oos_src
|
||||
src/model/ListTagValuesResult.cc
|
||||
src/model/ListTaskExecutionsRequest.cc
|
||||
src/model/ListTaskExecutionsResult.cc
|
||||
src/model/ListTemplateVersionsRequest.cc
|
||||
src/model/ListTemplateVersionsResult.cc
|
||||
src/model/ListTemplatesRequest.cc
|
||||
src/model/ListTemplatesResult.cc
|
||||
src/model/NotifyExecutionRequest.cc
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
#include "model/ListTagValuesResult.h"
|
||||
#include "model/ListTaskExecutionsRequest.h"
|
||||
#include "model/ListTaskExecutionsResult.h"
|
||||
#include "model/ListTemplateVersionsRequest.h"
|
||||
#include "model/ListTemplateVersionsResult.h"
|
||||
#include "model/ListTemplatesRequest.h"
|
||||
#include "model/ListTemplatesResult.h"
|
||||
#include "model/NotifyExecutionRequest.h"
|
||||
@@ -132,6 +134,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListTaskExecutionsResult> ListTaskExecutionsOutcome;
|
||||
typedef std::future<ListTaskExecutionsOutcome> ListTaskExecutionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListTaskExecutionsRequest&, const ListTaskExecutionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTaskExecutionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTemplateVersionsResult> ListTemplateVersionsOutcome;
|
||||
typedef std::future<ListTemplateVersionsOutcome> ListTemplateVersionsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListTemplateVersionsRequest&, const ListTemplateVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTemplateVersionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTemplatesResult> ListTemplatesOutcome;
|
||||
typedef std::future<ListTemplatesOutcome> ListTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::ListTemplatesRequest&, const ListTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTemplatesAsyncHandler;
|
||||
@@ -212,6 +217,9 @@ namespace AlibabaCloud
|
||||
ListTaskExecutionsOutcome listTaskExecutions(const Model::ListTaskExecutionsRequest &request)const;
|
||||
void listTaskExecutionsAsync(const Model::ListTaskExecutionsRequest& request, const ListTaskExecutionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTaskExecutionsOutcomeCallable listTaskExecutionsCallable(const Model::ListTaskExecutionsRequest& request) const;
|
||||
ListTemplateVersionsOutcome listTemplateVersions(const Model::ListTemplateVersionsRequest &request)const;
|
||||
void listTemplateVersionsAsync(const Model::ListTemplateVersionsRequest& request, const ListTemplateVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTemplateVersionsOutcomeCallable listTemplateVersionsCallable(const Model::ListTemplateVersionsRequest& request) const;
|
||||
ListTemplatesOutcome listTemplates(const Model::ListTemplatesRequest &request)const;
|
||||
void listTemplatesAsync(const Model::ListTemplatesRequest& request, const ListTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTemplatesOutcomeCallable listTemplatesCallable(const Model::ListTemplatesRequest& request) const;
|
||||
|
||||
@@ -43,12 +43,15 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
std::string getVersionName()const;
|
||||
void setVersionName(const std::string& versionName);
|
||||
|
||||
private:
|
||||
std::string content_;
|
||||
std::map<std::string, std::string> tags_;
|
||||
std::string regionId_;
|
||||
std::string templateName_;
|
||||
std::string versionName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,11 +54,13 @@ namespace AlibabaCloud
|
||||
explicit CreateTemplateResult(const std::string &payload);
|
||||
~CreateTemplateResult();
|
||||
_Template get_Template()const;
|
||||
std::string getTemplateType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
_Template _template_;
|
||||
std::string templateType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,12 +35,15 @@ namespace AlibabaCloud
|
||||
GenerateExecutionPolicyRequest();
|
||||
~GenerateExecutionPolicyRequest();
|
||||
|
||||
std::string getTemplateVersion()const;
|
||||
void setTemplateVersion(const std::string& templateVersion);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
|
||||
private:
|
||||
std::string templateVersion_;
|
||||
std::string regionId_;
|
||||
std::string templateName_;
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
std::string templateFormat;
|
||||
std::string updatedDate;
|
||||
std::string templateVersion;
|
||||
std::string templateType;
|
||||
std::string hash;
|
||||
std::string updatedBy;
|
||||
bool hasTrigger;
|
||||
|
||||
@@ -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_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT ListTemplateVersionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTemplateVersionsRequest();
|
||||
~ListTemplateVersionsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
std::string getShareType()const;
|
||||
void setShareType(const std::string& shareType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string templateName_;
|
||||
std::string shareType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_LISTTEMPLATEVERSIONSREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user