Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4576ea2f3 | ||
|
|
e051f5848b | ||
|
|
bfe6e5b081 | ||
|
|
03a2cd3731 | ||
|
|
83df0154da | ||
|
|
ec5269015c | ||
|
|
95a93b89f1 | ||
|
|
bd0d4f669a | ||
|
|
c6be4b4083 | ||
|
|
dad64fbdea | ||
|
|
ff1e74581f | ||
|
|
304717df66 | ||
|
|
d4d401ed4e | ||
|
|
670f1bb324 | ||
|
|
07721caa35 | ||
|
|
9315d79274 | ||
|
|
3d5b584e84 | ||
|
|
37abc8eec5 | ||
|
|
d55b09e788 | ||
|
|
f6e57b5ea2 |
60
CHANGELOG
60
CHANGELOG
@@ -1,3 +1,63 @@
|
||||
2020-06-03 Version: 1.36.443
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-06-03 Version: 1.36.442
|
||||
- DescribeCameraStatistics add filed.
|
||||
|
||||
2020-06-02 Version: 1.36.441
|
||||
- Edit SearchTraces api.
|
||||
|
||||
2020-05-28 Version: 1.36.440
|
||||
- Supported AndroidNotificationXiaomiChannel for Push and MassPush.
|
||||
|
||||
2020-05-27 Version: 1.36.439
|
||||
- Added cn-heyuan endpoint url.
|
||||
- Added cn-wulanchabu endpoint url.
|
||||
|
||||
2020-05-27 Version: 1.36.438
|
||||
- Add support for create hbaseue multizone instance.
|
||||
|
||||
2020-05-26 Version: 1.36.437
|
||||
- Support DescribeAllEntity API.
|
||||
|
||||
2020-05-26 Version: 1.36.436
|
||||
- Add smartcall service api.
|
||||
|
||||
2020-05-26 Version: 1.36.435
|
||||
- Add smartcall service api.
|
||||
|
||||
2020-05-26 Version: 1.36.434
|
||||
- Add monitor related API.
|
||||
|
||||
2020-05-26 Version: 1.36.433
|
||||
- Add monitor related.
|
||||
|
||||
2020-05-26 Version: 1.36.432
|
||||
- Add monitor related.
|
||||
|
||||
2020-05-25 Version: 1.36.431
|
||||
- Add monitor related.
|
||||
|
||||
2020-05-25 Version: 1.36.430
|
||||
- Add monitor related.
|
||||
|
||||
2020-05-23 Version: 1.36.429
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add ModifyResourceGroup API.
|
||||
- DescribeInstanceAttribute return ResourceGroupId.
|
||||
|
||||
2020-05-22 Version: 1.36.428
|
||||
- Add schedule crud api.
|
||||
|
||||
2020-05-21 Version: 1.36.427
|
||||
- Support more error Codes.
|
||||
|
||||
2020-05-20 Version: 1.36.426
|
||||
- Generated 2019-09-10 for `waf-openapi`.
|
||||
|
||||
2020-05-20 Version: 1.36.425
|
||||
- Edit GetTrace and SearchTraces api.
|
||||
|
||||
2020-05-20 Version: 1.36.424
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
@@ -27,6 +27,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
|
||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -106,6 +108,8 @@ set(arms_src
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/CheckDataConsistencyRequest.cc
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/CheckDataConsistencyRequest.h"
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -116,6 +118,9 @@ namespace AlibabaCloud
|
||||
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::CheckServiceLinkedRoleForDeletingResult> CheckServiceLinkedRoleForDeletingOutcome;
|
||||
typedef std::future<CheckServiceLinkedRoleForDeletingOutcome> CheckServiceLinkedRoleForDeletingOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckServiceLinkedRoleForDeletingRequest&, const CheckServiceLinkedRoleForDeletingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceLinkedRoleForDeletingAsyncHandler;
|
||||
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;
|
||||
@@ -235,6 +240,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
CheckServiceLinkedRoleForDeletingOutcome checkServiceLinkedRoleForDeleting(const Model::CheckServiceLinkedRoleForDeletingRequest &request)const;
|
||||
void checkServiceLinkedRoleForDeletingAsync(const Model::CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckServiceLinkedRoleForDeletingOutcomeCallable checkServiceLinkedRoleForDeletingCallable(const Model::CheckServiceLinkedRoleForDeletingRequest& 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;
|
||||
|
||||
@@ -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_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_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 CheckServiceLinkedRoleForDeletingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckServiceLinkedRoleForDeletingRequest();
|
||||
~CheckServiceLinkedRoleForDeletingRequest();
|
||||
|
||||
std::string getSPIRegionId()const;
|
||||
void setSPIRegionId(const std::string& sPIRegionId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getRoleArn()const;
|
||||
void setRoleArn(const std::string& roleArn);
|
||||
std::string getDeletionTaskId()const;
|
||||
void setDeletionTaskId(const std::string& deletionTaskId);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
|
||||
private:
|
||||
std::string sPIRegionId_;
|
||||
std::string regionId_;
|
||||
std::string roleArn_;
|
||||
std::string deletionTaskId_;
|
||||
std::string serviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_H_
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_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 CheckServiceLinkedRoleForDeletingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RoleUsagesItem
|
||||
{
|
||||
std::string region;
|
||||
std::vector<std::string> resources;
|
||||
};
|
||||
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult();
|
||||
explicit CheckServiceLinkedRoleForDeletingResult(const std::string &payload);
|
||||
~CheckServiceLinkedRoleForDeletingResult();
|
||||
bool getDeletable()const;
|
||||
std::vector<RoleUsagesItem> getRoleUsages()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool deletable_;
|
||||
std::vector<RoleUsagesItem> roleUsages_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_H_
|
||||
@@ -32,55 +32,17 @@ namespace AlibabaCloud
|
||||
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;
|
||||
std::string getConsistencyResultJsonStr()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConsistencyResult consistencyResult_;
|
||||
std::string consistencyResultJsonStr_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string operationName;
|
||||
std::string serviceName;
|
||||
std::string rpcId;
|
||||
int rpcType;
|
||||
std::string traceID;
|
||||
long duration;
|
||||
std::vector<Span::TagEntry> tagEntryList;
|
||||
|
||||
@@ -31,6 +31,11 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ARMS_EXPORT SearchTracesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct ExclusionFilters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
@@ -51,6 +56,8 @@ namespace AlibabaCloud
|
||||
void setMinDuration(long minDuration);
|
||||
std::string getServiceIp()const;
|
||||
void setServiceIp(const std::string& serviceIp);
|
||||
std::vector<ExclusionFilters> getExclusionFilters()const;
|
||||
void setExclusionFilters(const std::vector<ExclusionFilters>& exclusionFilters);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOperationName()const;
|
||||
@@ -66,6 +73,7 @@ namespace AlibabaCloud
|
||||
bool reverse_;
|
||||
long minDuration_;
|
||||
std::string serviceIp_;
|
||||
std::vector<ExclusionFilters> exclusionFilters_;
|
||||
std::string regionId_;
|
||||
std::string operationName_;
|
||||
std::string serviceName_;
|
||||
|
||||
@@ -159,6 +159,42 @@ ARMSClient::CheckDataConsistencyOutcomeCallable ARMSClient::checkDataConsistency
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CheckServiceLinkedRoleForDeletingOutcome ARMSClient::checkServiceLinkedRoleForDeleting(const CheckServiceLinkedRoleForDeletingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckServiceLinkedRoleForDeletingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckServiceLinkedRoleForDeletingOutcome(CheckServiceLinkedRoleForDeletingResult(outcome.result()));
|
||||
else
|
||||
return CheckServiceLinkedRoleForDeletingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::checkServiceLinkedRoleForDeletingAsync(const CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkServiceLinkedRoleForDeleting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CheckServiceLinkedRoleForDeletingOutcomeCallable ARMSClient::checkServiceLinkedRoleForDeletingCallable(const CheckServiceLinkedRoleForDeletingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckServiceLinkedRoleForDeletingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkServiceLinkedRoleForDeleting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
arms/src/model/CheckServiceLinkedRoleForDeletingRequest.cc
Normal file
84
arms/src/model/CheckServiceLinkedRoleForDeletingRequest.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/CheckServiceLinkedRoleForDeletingRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckServiceLinkedRoleForDeletingRequest;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::CheckServiceLinkedRoleForDeletingRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckServiceLinkedRoleForDeleting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::~CheckServiceLinkedRoleForDeletingRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
67
arms/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
67
arms/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::~CheckServiceLinkedRoleForDeletingResult()
|
||||
{}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsagesItem"];
|
||||
for (auto valueRoleUsagesRoleUsagesItem : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsagesItem roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsagesItem["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsagesItem["Region"].asString();
|
||||
auto allResources = value["Resources"]["Resources"];
|
||||
for (auto value : allResources)
|
||||
roleUsagesObject.resources.push_back(value.asString());
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleForDeletingResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::vector<CheckServiceLinkedRoleForDeletingResult::RoleUsagesItem> CheckServiceLinkedRoleForDeletingResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
@@ -39,72 +39,13 @@ void GetConsistencySnapshotResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["ConsistencyResultJsonStr"].isNull())
|
||||
consistencyResultJsonStr_ = value["ConsistencyResultJsonStr"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::ConsistencyResult GetConsistencySnapshotResult::getConsistencyResult()const
|
||||
std::string GetConsistencySnapshotResult::getConsistencyResultJsonStr()const
|
||||
{
|
||||
return consistencyResult_;
|
||||
return consistencyResultJsonStr_;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@ void GetTraceResult::parse(const std::string &payload)
|
||||
spansObject.resultCode = valueSpansSpan["ResultCode"].asString();
|
||||
if(!valueSpansSpan["HaveStack"].isNull())
|
||||
spansObject.haveStack = valueSpansSpan["HaveStack"].asString() == "true";
|
||||
if(!valueSpansSpan["RpcType"].isNull())
|
||||
spansObject.rpcType = std::stoi(valueSpansSpan["RpcType"].asString());
|
||||
auto allTagEntryListNode = allSpansNode["TagEntryList"]["TagEntry"];
|
||||
for (auto allSpansNodeTagEntryListTagEntry : allTagEntryListNode)
|
||||
{
|
||||
|
||||
@@ -82,6 +82,22 @@ void SearchTracesRequest::setServiceIp(const std::string& serviceIp)
|
||||
setParameter("ServiceIp", serviceIp);
|
||||
}
|
||||
|
||||
std::vector<SearchTracesRequest::ExclusionFilters> SearchTracesRequest::getExclusionFilters()const
|
||||
{
|
||||
return exclusionFilters_;
|
||||
}
|
||||
|
||||
void SearchTracesRequest::setExclusionFilters(const std::vector<ExclusionFilters>& exclusionFilters)
|
||||
{
|
||||
exclusionFilters_ = exclusionFilters;
|
||||
for(int dep1 = 0; dep1!= exclusionFilters.size(); dep1++) {
|
||||
auto exclusionFiltersObj = exclusionFilters.at(dep1);
|
||||
std::string exclusionFiltersObjStr = "ExclusionFilters." + std::to_string(dep1 + 1);
|
||||
setParameter(exclusionFiltersObjStr + ".Value", exclusionFiltersObj.value);
|
||||
setParameter(exclusionFiltersObjStr + ".Key", exclusionFiltersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SearchTracesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
int autoRenewPeriod;
|
||||
std::string createdTime;
|
||||
std::string clusterId;
|
||||
std::string minorVersion;
|
||||
@@ -48,6 +49,7 @@ namespace AlibabaCloud
|
||||
std::string lockMode;
|
||||
bool isLatestVersion;
|
||||
std::string maintainEndTime;
|
||||
bool autoRenewal;
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
|
||||
@@ -41,13 +41,15 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
int autoRenewPeriod;
|
||||
std::string createdTime;
|
||||
std::string clusterId;
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string minorVersion;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
bool autoRenewal;
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
std::vector<Cluster::Tag> tags;
|
||||
};
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
explicit DescribeDataCenterResult(const std::string &payload);
|
||||
~DescribeDataCenterResult();
|
||||
std::string getStatus()const;
|
||||
int getAutoRenewPeriod()const;
|
||||
std::string getDataCenterId()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getCommodityInstance()const;
|
||||
@@ -50,6 +51,7 @@ namespace AlibabaCloud
|
||||
std::string getVswitchId()const;
|
||||
std::string getDiskType()const;
|
||||
std::string getVpcId()const;
|
||||
bool getAutoRenewal()const;
|
||||
int getDiskSize()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getInstanceType()const;
|
||||
@@ -59,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
int autoRenewPeriod_;
|
||||
std::string dataCenterId_;
|
||||
std::string createdTime_;
|
||||
std::string commodityInstance_;
|
||||
@@ -71,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string vswitchId_;
|
||||
std::string diskType_;
|
||||
std::string vpcId_;
|
||||
bool autoRenewal_;
|
||||
int diskSize_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct DataCenter
|
||||
{
|
||||
std::string status;
|
||||
int autoRenewPeriod;
|
||||
std::string dataCenterId;
|
||||
std::string createdTime;
|
||||
std::string commodityInstance;
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string vswitchId;
|
||||
std::string diskType;
|
||||
std::string vpcId;
|
||||
bool autoRenewal;
|
||||
int diskSize;
|
||||
std::string regionId;
|
||||
std::string instanceType;
|
||||
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
RebootClusterRequest();
|
||||
~RebootClusterRequest();
|
||||
|
||||
std::string getDataCenterId()const;
|
||||
void setDataCenterId(const std::string& dataCenterId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string dataCenterId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -66,6 +66,10 @@ void DescribeClusterResult::parse(const std::string &payload)
|
||||
cluster_.maintainEndTime = clusterNode["MaintainEndTime"].asString();
|
||||
if(!clusterNode["LockMode"].isNull())
|
||||
cluster_.lockMode = clusterNode["LockMode"].asString();
|
||||
if(!clusterNode["AutoRenewal"].isNull())
|
||||
cluster_.autoRenewal = clusterNode["AutoRenewal"].asString() == "true";
|
||||
if(!clusterNode["AutoRenewPeriod"].isNull())
|
||||
cluster_.autoRenewPeriod = std::stoi(clusterNode["AutoRenewPeriod"].asString());
|
||||
auto allTagsNode = clusterNode["Tags"]["Tag"];
|
||||
for (auto clusterNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -63,6 +63,10 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
if(!valueClustersCluster["LockMode"].isNull())
|
||||
clustersObject.lockMode = valueClustersCluster["LockMode"].asString();
|
||||
if(!valueClustersCluster["AutoRenewal"].isNull())
|
||||
clustersObject.autoRenewal = valueClustersCluster["AutoRenewal"].asString() == "true";
|
||||
if(!valueClustersCluster["AutoRenewPeriod"].isNull())
|
||||
clustersObject.autoRenewPeriod = std::stoi(valueClustersCluster["AutoRenewPeriod"].asString());
|
||||
auto allTagsNode = allClustersNode["Tags"]["Tag"];
|
||||
for (auto allClustersNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -73,6 +73,10 @@ void DescribeDataCenterResult::parse(const std::string &payload)
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["LockMode"].isNull())
|
||||
lockMode_ = value["LockMode"].asString();
|
||||
if(!value["AutoRenewal"].isNull())
|
||||
autoRenewal_ = value["AutoRenewal"].asString() == "true";
|
||||
if(!value["AutoRenewPeriod"].isNull())
|
||||
autoRenewPeriod_ = std::stoi(value["AutoRenewPeriod"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -81,6 +85,11 @@ std::string DescribeDataCenterResult::getStatus()const
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DescribeDataCenterResult::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCenterResult::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
@@ -141,6 +150,11 @@ std::string DescribeDataCenterResult::getVpcId()const
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
bool DescribeDataCenterResult::getAutoRenewal()const
|
||||
{
|
||||
return autoRenewal_;
|
||||
}
|
||||
|
||||
int DescribeDataCenterResult::getDiskSize()const
|
||||
{
|
||||
return diskSize_;
|
||||
|
||||
@@ -77,6 +77,10 @@ void DescribeDataCentersResult::parse(const std::string &payload)
|
||||
dataCentersObject.expireTime = valueDataCentersDataCenter["ExpireTime"].asString();
|
||||
if(!valueDataCentersDataCenter["LockMode"].isNull())
|
||||
dataCentersObject.lockMode = valueDataCentersDataCenter["LockMode"].asString();
|
||||
if(!valueDataCentersDataCenter["AutoRenewal"].isNull())
|
||||
dataCentersObject.autoRenewal = valueDataCentersDataCenter["AutoRenewal"].asString() == "true";
|
||||
if(!valueDataCentersDataCenter["AutoRenewPeriod"].isNull())
|
||||
dataCentersObject.autoRenewPeriod = std::stoi(valueDataCentersDataCenter["AutoRenewPeriod"].asString());
|
||||
dataCenters_.push_back(dataCentersObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ RebootClusterRequest::RebootClusterRequest() :
|
||||
RebootClusterRequest::~RebootClusterRequest()
|
||||
{}
|
||||
|
||||
std::string RebootClusterRequest::getDataCenterId()const
|
||||
{
|
||||
return dataCenterId_;
|
||||
}
|
||||
|
||||
void RebootClusterRequest::setDataCenterId(const std::string& dataCenterId)
|
||||
{
|
||||
dataCenterId_ = dataCenterId;
|
||||
setParameter("DataCenterId", dataCenterId);
|
||||
}
|
||||
|
||||
std::string RebootClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -51,16 +53,20 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string product_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string resourceType_;
|
||||
std::string category_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,6 +71,17 @@ void DescribeTagsRequest::setNextToken(const std::string& nextToken)
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -115,3 +126,14 @@ void DescribeTagsRequest::setResourceType(const std::string& resourceType)
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,8 +68,8 @@ namespace AlibabaCloud
|
||||
void setZoneInfos(const std::vector<ZoneInfos>& zoneInfos);
|
||||
std::string getHostNamePrefix()const;
|
||||
void setHostNamePrefix(const std::string& hostNamePrefix);
|
||||
std::string getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
|
||||
float getComputeSpotPriceLimit()const;
|
||||
void setComputeSpotPriceLimit(float computeSpotPriceLimit);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getComputeSpotStrategy()const;
|
||||
@@ -80,8 +80,6 @@ namespace AlibabaCloud
|
||||
void setPriorityStrategy(const std::string& priorityStrategy);
|
||||
std::string getInstanceFamilyLevel()const;
|
||||
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
|
||||
std::string getEcsChargeType()const;
|
||||
void setEcsChargeType(const std::string& ecsChargeType);
|
||||
std::string getInternetChargeType()const;
|
||||
void setInternetChargeType(const std::string& internetChargeType);
|
||||
std::vector<InstanceTypeModel> getInstanceTypeModel()const;
|
||||
@@ -105,13 +103,12 @@ namespace AlibabaCloud
|
||||
int systemDiskSize_;
|
||||
std::vector<ZoneInfos> zoneInfos_;
|
||||
std::string hostNamePrefix_;
|
||||
std::string computeSpotPriceLimit_;
|
||||
float computeSpotPriceLimit_;
|
||||
std::string clusterId_;
|
||||
std::string computeSpotStrategy_;
|
||||
std::string hostNameSuffix_;
|
||||
std::string priorityStrategy_;
|
||||
std::string instanceFamilyLevel_;
|
||||
std::string ecsChargeType_;
|
||||
std::string internetChargeType_;
|
||||
std::vector<InstanceTypeModel> instanceTypeModel_;
|
||||
int internetMaxBandWidthIn_;
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace AlibabaCloud
|
||||
ApplyNodesResult();
|
||||
explicit ApplyNodesResult(const std::string &payload);
|
||||
~ApplyNodesResult();
|
||||
int getSatisfiedAmount()const;
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
std::string getDetail()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int satisfiedAmount_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
std::string detail_;
|
||||
|
||||
|
||||
@@ -153,15 +153,15 @@ void ApplyNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix)
|
||||
setParameter("HostNamePrefix", hostNamePrefix);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getComputeSpotPriceLimit()const
|
||||
float ApplyNodesRequest::getComputeSpotPriceLimit()const
|
||||
{
|
||||
return computeSpotPriceLimit_;
|
||||
}
|
||||
|
||||
void ApplyNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
|
||||
void ApplyNodesRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit)
|
||||
{
|
||||
computeSpotPriceLimit_ = computeSpotPriceLimit;
|
||||
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
|
||||
setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit));
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getClusterId()const
|
||||
@@ -219,17 +219,6 @@ void ApplyNodesRequest::setInstanceFamilyLevel(const std::string& instanceFamily
|
||||
setParameter("InstanceFamilyLevel", instanceFamilyLevel);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getEcsChargeType()const
|
||||
{
|
||||
return ecsChargeType_;
|
||||
}
|
||||
|
||||
void ApplyNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
|
||||
{
|
||||
ecsChargeType_ = ecsChargeType;
|
||||
setParameter("EcsChargeType", ecsChargeType);
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
|
||||
@@ -44,9 +44,16 @@ void ApplyNodesResult::parse(const std::string &payload)
|
||||
instanceIds_.push_back(item.asString());
|
||||
if(!value["Detail"].isNull())
|
||||
detail_ = value["Detail"].asString();
|
||||
if(!value["SatisfiedAmount"].isNull())
|
||||
satisfiedAmount_ = std::stoi(value["SatisfiedAmount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ApplyNodesResult::getSatisfiedAmount()const
|
||||
{
|
||||
return satisfiedAmount_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ApplyNodesResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
|
||||
@@ -22,16 +22,12 @@ set(et-industry-openapi_public_header
|
||||
|
||||
set(et-industry-openapi_public_header_model
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataRequest.h
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataResult.h
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataDCRequest.h
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataDCResult.h )
|
||||
include/alibabacloud/et-industry-openapi/model/UploadDeviceDataResult.h )
|
||||
|
||||
set(et-industry-openapi_src
|
||||
src/Et-industry-openapiClient.cc
|
||||
src/model/UploadDeviceDataRequest.cc
|
||||
src/model/UploadDeviceDataResult.cc
|
||||
src/model/UploadDeviceDataDCRequest.cc
|
||||
src/model/UploadDeviceDataDCResult.cc )
|
||||
src/model/UploadDeviceDataResult.cc )
|
||||
|
||||
add_library(et-industry-openapi ${LIB_TYPE}
|
||||
${et-industry-openapi_public_header}
|
||||
|
||||
@@ -22,10 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "Et_industry_openapiExport.h"
|
||||
#include "model/UploadDeviceDataRequest.h"
|
||||
#include "model/UploadDeviceDataResult.h"
|
||||
#include "model/UploadDeviceDataDCRequest.h"
|
||||
#include "model/UploadDeviceDataDCResult.h"
|
||||
#include "model/UploadDeviceDataRequest.h"
|
||||
#include "model/UploadDeviceDataResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -37,10 +35,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
typedef Outcome<Error, Model::UploadDeviceDataResult> UploadDeviceDataOutcome;
|
||||
typedef std::future<UploadDeviceDataOutcome> UploadDeviceDataOutcomeCallable;
|
||||
typedef std::function<void(const Et_industry_openapiClient*, const Model::UploadDeviceDataRequest&, const UploadDeviceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDeviceDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadDeviceDataDCResult> UploadDeviceDataDCOutcome;
|
||||
typedef std::future<UploadDeviceDataDCOutcome> UploadDeviceDataDCOutcomeCallable;
|
||||
typedef std::function<void(const Et_industry_openapiClient*, const Model::UploadDeviceDataDCRequest&, const UploadDeviceDataDCOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDeviceDataDCAsyncHandler;
|
||||
typedef std::function<void(const Et_industry_openapiClient*, const Model::UploadDeviceDataRequest&, const UploadDeviceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDeviceDataAsyncHandler;
|
||||
|
||||
Et_industry_openapiClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Et_industry_openapiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -48,10 +43,7 @@ namespace AlibabaCloud
|
||||
~Et_industry_openapiClient();
|
||||
UploadDeviceDataOutcome uploadDeviceData(const Model::UploadDeviceDataRequest &request)const;
|
||||
void uploadDeviceDataAsync(const Model::UploadDeviceDataRequest& request, const UploadDeviceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UploadDeviceDataOutcomeCallable uploadDeviceDataCallable(const Model::UploadDeviceDataRequest& request) const;
|
||||
UploadDeviceDataDCOutcome uploadDeviceDataDC(const Model::UploadDeviceDataDCRequest &request)const;
|
||||
void uploadDeviceDataDCAsync(const Model::UploadDeviceDataDCRequest& request, const UploadDeviceDataDCAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UploadDeviceDataDCOutcomeCallable uploadDeviceDataDCCallable(const Model::UploadDeviceDataDCRequest& request) const;
|
||||
UploadDeviceDataOutcomeCallable uploadDeviceDataCallable(const Model::UploadDeviceDataRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -1,67 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCREQUEST_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/et-industry-openapi/Et_industry_openapiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Et_industry_openapi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT UploadDeviceDataDCRequest : public RoaServiceRequest
|
||||
{
|
||||
public:
|
||||
struct data
|
||||
{
|
||||
struct data
|
||||
{
|
||||
std::string device_id;
|
||||
std::string create_time;
|
||||
std::string system_code;
|
||||
std::string time;
|
||||
std::string systime;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<data> data;
|
||||
std::string pk;
|
||||
};
|
||||
|
||||
public:
|
||||
UploadDeviceDataDCRequest();
|
||||
~UploadDeviceDataDCRequest();
|
||||
|
||||
std::vector<data> getData()const;
|
||||
void setData(const std::vector<data>& data);
|
||||
int getTaskId()const;
|
||||
void setTaskId(int taskId);
|
||||
|
||||
private:
|
||||
std::vector<data> data_;
|
||||
int taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCREQUEST_H_
|
||||
@@ -86,40 +86,3 @@ Et_industry_openapiClient::UploadDeviceDataOutcomeCallable Et_industry_openapiCl
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::UploadDeviceDataDCOutcome Et_industry_openapiClient::uploadDeviceDataDC(const UploadDeviceDataDCRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadDeviceDataDCOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadDeviceDataDCOutcome(UploadDeviceDataDCResult(outcome.result()));
|
||||
else
|
||||
return UploadDeviceDataDCOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Et_industry_openapiClient::uploadDeviceDataDCAsync(const UploadDeviceDataDCRequest& request, const UploadDeviceDataDCAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadDeviceDataDC(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Et_industry_openapiClient::UploadDeviceDataDCOutcomeCallable Et_industry_openapiClient::uploadDeviceDataDCCallable(const UploadDeviceDataDCRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadDeviceDataDCOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadDeviceDataDC(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,67 +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/et-industry-openapi/model/UploadDeviceDataDCRequest.h>
|
||||
|
||||
using AlibabaCloud::Et_industry_openapi::Model::UploadDeviceDataDCRequest;
|
||||
|
||||
UploadDeviceDataDCRequest::UploadDeviceDataDCRequest() :
|
||||
RoaServiceRequest("et-industry-openapi", "2019-06-10")
|
||||
{
|
||||
setResourcePath("/api/report/point");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadDeviceDataDCRequest::~UploadDeviceDataDCRequest()
|
||||
{}
|
||||
|
||||
std::vector<UploadDeviceDataDCRequest::data> UploadDeviceDataDCRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UploadDeviceDataDCRequest::setData(const std::vector<data>& data)
|
||||
{
|
||||
data_ = data;
|
||||
for(int dep1 = 0; dep1!= data.size(); dep1++) {
|
||||
auto dataObj = data.at(dep1);
|
||||
std::string dataObjStr = "data." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2!= dataObj.data.size(); dep2++) {
|
||||
auto dataObj = dataObj.data.at(dep2);
|
||||
std::string dataObjStr = dataObjStr + "data." + std::to_string(dep2 + 1);
|
||||
setParameter(dataObjStr + ".Device_id", dataObj.device_id);
|
||||
setParameter(dataObjStr + ".Create_time", dataObj.create_time);
|
||||
setParameter(dataObjStr + ".System_code", dataObj.system_code);
|
||||
setParameter(dataObjStr + ".Time", dataObj.time);
|
||||
setParameter(dataObjStr + ".Systime", dataObj.systime);
|
||||
setParameter(dataObjStr + ".Value", dataObj.value);
|
||||
setParameter(dataObjStr + ".Key", dataObj.key);
|
||||
}
|
||||
setParameter(dataObjStr + ".Pk", dataObj.pk);
|
||||
}
|
||||
}
|
||||
|
||||
int UploadDeviceDataDCRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void UploadDeviceDataDCRequest::setTaskId(int taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
@@ -23,18 +23,26 @@ set(fnf_public_header
|
||||
set(fnf_public_header_model
|
||||
include/alibabacloud/fnf/model/CreateFlowRequest.h
|
||||
include/alibabacloud/fnf/model/CreateFlowResult.h
|
||||
include/alibabacloud/fnf/model/CreateScheduleRequest.h
|
||||
include/alibabacloud/fnf/model/CreateScheduleResult.h
|
||||
include/alibabacloud/fnf/model/DeleteFlowRequest.h
|
||||
include/alibabacloud/fnf/model/DeleteFlowResult.h
|
||||
include/alibabacloud/fnf/model/DeleteScheduleRequest.h
|
||||
include/alibabacloud/fnf/model/DeleteScheduleResult.h
|
||||
include/alibabacloud/fnf/model/DescribeExecutionRequest.h
|
||||
include/alibabacloud/fnf/model/DescribeExecutionResult.h
|
||||
include/alibabacloud/fnf/model/DescribeFlowRequest.h
|
||||
include/alibabacloud/fnf/model/DescribeFlowResult.h
|
||||
include/alibabacloud/fnf/model/DescribeScheduleRequest.h
|
||||
include/alibabacloud/fnf/model/DescribeScheduleResult.h
|
||||
include/alibabacloud/fnf/model/GetExecutionHistoryRequest.h
|
||||
include/alibabacloud/fnf/model/GetExecutionHistoryResult.h
|
||||
include/alibabacloud/fnf/model/ListExecutionsRequest.h
|
||||
include/alibabacloud/fnf/model/ListExecutionsResult.h
|
||||
include/alibabacloud/fnf/model/ListFlowsRequest.h
|
||||
include/alibabacloud/fnf/model/ListFlowsResult.h
|
||||
include/alibabacloud/fnf/model/ListSchedulesRequest.h
|
||||
include/alibabacloud/fnf/model/ListSchedulesResult.h
|
||||
include/alibabacloud/fnf/model/ReportTaskFailedRequest.h
|
||||
include/alibabacloud/fnf/model/ReportTaskFailedResult.h
|
||||
include/alibabacloud/fnf/model/ReportTaskSucceededRequest.h
|
||||
@@ -44,24 +52,34 @@ set(fnf_public_header_model
|
||||
include/alibabacloud/fnf/model/StopExecutionRequest.h
|
||||
include/alibabacloud/fnf/model/StopExecutionResult.h
|
||||
include/alibabacloud/fnf/model/UpdateFlowRequest.h
|
||||
include/alibabacloud/fnf/model/UpdateFlowResult.h )
|
||||
include/alibabacloud/fnf/model/UpdateFlowResult.h
|
||||
include/alibabacloud/fnf/model/UpdateScheduleRequest.h
|
||||
include/alibabacloud/fnf/model/UpdateScheduleResult.h )
|
||||
|
||||
set(fnf_src
|
||||
src/FnfClient.cc
|
||||
src/model/CreateFlowRequest.cc
|
||||
src/model/CreateFlowResult.cc
|
||||
src/model/CreateScheduleRequest.cc
|
||||
src/model/CreateScheduleResult.cc
|
||||
src/model/DeleteFlowRequest.cc
|
||||
src/model/DeleteFlowResult.cc
|
||||
src/model/DeleteScheduleRequest.cc
|
||||
src/model/DeleteScheduleResult.cc
|
||||
src/model/DescribeExecutionRequest.cc
|
||||
src/model/DescribeExecutionResult.cc
|
||||
src/model/DescribeFlowRequest.cc
|
||||
src/model/DescribeFlowResult.cc
|
||||
src/model/DescribeScheduleRequest.cc
|
||||
src/model/DescribeScheduleResult.cc
|
||||
src/model/GetExecutionHistoryRequest.cc
|
||||
src/model/GetExecutionHistoryResult.cc
|
||||
src/model/ListExecutionsRequest.cc
|
||||
src/model/ListExecutionsResult.cc
|
||||
src/model/ListFlowsRequest.cc
|
||||
src/model/ListFlowsResult.cc
|
||||
src/model/ListSchedulesRequest.cc
|
||||
src/model/ListSchedulesResult.cc
|
||||
src/model/ReportTaskFailedRequest.cc
|
||||
src/model/ReportTaskFailedResult.cc
|
||||
src/model/ReportTaskSucceededRequest.cc
|
||||
@@ -71,7 +89,9 @@ set(fnf_src
|
||||
src/model/StopExecutionRequest.cc
|
||||
src/model/StopExecutionResult.cc
|
||||
src/model/UpdateFlowRequest.cc
|
||||
src/model/UpdateFlowResult.cc )
|
||||
src/model/UpdateFlowResult.cc
|
||||
src/model/UpdateScheduleRequest.cc
|
||||
src/model/UpdateScheduleResult.cc )
|
||||
|
||||
add_library(fnf ${LIB_TYPE}
|
||||
${fnf_public_header}
|
||||
|
||||
@@ -24,18 +24,26 @@
|
||||
#include "FnfExport.h"
|
||||
#include "model/CreateFlowRequest.h"
|
||||
#include "model/CreateFlowResult.h"
|
||||
#include "model/CreateScheduleRequest.h"
|
||||
#include "model/CreateScheduleResult.h"
|
||||
#include "model/DeleteFlowRequest.h"
|
||||
#include "model/DeleteFlowResult.h"
|
||||
#include "model/DeleteScheduleRequest.h"
|
||||
#include "model/DeleteScheduleResult.h"
|
||||
#include "model/DescribeExecutionRequest.h"
|
||||
#include "model/DescribeExecutionResult.h"
|
||||
#include "model/DescribeFlowRequest.h"
|
||||
#include "model/DescribeFlowResult.h"
|
||||
#include "model/DescribeScheduleRequest.h"
|
||||
#include "model/DescribeScheduleResult.h"
|
||||
#include "model/GetExecutionHistoryRequest.h"
|
||||
#include "model/GetExecutionHistoryResult.h"
|
||||
#include "model/ListExecutionsRequest.h"
|
||||
#include "model/ListExecutionsResult.h"
|
||||
#include "model/ListFlowsRequest.h"
|
||||
#include "model/ListFlowsResult.h"
|
||||
#include "model/ListSchedulesRequest.h"
|
||||
#include "model/ListSchedulesResult.h"
|
||||
#include "model/ReportTaskFailedRequest.h"
|
||||
#include "model/ReportTaskFailedResult.h"
|
||||
#include "model/ReportTaskSucceededRequest.h"
|
||||
@@ -46,6 +54,8 @@
|
||||
#include "model/StopExecutionResult.h"
|
||||
#include "model/UpdateFlowRequest.h"
|
||||
#include "model/UpdateFlowResult.h"
|
||||
#include "model/UpdateScheduleRequest.h"
|
||||
#include "model/UpdateScheduleResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -58,15 +68,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateFlowResult> CreateFlowOutcome;
|
||||
typedef std::future<CreateFlowOutcome> CreateFlowOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::CreateFlowRequest&, const CreateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateScheduleResult> CreateScheduleOutcome;
|
||||
typedef std::future<CreateScheduleOutcome> CreateScheduleOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::CreateScheduleRequest&, const CreateScheduleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateScheduleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFlowResult> DeleteFlowOutcome;
|
||||
typedef std::future<DeleteFlowOutcome> DeleteFlowOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::DeleteFlowRequest&, const DeleteFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteScheduleResult> DeleteScheduleOutcome;
|
||||
typedef std::future<DeleteScheduleOutcome> DeleteScheduleOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::DeleteScheduleRequest&, const DeleteScheduleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScheduleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeExecutionResult> DescribeExecutionOutcome;
|
||||
typedef std::future<DescribeExecutionOutcome> DescribeExecutionOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::DescribeExecutionRequest&, const DescribeExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExecutionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFlowResult> DescribeFlowOutcome;
|
||||
typedef std::future<DescribeFlowOutcome> DescribeFlowOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::DescribeFlowRequest&, const DescribeFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeScheduleResult> DescribeScheduleOutcome;
|
||||
typedef std::future<DescribeScheduleOutcome> DescribeScheduleOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::DescribeScheduleRequest&, const DescribeScheduleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScheduleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetExecutionHistoryResult> GetExecutionHistoryOutcome;
|
||||
typedef std::future<GetExecutionHistoryOutcome> GetExecutionHistoryOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::GetExecutionHistoryRequest&, const GetExecutionHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetExecutionHistoryAsyncHandler;
|
||||
@@ -76,6 +95,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFlowsResult> ListFlowsOutcome;
|
||||
typedef std::future<ListFlowsOutcome> ListFlowsOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::ListFlowsRequest&, const ListFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFlowsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListSchedulesResult> ListSchedulesOutcome;
|
||||
typedef std::future<ListSchedulesOutcome> ListSchedulesOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::ListSchedulesRequest&, const ListSchedulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSchedulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReportTaskFailedResult> ReportTaskFailedOutcome;
|
||||
typedef std::future<ReportTaskFailedOutcome> ReportTaskFailedOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::ReportTaskFailedRequest&, const ReportTaskFailedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportTaskFailedAsyncHandler;
|
||||
@@ -91,6 +113,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateFlowResult> UpdateFlowOutcome;
|
||||
typedef std::future<UpdateFlowOutcome> UpdateFlowOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::UpdateFlowRequest&, const UpdateFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateScheduleResult> UpdateScheduleOutcome;
|
||||
typedef std::future<UpdateScheduleOutcome> UpdateScheduleOutcomeCallable;
|
||||
typedef std::function<void(const FnfClient*, const Model::UpdateScheduleRequest&, const UpdateScheduleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateScheduleAsyncHandler;
|
||||
|
||||
FnfClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
FnfClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -99,15 +124,24 @@ namespace AlibabaCloud
|
||||
CreateFlowOutcome createFlow(const Model::CreateFlowRequest &request)const;
|
||||
void createFlowAsync(const Model::CreateFlowRequest& request, const CreateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFlowOutcomeCallable createFlowCallable(const Model::CreateFlowRequest& request) const;
|
||||
CreateScheduleOutcome createSchedule(const Model::CreateScheduleRequest &request)const;
|
||||
void createScheduleAsync(const Model::CreateScheduleRequest& request, const CreateScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateScheduleOutcomeCallable createScheduleCallable(const Model::CreateScheduleRequest& request) const;
|
||||
DeleteFlowOutcome deleteFlow(const Model::DeleteFlowRequest &request)const;
|
||||
void deleteFlowAsync(const Model::DeleteFlowRequest& request, const DeleteFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFlowOutcomeCallable deleteFlowCallable(const Model::DeleteFlowRequest& request) const;
|
||||
DeleteScheduleOutcome deleteSchedule(const Model::DeleteScheduleRequest &request)const;
|
||||
void deleteScheduleAsync(const Model::DeleteScheduleRequest& request, const DeleteScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteScheduleOutcomeCallable deleteScheduleCallable(const Model::DeleteScheduleRequest& request) const;
|
||||
DescribeExecutionOutcome describeExecution(const Model::DescribeExecutionRequest &request)const;
|
||||
void describeExecutionAsync(const Model::DescribeExecutionRequest& request, const DescribeExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeExecutionOutcomeCallable describeExecutionCallable(const Model::DescribeExecutionRequest& request) const;
|
||||
DescribeFlowOutcome describeFlow(const Model::DescribeFlowRequest &request)const;
|
||||
void describeFlowAsync(const Model::DescribeFlowRequest& request, const DescribeFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFlowOutcomeCallable describeFlowCallable(const Model::DescribeFlowRequest& request) const;
|
||||
DescribeScheduleOutcome describeSchedule(const Model::DescribeScheduleRequest &request)const;
|
||||
void describeScheduleAsync(const Model::DescribeScheduleRequest& request, const DescribeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeScheduleOutcomeCallable describeScheduleCallable(const Model::DescribeScheduleRequest& request) const;
|
||||
GetExecutionHistoryOutcome getExecutionHistory(const Model::GetExecutionHistoryRequest &request)const;
|
||||
void getExecutionHistoryAsync(const Model::GetExecutionHistoryRequest& request, const GetExecutionHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetExecutionHistoryOutcomeCallable getExecutionHistoryCallable(const Model::GetExecutionHistoryRequest& request) const;
|
||||
@@ -117,6 +151,9 @@ namespace AlibabaCloud
|
||||
ListFlowsOutcome listFlows(const Model::ListFlowsRequest &request)const;
|
||||
void listFlowsAsync(const Model::ListFlowsRequest& request, const ListFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFlowsOutcomeCallable listFlowsCallable(const Model::ListFlowsRequest& request) const;
|
||||
ListSchedulesOutcome listSchedules(const Model::ListSchedulesRequest &request)const;
|
||||
void listSchedulesAsync(const Model::ListSchedulesRequest& request, const ListSchedulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListSchedulesOutcomeCallable listSchedulesCallable(const Model::ListSchedulesRequest& request) const;
|
||||
ReportTaskFailedOutcome reportTaskFailed(const Model::ReportTaskFailedRequest &request)const;
|
||||
void reportTaskFailedAsync(const Model::ReportTaskFailedRequest& request, const ReportTaskFailedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReportTaskFailedOutcomeCallable reportTaskFailedCallable(const Model::ReportTaskFailedRequest& request) const;
|
||||
@@ -132,6 +169,9 @@ namespace AlibabaCloud
|
||||
UpdateFlowOutcome updateFlow(const Model::UpdateFlowRequest &request)const;
|
||||
void updateFlowAsync(const Model::UpdateFlowRequest& request, const UpdateFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFlowOutcomeCallable updateFlowCallable(const Model::UpdateFlowRequest& request) const;
|
||||
UpdateScheduleOutcome updateSchedule(const Model::UpdateScheduleRequest &request)const;
|
||||
void updateScheduleAsync(const Model::UpdateScheduleRequest& request, const UpdateScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateScheduleOutcomeCallable updateScheduleCallable(const Model::UpdateScheduleRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
66
fnf/include/alibabacloud/fnf/model/CreateScheduleRequest.h
Normal file
66
fnf/include/alibabacloud/fnf/model/CreateScheduleRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_CREATESCHEDULEREQUEST_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_CREATESCHEDULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT CreateScheduleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateScheduleRequest();
|
||||
~CreateScheduleRequest();
|
||||
|
||||
std::string getScheduleName()const;
|
||||
void setScheduleName(const std::string& scheduleName);
|
||||
std::string getCronExpression()const;
|
||||
void setCronExpression(const std::string& cronExpression);
|
||||
std::string getPayload()const;
|
||||
void setPayload(const std::string& payload);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
bool getEnable()const;
|
||||
void setEnable(bool enable);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getFlowName()const;
|
||||
void setFlowName(const std::string& flowName);
|
||||
|
||||
private:
|
||||
std::string scheduleName_;
|
||||
std::string cronExpression_;
|
||||
std::string payload_;
|
||||
std::string requestId_;
|
||||
bool enable_;
|
||||
std::string description_;
|
||||
std::string flowName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_CREATESCHEDULEREQUEST_H_
|
||||
65
fnf/include/alibabacloud/fnf/model/CreateScheduleResult.h
Normal file
65
fnf/include/alibabacloud/fnf/model/CreateScheduleResult.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_CREATESCHEDULERESULT_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_CREATESCHEDULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT CreateScheduleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateScheduleResult();
|
||||
explicit CreateScheduleResult(const std::string &payload);
|
||||
~CreateScheduleResult();
|
||||
std::string getDescription()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
bool getEnable()const;
|
||||
std::string getPayload()const;
|
||||
std::string getCronExpression()const;
|
||||
std::string getScheduleId()const;
|
||||
std::string getScheduleName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string description_;
|
||||
std::string createdTime_;
|
||||
std::string lastModifiedTime_;
|
||||
bool enable_;
|
||||
std::string payload_;
|
||||
std::string cronExpression_;
|
||||
std::string scheduleId_;
|
||||
std::string scheduleName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_CREATESCHEDULERESULT_H_
|
||||
54
fnf/include/alibabacloud/fnf/model/DeleteScheduleRequest.h
Normal file
54
fnf/include/alibabacloud/fnf/model/DeleteScheduleRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_DELETESCHEDULEREQUEST_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_DELETESCHEDULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT DeleteScheduleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteScheduleRequest();
|
||||
~DeleteScheduleRequest();
|
||||
|
||||
std::string getScheduleName()const;
|
||||
void setScheduleName(const std::string& scheduleName);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
std::string getFlowName()const;
|
||||
void setFlowName(const std::string& flowName);
|
||||
|
||||
private:
|
||||
std::string scheduleName_;
|
||||
std::string requestId_;
|
||||
std::string flowName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_DELETESCHEDULEREQUEST_H_
|
||||
49
fnf/include/alibabacloud/fnf/model/DeleteScheduleResult.h
Normal file
49
fnf/include/alibabacloud/fnf/model/DeleteScheduleResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_DELETESCHEDULERESULT_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_DELETESCHEDULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT DeleteScheduleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteScheduleResult();
|
||||
explicit DeleteScheduleResult(const std::string &payload);
|
||||
~DeleteScheduleResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_DELETESCHEDULERESULT_H_
|
||||
54
fnf/include/alibabacloud/fnf/model/DescribeScheduleRequest.h
Normal file
54
fnf/include/alibabacloud/fnf/model/DescribeScheduleRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULEREQUEST_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT DescribeScheduleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeScheduleRequest();
|
||||
~DescribeScheduleRequest();
|
||||
|
||||
std::string getScheduleName()const;
|
||||
void setScheduleName(const std::string& scheduleName);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
std::string getFlowName()const;
|
||||
void setFlowName(const std::string& flowName);
|
||||
|
||||
private:
|
||||
std::string scheduleName_;
|
||||
std::string requestId_;
|
||||
std::string flowName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULEREQUEST_H_
|
||||
65
fnf/include/alibabacloud/fnf/model/DescribeScheduleResult.h
Normal file
65
fnf/include/alibabacloud/fnf/model/DescribeScheduleResult.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULERESULT_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT DescribeScheduleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeScheduleResult();
|
||||
explicit DescribeScheduleResult(const std::string &payload);
|
||||
~DescribeScheduleResult();
|
||||
std::string getDescription()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
bool getEnable()const;
|
||||
std::string getPayload()const;
|
||||
std::string getCronExpression()const;
|
||||
std::string getScheduleId()const;
|
||||
std::string getScheduleName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string description_;
|
||||
std::string createdTime_;
|
||||
std::string lastModifiedTime_;
|
||||
bool enable_;
|
||||
std::string payload_;
|
||||
std::string cronExpression_;
|
||||
std::string scheduleId_;
|
||||
std::string scheduleName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_DESCRIBESCHEDULERESULT_H_
|
||||
57
fnf/include/alibabacloud/fnf/model/ListSchedulesRequest.h
Normal file
57
fnf/include/alibabacloud/fnf/model/ListSchedulesRequest.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESREQUEST_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT ListSchedulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListSchedulesRequest();
|
||||
~ListSchedulesRequest();
|
||||
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::string getFlowName()const;
|
||||
void setFlowName(const std::string& flowName);
|
||||
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::string requestId_;
|
||||
int limit_;
|
||||
std::string flowName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESREQUEST_H_
|
||||
64
fnf/include/alibabacloud/fnf/model/ListSchedulesResult.h
Normal file
64
fnf/include/alibabacloud/fnf/model/ListSchedulesResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESRESULT_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT ListSchedulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SchedulesItem
|
||||
{
|
||||
std::string description;
|
||||
std::string createdTime;
|
||||
std::string lastModifiedTime;
|
||||
bool enable;
|
||||
std::string payload;
|
||||
std::string cronExpression;
|
||||
std::string scheduleId;
|
||||
std::string scheduleName;
|
||||
};
|
||||
|
||||
|
||||
ListSchedulesResult();
|
||||
explicit ListSchedulesResult(const std::string &payload);
|
||||
~ListSchedulesResult();
|
||||
std::vector<SchedulesItem> getSchedules()const;
|
||||
std::string getNextToken()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<SchedulesItem> schedules_;
|
||||
std::string nextToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_LISTSCHEDULESRESULT_H_
|
||||
66
fnf/include/alibabacloud/fnf/model/UpdateScheduleRequest.h
Normal file
66
fnf/include/alibabacloud/fnf/model/UpdateScheduleRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULEREQUEST_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT UpdateScheduleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateScheduleRequest();
|
||||
~UpdateScheduleRequest();
|
||||
|
||||
std::string getScheduleName()const;
|
||||
void setScheduleName(const std::string& scheduleName);
|
||||
std::string getCronExpression()const;
|
||||
void setCronExpression(const std::string& cronExpression);
|
||||
std::string getPayload()const;
|
||||
void setPayload(const std::string& payload);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
bool getEnable()const;
|
||||
void setEnable(bool enable);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getFlowName()const;
|
||||
void setFlowName(const std::string& flowName);
|
||||
|
||||
private:
|
||||
std::string scheduleName_;
|
||||
std::string cronExpression_;
|
||||
std::string payload_;
|
||||
std::string requestId_;
|
||||
bool enable_;
|
||||
std::string description_;
|
||||
std::string flowName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULEREQUEST_H_
|
||||
65
fnf/include/alibabacloud/fnf/model/UpdateScheduleResult.h
Normal file
65
fnf/include/alibabacloud/fnf/model/UpdateScheduleResult.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULERESULT_H_
|
||||
#define ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/fnf/FnfExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Fnf
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FNF_EXPORT UpdateScheduleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateScheduleResult();
|
||||
explicit UpdateScheduleResult(const std::string &payload);
|
||||
~UpdateScheduleResult();
|
||||
std::string getDescription()const;
|
||||
std::string getCreatedTime()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
bool getEnable()const;
|
||||
std::string getPayload()const;
|
||||
std::string getCronExpression()const;
|
||||
std::string getScheduleId()const;
|
||||
std::string getScheduleName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string description_;
|
||||
std::string createdTime_;
|
||||
std::string lastModifiedTime_;
|
||||
bool enable_;
|
||||
std::string payload_;
|
||||
std::string cronExpression_;
|
||||
std::string scheduleId_;
|
||||
std::string scheduleName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FNF_MODEL_UPDATESCHEDULERESULT_H_
|
||||
@@ -31,21 +31,21 @@ FnfClient::FnfClient(const Credentials &credentials, const ClientConfiguration &
|
||||
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, "fnf");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FnfClient::FnfClient(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, "fnf");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FnfClient::FnfClient(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, "fnf");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FnfClient::~FnfClient()
|
||||
@@ -87,6 +87,42 @@ FnfClient::CreateFlowOutcomeCallable FnfClient::createFlowCallable(const CreateF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::CreateScheduleOutcome FnfClient::createSchedule(const CreateScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateScheduleOutcome(CreateScheduleResult(outcome.result()));
|
||||
else
|
||||
return CreateScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FnfClient::createScheduleAsync(const CreateScheduleRequest& request, const CreateScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FnfClient::CreateScheduleOutcomeCallable FnfClient::createScheduleCallable(const CreateScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::DeleteFlowOutcome FnfClient::deleteFlow(const DeleteFlowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -123,6 +159,42 @@ FnfClient::DeleteFlowOutcomeCallable FnfClient::deleteFlowCallable(const DeleteF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::DeleteScheduleOutcome FnfClient::deleteSchedule(const DeleteScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteScheduleOutcome(DeleteScheduleResult(outcome.result()));
|
||||
else
|
||||
return DeleteScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FnfClient::deleteScheduleAsync(const DeleteScheduleRequest& request, const DeleteScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FnfClient::DeleteScheduleOutcomeCallable FnfClient::deleteScheduleCallable(const DeleteScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::DescribeExecutionOutcome FnfClient::describeExecution(const DescribeExecutionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +267,42 @@ FnfClient::DescribeFlowOutcomeCallable FnfClient::describeFlowCallable(const Des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::DescribeScheduleOutcome FnfClient::describeSchedule(const DescribeScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeScheduleOutcome(DescribeScheduleResult(outcome.result()));
|
||||
else
|
||||
return DescribeScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FnfClient::describeScheduleAsync(const DescribeScheduleRequest& request, const DescribeScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FnfClient::DescribeScheduleOutcomeCallable FnfClient::describeScheduleCallable(const DescribeScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::GetExecutionHistoryOutcome FnfClient::getExecutionHistory(const GetExecutionHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,42 @@ FnfClient::ListFlowsOutcomeCallable FnfClient::listFlowsCallable(const ListFlows
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::ListSchedulesOutcome FnfClient::listSchedules(const ListSchedulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSchedulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSchedulesOutcome(ListSchedulesResult(outcome.result()));
|
||||
else
|
||||
return ListSchedulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FnfClient::listSchedulesAsync(const ListSchedulesRequest& request, const ListSchedulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSchedules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FnfClient::ListSchedulesOutcomeCallable FnfClient::listSchedulesCallable(const ListSchedulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSchedulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSchedules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::ReportTaskFailedOutcome FnfClient::reportTaskFailed(const ReportTaskFailedRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,3 +627,39 @@ FnfClient::UpdateFlowOutcomeCallable FnfClient::updateFlowCallable(const UpdateF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FnfClient::UpdateScheduleOutcome FnfClient::updateSchedule(const UpdateScheduleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateScheduleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateScheduleOutcome(UpdateScheduleResult(outcome.result()));
|
||||
else
|
||||
return UpdateScheduleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FnfClient::updateScheduleAsync(const UpdateScheduleRequest& request, const UpdateScheduleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateSchedule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FnfClient::UpdateScheduleOutcomeCallable FnfClient::updateScheduleCallable(const UpdateScheduleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateScheduleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateSchedule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
106
fnf/src/model/CreateScheduleRequest.cc
Normal file
106
fnf/src/model/CreateScheduleRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/fnf/model/CreateScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Fnf::Model::CreateScheduleRequest;
|
||||
|
||||
CreateScheduleRequest::CreateScheduleRequest() :
|
||||
RpcServiceRequest("fnf", "2019-03-15", "CreateSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateScheduleRequest::~CreateScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateScheduleRequest::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setScheduleName(const std::string& scheduleName)
|
||||
{
|
||||
scheduleName_ = scheduleName;
|
||||
setBodyParameter("ScheduleName", scheduleName);
|
||||
}
|
||||
|
||||
std::string CreateScheduleRequest::getCronExpression()const
|
||||
{
|
||||
return cronExpression_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setCronExpression(const std::string& cronExpression)
|
||||
{
|
||||
cronExpression_ = cronExpression;
|
||||
setBodyParameter("CronExpression", cronExpression);
|
||||
}
|
||||
|
||||
std::string CreateScheduleRequest::getPayload()const
|
||||
{
|
||||
return payload_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setPayload(const std::string& payload)
|
||||
{
|
||||
payload_ = payload;
|
||||
setBodyParameter("Payload", payload);
|
||||
}
|
||||
|
||||
std::string CreateScheduleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool CreateScheduleRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setBodyParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateScheduleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateScheduleRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void CreateScheduleRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setBodyParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
100
fnf/src/model/CreateScheduleResult.cc
Normal file
100
fnf/src/model/CreateScheduleResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/fnf/model/CreateScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Fnf;
|
||||
using namespace AlibabaCloud::Fnf::Model;
|
||||
|
||||
CreateScheduleResult::CreateScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateScheduleResult::CreateScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateScheduleResult::~CreateScheduleResult()
|
||||
{}
|
||||
|
||||
void CreateScheduleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScheduleName"].isNull())
|
||||
scheduleName_ = value["ScheduleName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["ScheduleId"].isNull())
|
||||
scheduleId_ = value["ScheduleId"].asString();
|
||||
if(!value["Payload"].isNull())
|
||||
payload_ = value["Payload"].asString();
|
||||
if(!value["CronExpression"].isNull())
|
||||
cronExpression_ = value["CronExpression"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
enable_ = value["Enable"].asString() == "true";
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getLastModifiedTime()const
|
||||
{
|
||||
return lastModifiedTime_;
|
||||
}
|
||||
|
||||
bool CreateScheduleResult::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getPayload()const
|
||||
{
|
||||
return payload_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getCronExpression()const
|
||||
{
|
||||
return cronExpression_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getScheduleId()const
|
||||
{
|
||||
return scheduleId_;
|
||||
}
|
||||
|
||||
std::string CreateScheduleResult::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
62
fnf/src/model/DeleteScheduleRequest.cc
Normal file
62
fnf/src/model/DeleteScheduleRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/fnf/model/DeleteScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Fnf::Model::DeleteScheduleRequest;
|
||||
|
||||
DeleteScheduleRequest::DeleteScheduleRequest() :
|
||||
RpcServiceRequest("fnf", "2019-03-15", "DeleteSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteScheduleRequest::~DeleteScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteScheduleRequest::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
void DeleteScheduleRequest::setScheduleName(const std::string& scheduleName)
|
||||
{
|
||||
scheduleName_ = scheduleName;
|
||||
setParameter("ScheduleName", scheduleName);
|
||||
}
|
||||
|
||||
std::string DeleteScheduleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteScheduleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteScheduleRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void DeleteScheduleRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
44
fnf/src/model/DeleteScheduleResult.cc
Normal file
44
fnf/src/model/DeleteScheduleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/fnf/model/DeleteScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Fnf;
|
||||
using namespace AlibabaCloud::Fnf::Model;
|
||||
|
||||
DeleteScheduleResult::DeleteScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteScheduleResult::DeleteScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteScheduleResult::~DeleteScheduleResult()
|
||||
{}
|
||||
|
||||
void DeleteScheduleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
fnf/src/model/DescribeScheduleRequest.cc
Normal file
62
fnf/src/model/DescribeScheduleRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/fnf/model/DescribeScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Fnf::Model::DescribeScheduleRequest;
|
||||
|
||||
DescribeScheduleRequest::DescribeScheduleRequest() :
|
||||
RpcServiceRequest("fnf", "2019-03-15", "DescribeSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeScheduleRequest::~DescribeScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeScheduleRequest::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
void DescribeScheduleRequest::setScheduleName(const std::string& scheduleName)
|
||||
{
|
||||
scheduleName_ = scheduleName;
|
||||
setParameter("ScheduleName", scheduleName);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void DescribeScheduleRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
100
fnf/src/model/DescribeScheduleResult.cc
Normal file
100
fnf/src/model/DescribeScheduleResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/fnf/model/DescribeScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Fnf;
|
||||
using namespace AlibabaCloud::Fnf::Model;
|
||||
|
||||
DescribeScheduleResult::DescribeScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScheduleResult::DescribeScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScheduleResult::~DescribeScheduleResult()
|
||||
{}
|
||||
|
||||
void DescribeScheduleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScheduleName"].isNull())
|
||||
scheduleName_ = value["ScheduleName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["ScheduleId"].isNull())
|
||||
scheduleId_ = value["ScheduleId"].asString();
|
||||
if(!value["Payload"].isNull())
|
||||
payload_ = value["Payload"].asString();
|
||||
if(!value["CronExpression"].isNull())
|
||||
cronExpression_ = value["CronExpression"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
enable_ = value["Enable"].asString() == "true";
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getLastModifiedTime()const
|
||||
{
|
||||
return lastModifiedTime_;
|
||||
}
|
||||
|
||||
bool DescribeScheduleResult::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getPayload()const
|
||||
{
|
||||
return payload_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getCronExpression()const
|
||||
{
|
||||
return cronExpression_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getScheduleId()const
|
||||
{
|
||||
return scheduleId_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleResult::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
73
fnf/src/model/ListSchedulesRequest.cc
Normal file
73
fnf/src/model/ListSchedulesRequest.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/fnf/model/ListSchedulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Fnf::Model::ListSchedulesRequest;
|
||||
|
||||
ListSchedulesRequest::ListSchedulesRequest() :
|
||||
RpcServiceRequest("fnf", "2019-03-15", "ListSchedules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListSchedulesRequest::~ListSchedulesRequest()
|
||||
{}
|
||||
|
||||
std::string ListSchedulesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListSchedulesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListSchedulesRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ListSchedulesRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int ListSchedulesRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListSchedulesRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::string ListSchedulesRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void ListSchedulesRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
78
fnf/src/model/ListSchedulesResult.cc
Normal file
78
fnf/src/model/ListSchedulesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/fnf/model/ListSchedulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Fnf;
|
||||
using namespace AlibabaCloud::Fnf::Model;
|
||||
|
||||
ListSchedulesResult::ListSchedulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSchedulesResult::ListSchedulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSchedulesResult::~ListSchedulesResult()
|
||||
{}
|
||||
|
||||
void ListSchedulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSchedulesNode = value["Schedules"]["SchedulesItem"];
|
||||
for (auto valueSchedulesSchedulesItem : allSchedulesNode)
|
||||
{
|
||||
SchedulesItem schedulesObject;
|
||||
if(!valueSchedulesSchedulesItem["ScheduleName"].isNull())
|
||||
schedulesObject.scheduleName = valueSchedulesSchedulesItem["ScheduleName"].asString();
|
||||
if(!valueSchedulesSchedulesItem["Description"].isNull())
|
||||
schedulesObject.description = valueSchedulesSchedulesItem["Description"].asString();
|
||||
if(!valueSchedulesSchedulesItem["ScheduleId"].isNull())
|
||||
schedulesObject.scheduleId = valueSchedulesSchedulesItem["ScheduleId"].asString();
|
||||
if(!valueSchedulesSchedulesItem["Payload"].isNull())
|
||||
schedulesObject.payload = valueSchedulesSchedulesItem["Payload"].asString();
|
||||
if(!valueSchedulesSchedulesItem["CronExpression"].isNull())
|
||||
schedulesObject.cronExpression = valueSchedulesSchedulesItem["CronExpression"].asString();
|
||||
if(!valueSchedulesSchedulesItem["Enable"].isNull())
|
||||
schedulesObject.enable = valueSchedulesSchedulesItem["Enable"].asString() == "true";
|
||||
if(!valueSchedulesSchedulesItem["CreatedTime"].isNull())
|
||||
schedulesObject.createdTime = valueSchedulesSchedulesItem["CreatedTime"].asString();
|
||||
if(!valueSchedulesSchedulesItem["LastModifiedTime"].isNull())
|
||||
schedulesObject.lastModifiedTime = valueSchedulesSchedulesItem["LastModifiedTime"].asString();
|
||||
schedules_.push_back(schedulesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListSchedulesResult::SchedulesItem> ListSchedulesResult::getSchedules()const
|
||||
{
|
||||
return schedules_;
|
||||
}
|
||||
|
||||
std::string ListSchedulesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
106
fnf/src/model/UpdateScheduleRequest.cc
Normal file
106
fnf/src/model/UpdateScheduleRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/fnf/model/UpdateScheduleRequest.h>
|
||||
|
||||
using AlibabaCloud::Fnf::Model::UpdateScheduleRequest;
|
||||
|
||||
UpdateScheduleRequest::UpdateScheduleRequest() :
|
||||
RpcServiceRequest("fnf", "2019-03-15", "UpdateSchedule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateScheduleRequest::~UpdateScheduleRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateScheduleRequest::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setScheduleName(const std::string& scheduleName)
|
||||
{
|
||||
scheduleName_ = scheduleName;
|
||||
setBodyParameter("ScheduleName", scheduleName);
|
||||
}
|
||||
|
||||
std::string UpdateScheduleRequest::getCronExpression()const
|
||||
{
|
||||
return cronExpression_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setCronExpression(const std::string& cronExpression)
|
||||
{
|
||||
cronExpression_ = cronExpression;
|
||||
setBodyParameter("CronExpression", cronExpression);
|
||||
}
|
||||
|
||||
std::string UpdateScheduleRequest::getPayload()const
|
||||
{
|
||||
return payload_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setPayload(const std::string& payload)
|
||||
{
|
||||
payload_ = payload;
|
||||
setBodyParameter("Payload", payload);
|
||||
}
|
||||
|
||||
std::string UpdateScheduleRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool UpdateScheduleRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setBodyParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateScheduleRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateScheduleRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void UpdateScheduleRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setBodyParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
100
fnf/src/model/UpdateScheduleResult.cc
Normal file
100
fnf/src/model/UpdateScheduleResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/fnf/model/UpdateScheduleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Fnf;
|
||||
using namespace AlibabaCloud::Fnf::Model;
|
||||
|
||||
UpdateScheduleResult::UpdateScheduleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateScheduleResult::UpdateScheduleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateScheduleResult::~UpdateScheduleResult()
|
||||
{}
|
||||
|
||||
void UpdateScheduleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ScheduleName"].isNull())
|
||||
scheduleName_ = value["ScheduleName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["ScheduleId"].isNull())
|
||||
scheduleId_ = value["ScheduleId"].asString();
|
||||
if(!value["Payload"].isNull())
|
||||
payload_ = value["Payload"].asString();
|
||||
if(!value["CronExpression"].isNull())
|
||||
cronExpression_ = value["CronExpression"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
enable_ = value["Enable"].asString() == "true";
|
||||
if(!value["CreatedTime"].isNull())
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getCreatedTime()const
|
||||
{
|
||||
return createdTime_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getLastModifiedTime()const
|
||||
{
|
||||
return lastModifiedTime_;
|
||||
}
|
||||
|
||||
bool UpdateScheduleResult::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getPayload()const
|
||||
{
|
||||
return payload_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getCronExpression()const
|
||||
{
|
||||
return cronExpression_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getScheduleId()const
|
||||
{
|
||||
return scheduleId_;
|
||||
}
|
||||
|
||||
std::string UpdateScheduleResult::getScheduleName()const
|
||||
{
|
||||
return scheduleName_;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,16 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/CreateClusterResult.h
|
||||
include/alibabacloud/hbase/model/CreateHbaseHaSlbRequest.h
|
||||
include/alibabacloud/hbase/model/CreateHbaseHaSlbResult.h
|
||||
include/alibabacloud/hbase/model/CreateMultiZoneClusterRequest.h
|
||||
include/alibabacloud/hbase/model/CreateMultiZoneClusterResult.h
|
||||
include/alibabacloud/hbase/model/CreateRestorePlanRequest.h
|
||||
include/alibabacloud/hbase/model/CreateRestorePlanResult.h
|
||||
include/alibabacloud/hbase/model/DeleteHbaseHaSlbRequest.h
|
||||
include/alibabacloud/hbase/model/DeleteHbaseHaSlbResult.h
|
||||
include/alibabacloud/hbase/model/DeleteInstanceRequest.h
|
||||
include/alibabacloud/hbase/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/hbase/model/DeleteMultiZoneClusterRequest.h
|
||||
include/alibabacloud/hbase/model/DeleteMultiZoneClusterResult.h
|
||||
include/alibabacloud/hbase/model/DeleteUserHdfsInfoRequest.h
|
||||
include/alibabacloud/hbase/model/DeleteUserHdfsInfoResult.h
|
||||
include/alibabacloud/hbase/model/DescribeAvailableResourceRequest.h
|
||||
@@ -130,12 +134,16 @@ set(hbase_src
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/CreateHbaseHaSlbRequest.cc
|
||||
src/model/CreateHbaseHaSlbResult.cc
|
||||
src/model/CreateMultiZoneClusterRequest.cc
|
||||
src/model/CreateMultiZoneClusterResult.cc
|
||||
src/model/CreateRestorePlanRequest.cc
|
||||
src/model/CreateRestorePlanResult.cc
|
||||
src/model/DeleteHbaseHaSlbRequest.cc
|
||||
src/model/DeleteHbaseHaSlbResult.cc
|
||||
src/model/DeleteInstanceRequest.cc
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/DeleteMultiZoneClusterRequest.cc
|
||||
src/model/DeleteMultiZoneClusterResult.cc
|
||||
src/model/DeleteUserHdfsInfoRequest.cc
|
||||
src/model/DeleteUserHdfsInfoResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
|
||||
@@ -32,12 +32,16 @@
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/CreateHbaseHaSlbRequest.h"
|
||||
#include "model/CreateHbaseHaSlbResult.h"
|
||||
#include "model/CreateMultiZoneClusterRequest.h"
|
||||
#include "model/CreateMultiZoneClusterResult.h"
|
||||
#include "model/CreateRestorePlanRequest.h"
|
||||
#include "model/CreateRestorePlanResult.h"
|
||||
#include "model/DeleteHbaseHaSlbRequest.h"
|
||||
#include "model/DeleteHbaseHaSlbResult.h"
|
||||
#include "model/DeleteInstanceRequest.h"
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/DeleteMultiZoneClusterRequest.h"
|
||||
#include "model/DeleteMultiZoneClusterResult.h"
|
||||
#include "model/DeleteUserHdfsInfoRequest.h"
|
||||
#include "model/DeleteUserHdfsInfoResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
@@ -142,6 +146,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateHbaseHaSlbResult> CreateHbaseHaSlbOutcome;
|
||||
typedef std::future<CreateHbaseHaSlbOutcome> CreateHbaseHaSlbOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateHbaseHaSlbRequest&, const CreateHbaseHaSlbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHbaseHaSlbAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMultiZoneClusterResult> CreateMultiZoneClusterOutcome;
|
||||
typedef std::future<CreateMultiZoneClusterOutcome> CreateMultiZoneClusterOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateMultiZoneClusterRequest&, const CreateMultiZoneClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMultiZoneClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRestorePlanResult> CreateRestorePlanOutcome;
|
||||
typedef std::future<CreateRestorePlanOutcome> CreateRestorePlanOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateRestorePlanRequest&, const CreateRestorePlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRestorePlanAsyncHandler;
|
||||
@@ -151,6 +158,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
|
||||
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMultiZoneClusterResult> DeleteMultiZoneClusterOutcome;
|
||||
typedef std::future<DeleteMultiZoneClusterOutcome> DeleteMultiZoneClusterOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DeleteMultiZoneClusterRequest&, const DeleteMultiZoneClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMultiZoneClusterAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserHdfsInfoResult> DeleteUserHdfsInfoOutcome;
|
||||
typedef std::future<DeleteUserHdfsInfoOutcome> DeleteUserHdfsInfoOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DeleteUserHdfsInfoRequest&, const DeleteUserHdfsInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserHdfsInfoAsyncHandler;
|
||||
@@ -291,6 +301,9 @@ namespace AlibabaCloud
|
||||
CreateHbaseHaSlbOutcome createHbaseHaSlb(const Model::CreateHbaseHaSlbRequest &request)const;
|
||||
void createHbaseHaSlbAsync(const Model::CreateHbaseHaSlbRequest& request, const CreateHbaseHaSlbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateHbaseHaSlbOutcomeCallable createHbaseHaSlbCallable(const Model::CreateHbaseHaSlbRequest& request) const;
|
||||
CreateMultiZoneClusterOutcome createMultiZoneCluster(const Model::CreateMultiZoneClusterRequest &request)const;
|
||||
void createMultiZoneClusterAsync(const Model::CreateMultiZoneClusterRequest& request, const CreateMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMultiZoneClusterOutcomeCallable createMultiZoneClusterCallable(const Model::CreateMultiZoneClusterRequest& request) const;
|
||||
CreateRestorePlanOutcome createRestorePlan(const Model::CreateRestorePlanRequest &request)const;
|
||||
void createRestorePlanAsync(const Model::CreateRestorePlanRequest& request, const CreateRestorePlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRestorePlanOutcomeCallable createRestorePlanCallable(const Model::CreateRestorePlanRequest& request) const;
|
||||
@@ -300,6 +313,9 @@ namespace AlibabaCloud
|
||||
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
|
||||
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
|
||||
DeleteMultiZoneClusterOutcome deleteMultiZoneCluster(const Model::DeleteMultiZoneClusterRequest &request)const;
|
||||
void deleteMultiZoneClusterAsync(const Model::DeleteMultiZoneClusterRequest& request, const DeleteMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMultiZoneClusterOutcomeCallable deleteMultiZoneClusterCallable(const Model::DeleteMultiZoneClusterRequest& request) const;
|
||||
DeleteUserHdfsInfoOutcome deleteUserHdfsInfo(const Model::DeleteUserHdfsInfoRequest &request)const;
|
||||
void deleteUserHdfsInfoAsync(const Model::DeleteUserHdfsInfoRequest& request, const DeleteUserHdfsInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserHdfsInfoOutcomeCallable deleteUserHdfsInfoCallable(const Model::DeleteUserHdfsInfoRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CREATEMULTIZONECLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_CREATEMULTIZONECLUSTERREQUEST_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 CreateMultiZoneClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMultiZoneClusterRequest();
|
||||
~CreateMultiZoneClusterRequest();
|
||||
|
||||
std::string getArchVersion()const;
|
||||
void setArchVersion(const std::string& archVersion);
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
std::string getEngineVersion()const;
|
||||
void setEngineVersion(const std::string& engineVersion);
|
||||
std::string getLogDiskType()const;
|
||||
void setLogDiskType(const std::string& logDiskType);
|
||||
std::string getPrimaryVSwitchId()const;
|
||||
void setPrimaryVSwitchId(const std::string& primaryVSwitchId);
|
||||
std::string getLogInstanceType()const;
|
||||
void setLogInstanceType(const std::string& logInstanceType);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
int getLogNodeCount()const;
|
||||
void setLogNodeCount(int logNodeCount);
|
||||
std::string getSecurityIPList()const;
|
||||
void setSecurityIPList(const std::string& securityIPList);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getCoreDiskType()const;
|
||||
void setCoreDiskType(const std::string& coreDiskType);
|
||||
std::string getArbiterZoneId()const;
|
||||
void setArbiterZoneId(const std::string& arbiterZoneId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getMultiZoneCombination()const;
|
||||
void setMultiZoneCombination(const std::string& multiZoneCombination);
|
||||
std::string getPrimaryZoneId()const;
|
||||
void setPrimaryZoneId(const std::string& primaryZoneId);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getStandbyVSwitchId()const;
|
||||
void setStandbyVSwitchId(const std::string& standbyVSwitchId);
|
||||
std::string getStandbyZoneId()const;
|
||||
void setStandbyZoneId(const std::string& standbyZoneId);
|
||||
std::string getMasterInstanceType()const;
|
||||
void setMasterInstanceType(const std::string& masterInstanceType);
|
||||
int getCoreNodeCount()const;
|
||||
void setCoreNodeCount(int coreNodeCount);
|
||||
int getLogDiskSize()const;
|
||||
void setLogDiskSize(int logDiskSize);
|
||||
std::string getCoreInstanceType()const;
|
||||
void setCoreInstanceType(const std::string& coreInstanceType);
|
||||
int getCoreDiskSize()const;
|
||||
void setCoreDiskSize(int coreDiskSize);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
std::string getArbiterVSwitchId()const;
|
||||
void setArbiterVSwitchId(const std::string& arbiterVSwitchId);
|
||||
|
||||
private:
|
||||
std::string archVersion_;
|
||||
std::string clusterName_;
|
||||
std::string engineVersion_;
|
||||
std::string logDiskType_;
|
||||
std::string primaryVSwitchId_;
|
||||
std::string logInstanceType_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
int logNodeCount_;
|
||||
std::string securityIPList_;
|
||||
std::string periodUnit_;
|
||||
std::string coreDiskType_;
|
||||
std::string arbiterZoneId_;
|
||||
std::string clientToken_;
|
||||
std::string multiZoneCombination_;
|
||||
std::string primaryZoneId_;
|
||||
std::string engine_;
|
||||
std::string regionId_;
|
||||
std::string standbyVSwitchId_;
|
||||
std::string standbyZoneId_;
|
||||
std::string masterInstanceType_;
|
||||
int coreNodeCount_;
|
||||
int logDiskSize_;
|
||||
std::string coreInstanceType_;
|
||||
int coreDiskSize_;
|
||||
std::string vpcId_;
|
||||
std::string payType_;
|
||||
std::string arbiterVSwitchId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_CREATEMULTIZONECLUSTERREQUEST_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_HBASE_MODEL_CREATEMULTIZONECLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_CREATEMULTIZONECLUSTERRESULT_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 CreateMultiZoneClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateMultiZoneClusterResult();
|
||||
explicit CreateMultiZoneClusterResult(const std::string &payload);
|
||||
~CreateMultiZoneClusterResult();
|
||||
std::string getClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_CREATEMULTIZONECLUSTERRESULT_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_DELETEMULTIZONECLUSTERREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DELETEMULTIZONECLUSTERREQUEST_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 DeleteMultiZoneClusterRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteMultiZoneClusterRequest();
|
||||
~DeleteMultiZoneClusterRequest();
|
||||
|
||||
bool getImmediateDeleteFlag()const;
|
||||
void setImmediateDeleteFlag(bool immediateDeleteFlag);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
bool immediateDeleteFlag_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DELETEMULTIZONECLUSTERREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_DELETEMULTIZONECLUSTERRESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DELETEMULTIZONECLUSTERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT ModifyDeleteVulWhitelistResult : public ServiceResult
|
||||
class ALIBABACLOUD_HBASE_EXPORT DeleteMultiZoneClusterResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeleteVulWhitelistResult();
|
||||
explicit ModifyDeleteVulWhitelistResult(const std::string &payload);
|
||||
~ModifyDeleteVulWhitelistResult();
|
||||
DeleteMultiZoneClusterResult();
|
||||
explicit DeleteMultiZoneClusterResult(const std::string &payload);
|
||||
~DeleteMultiZoneClusterResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DELETEMULTIZONECLUSTERRESULT_H_
|
||||
@@ -58,6 +58,7 @@ namespace AlibabaCloud
|
||||
InstanceTypeDetail instanceTypeDetail;
|
||||
DBInstanceStorageRange dBInstanceStorageRange;
|
||||
std::string instanceType;
|
||||
int maxCoreCount;
|
||||
};
|
||||
std::string storageType;
|
||||
std::vector<SupportedStorageType::CoreResource> coreResources;
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string parentId;
|
||||
std::string coreDiskCount;
|
||||
int masterDiskSize;
|
||||
std::string expireTimeUTC;
|
||||
std::string zoneId;
|
||||
|
||||
@@ -231,6 +231,42 @@ HBaseClient::CreateHbaseHaSlbOutcomeCallable HBaseClient::createHbaseHaSlbCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateMultiZoneClusterOutcome HBaseClient::createMultiZoneCluster(const CreateMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMultiZoneClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMultiZoneClusterOutcome(CreateMultiZoneClusterResult(outcome.result()));
|
||||
else
|
||||
return CreateMultiZoneClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::createMultiZoneClusterAsync(const CreateMultiZoneClusterRequest& request, const CreateMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMultiZoneCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::CreateMultiZoneClusterOutcomeCallable HBaseClient::createMultiZoneClusterCallable(const CreateMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMultiZoneClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMultiZoneCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateRestorePlanOutcome HBaseClient::createRestorePlan(const CreateRestorePlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,42 @@ HBaseClient::DeleteInstanceOutcomeCallable HBaseClient::deleteInstanceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DeleteMultiZoneClusterOutcome HBaseClient::deleteMultiZoneCluster(const DeleteMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMultiZoneClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMultiZoneClusterOutcome(DeleteMultiZoneClusterResult(outcome.result()));
|
||||
else
|
||||
return DeleteMultiZoneClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::deleteMultiZoneClusterAsync(const DeleteMultiZoneClusterRequest& request, const DeleteMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMultiZoneCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DeleteMultiZoneClusterOutcomeCallable HBaseClient::deleteMultiZoneClusterCallable(const DeleteMultiZoneClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMultiZoneClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMultiZoneCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DeleteUserHdfsInfoOutcome HBaseClient::deleteUserHdfsInfo(const DeleteUserHdfsInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
337
hbase/src/model/CreateMultiZoneClusterRequest.cc
Normal file
337
hbase/src/model/CreateMultiZoneClusterRequest.cc
Normal file
@@ -0,0 +1,337 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/CreateMultiZoneClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::CreateMultiZoneClusterRequest;
|
||||
|
||||
CreateMultiZoneClusterRequest::CreateMultiZoneClusterRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "CreateMultiZoneCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMultiZoneClusterRequest::~CreateMultiZoneClusterRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getArchVersion()const
|
||||
{
|
||||
return archVersion_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setArchVersion(const std::string& archVersion)
|
||||
{
|
||||
archVersion_ = archVersion;
|
||||
setParameter("ArchVersion", archVersion);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getLogDiskType()const
|
||||
{
|
||||
return logDiskType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setLogDiskType(const std::string& logDiskType)
|
||||
{
|
||||
logDiskType_ = logDiskType;
|
||||
setParameter("LogDiskType", logDiskType);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getPrimaryVSwitchId()const
|
||||
{
|
||||
return primaryVSwitchId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setPrimaryVSwitchId(const std::string& primaryVSwitchId)
|
||||
{
|
||||
primaryVSwitchId_ = primaryVSwitchId;
|
||||
setParameter("PrimaryVSwitchId", primaryVSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getLogInstanceType()const
|
||||
{
|
||||
return logInstanceType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setLogInstanceType(const std::string& logInstanceType)
|
||||
{
|
||||
logInstanceType_ = logInstanceType;
|
||||
setParameter("LogInstanceType", logInstanceType);
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getLogNodeCount()const
|
||||
{
|
||||
return logNodeCount_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setLogNodeCount(int logNodeCount)
|
||||
{
|
||||
logNodeCount_ = logNodeCount;
|
||||
setParameter("LogNodeCount", std::to_string(logNodeCount));
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getCoreDiskType()const
|
||||
{
|
||||
return coreDiskType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setCoreDiskType(const std::string& coreDiskType)
|
||||
{
|
||||
coreDiskType_ = coreDiskType;
|
||||
setParameter("CoreDiskType", coreDiskType);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getArbiterZoneId()const
|
||||
{
|
||||
return arbiterZoneId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setArbiterZoneId(const std::string& arbiterZoneId)
|
||||
{
|
||||
arbiterZoneId_ = arbiterZoneId;
|
||||
setParameter("ArbiterZoneId", arbiterZoneId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getMultiZoneCombination()const
|
||||
{
|
||||
return multiZoneCombination_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setMultiZoneCombination(const std::string& multiZoneCombination)
|
||||
{
|
||||
multiZoneCombination_ = multiZoneCombination;
|
||||
setParameter("MultiZoneCombination", multiZoneCombination);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getPrimaryZoneId()const
|
||||
{
|
||||
return primaryZoneId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setPrimaryZoneId(const std::string& primaryZoneId)
|
||||
{
|
||||
primaryZoneId_ = primaryZoneId;
|
||||
setParameter("PrimaryZoneId", primaryZoneId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getStandbyVSwitchId()const
|
||||
{
|
||||
return standbyVSwitchId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setStandbyVSwitchId(const std::string& standbyVSwitchId)
|
||||
{
|
||||
standbyVSwitchId_ = standbyVSwitchId;
|
||||
setParameter("StandbyVSwitchId", standbyVSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getStandbyZoneId()const
|
||||
{
|
||||
return standbyZoneId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setStandbyZoneId(const std::string& standbyZoneId)
|
||||
{
|
||||
standbyZoneId_ = standbyZoneId;
|
||||
setParameter("StandbyZoneId", standbyZoneId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setMasterInstanceType(const std::string& masterInstanceType)
|
||||
{
|
||||
masterInstanceType_ = masterInstanceType;
|
||||
setParameter("MasterInstanceType", masterInstanceType);
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getCoreNodeCount()const
|
||||
{
|
||||
return coreNodeCount_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setCoreNodeCount(int coreNodeCount)
|
||||
{
|
||||
coreNodeCount_ = coreNodeCount;
|
||||
setParameter("CoreNodeCount", std::to_string(coreNodeCount));
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getLogDiskSize()const
|
||||
{
|
||||
return logDiskSize_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setLogDiskSize(int logDiskSize)
|
||||
{
|
||||
logDiskSize_ = logDiskSize;
|
||||
setParameter("LogDiskSize", std::to_string(logDiskSize));
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setCoreInstanceType(const std::string& coreInstanceType)
|
||||
{
|
||||
coreInstanceType_ = coreInstanceType;
|
||||
setParameter("CoreInstanceType", coreInstanceType);
|
||||
}
|
||||
|
||||
int CreateMultiZoneClusterRequest::getCoreDiskSize()const
|
||||
{
|
||||
return coreDiskSize_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setCoreDiskSize(int coreDiskSize)
|
||||
{
|
||||
coreDiskSize_ = coreDiskSize;
|
||||
setParameter("CoreDiskSize", std::to_string(coreDiskSize));
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterRequest::getArbiterVSwitchId()const
|
||||
{
|
||||
return arbiterVSwitchId_;
|
||||
}
|
||||
|
||||
void CreateMultiZoneClusterRequest::setArbiterVSwitchId(const std::string& arbiterVSwitchId)
|
||||
{
|
||||
arbiterVSwitchId_ = arbiterVSwitchId;
|
||||
setParameter("ArbiterVSwitchId", arbiterVSwitchId);
|
||||
}
|
||||
|
||||
58
hbase/src/model/CreateMultiZoneClusterResult.cc
Normal file
58
hbase/src/model/CreateMultiZoneClusterResult.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/hbase/model/CreateMultiZoneClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
CreateMultiZoneClusterResult::CreateMultiZoneClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMultiZoneClusterResult::CreateMultiZoneClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMultiZoneClusterResult::~CreateMultiZoneClusterResult()
|
||||
{}
|
||||
|
||||
void CreateMultiZoneClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateMultiZoneClusterResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/DeleteMultiZoneClusterRequest.cc
Normal file
51
hbase/src/model/DeleteMultiZoneClusterRequest.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/DeleteMultiZoneClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DeleteMultiZoneClusterRequest;
|
||||
|
||||
DeleteMultiZoneClusterRequest::DeleteMultiZoneClusterRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DeleteMultiZoneCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMultiZoneClusterRequest::~DeleteMultiZoneClusterRequest()
|
||||
{}
|
||||
|
||||
bool DeleteMultiZoneClusterRequest::getImmediateDeleteFlag()const
|
||||
{
|
||||
return immediateDeleteFlag_;
|
||||
}
|
||||
|
||||
void DeleteMultiZoneClusterRequest::setImmediateDeleteFlag(bool immediateDeleteFlag)
|
||||
{
|
||||
immediateDeleteFlag_ = immediateDeleteFlag;
|
||||
setParameter("ImmediateDeleteFlag", immediateDeleteFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteMultiZoneClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteMultiZoneClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
@@ -14,34 +14,30 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h>
|
||||
#include <alibabacloud/hbase/model/DeleteMultiZoneClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult() :
|
||||
DeleteMultiZoneClusterResult::DeleteMultiZoneClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult(const std::string &payload) :
|
||||
DeleteMultiZoneClusterResult::DeleteMultiZoneClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDeleteVulWhitelistResult::~ModifyDeleteVulWhitelistResult()
|
||||
DeleteMultiZoneClusterResult::~DeleteMultiZoneClusterResult()
|
||||
{}
|
||||
|
||||
void ModifyDeleteVulWhitelistResult::parse(const std::string &payload)
|
||||
void DeleteMultiZoneClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
@@ -77,6 +77,8 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].isNull())
|
||||
coreResourcesObject.maxCoreCount = std::stoi(allSupportedStorageTypesNodeCoreResourcesCoreResource["MaxCoreCount"].asString());
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
|
||||
@@ -109,6 +109,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.moduleId = std::stoi(valueInstancesInstance["ModuleId"].asString());
|
||||
if(!valueInstancesInstance["ModuleStackVersion"].isNull())
|
||||
instancesObject.moduleStackVersion = valueInstancesInstance["ModuleStackVersion"].asString();
|
||||
if(!valueInstancesInstance["CoreDiskCount"].isNull())
|
||||
instancesObject.coreDiskCount = valueInstancesInstance["CoreDiskCount"].asString();
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,9 @@ set(nlp-automl_public_header_model
|
||||
include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h
|
||||
include/alibabacloud/nlp-automl/model/RunContactReviewResult.h
|
||||
include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h
|
||||
include/alibabacloud/nlp-automl/model/RunPreTrainServiceResult.h )
|
||||
include/alibabacloud/nlp-automl/model/RunPreTrainServiceResult.h
|
||||
include/alibabacloud/nlp-automl/model/RunSmartCallServiceRequest.h
|
||||
include/alibabacloud/nlp-automl/model/RunSmartCallServiceResult.h )
|
||||
|
||||
set(nlp-automl_src
|
||||
src/Nlp-automlClient.cc
|
||||
@@ -43,7 +45,9 @@ set(nlp-automl_src
|
||||
src/model/RunContactReviewRequest.cc
|
||||
src/model/RunContactReviewResult.cc
|
||||
src/model/RunPreTrainServiceRequest.cc
|
||||
src/model/RunPreTrainServiceResult.cc )
|
||||
src/model/RunPreTrainServiceResult.cc
|
||||
src/model/RunSmartCallServiceRequest.cc
|
||||
src/model/RunSmartCallServiceResult.cc )
|
||||
|
||||
add_library(nlp-automl ${LIB_TYPE}
|
||||
${nlp-automl_public_header}
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/RunContactReviewResult.h"
|
||||
#include "model/RunPreTrainServiceRequest.h"
|
||||
#include "model/RunPreTrainServiceResult.h"
|
||||
#include "model/RunSmartCallServiceRequest.h"
|
||||
#include "model/RunSmartCallServiceResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -56,6 +58,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RunPreTrainServiceResult> RunPreTrainServiceOutcome;
|
||||
typedef std::future<RunPreTrainServiceOutcome> RunPreTrainServiceOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::RunPreTrainServiceRequest&, const RunPreTrainServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunPreTrainServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunSmartCallServiceResult> RunSmartCallServiceOutcome;
|
||||
typedef std::future<RunSmartCallServiceOutcome> RunSmartCallServiceOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::RunSmartCallServiceRequest&, const RunSmartCallServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunSmartCallServiceAsyncHandler;
|
||||
|
||||
Nlp_automlClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Nlp_automlClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -76,6 +81,9 @@ namespace AlibabaCloud
|
||||
RunPreTrainServiceOutcome runPreTrainService(const Model::RunPreTrainServiceRequest &request)const;
|
||||
void runPreTrainServiceAsync(const Model::RunPreTrainServiceRequest& request, const RunPreTrainServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunPreTrainServiceOutcomeCallable runPreTrainServiceCallable(const Model::RunPreTrainServiceRequest& request) const;
|
||||
RunSmartCallServiceOutcome runSmartCallService(const Model::RunSmartCallServiceRequest &request)const;
|
||||
void runSmartCallServiceAsync(const Model::RunSmartCallServiceRequest& request, const RunSmartCallServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunSmartCallServiceOutcomeCallable runSmartCallServiceCallable(const Model::RunSmartCallServiceRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT RunSmartCallServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RunSmartCallServiceRequest();
|
||||
~RunSmartCallServiceRequest();
|
||||
|
||||
std::string getSessionId()const;
|
||||
void setSessionId(const std::string& sessionId);
|
||||
long getRobotId()const;
|
||||
void setRobotId(long robotId);
|
||||
std::string getParamContent()const;
|
||||
void setParamContent(const std::string& paramContent);
|
||||
std::string getServiceName()const;
|
||||
void setServiceName(const std::string& serviceName);
|
||||
|
||||
private:
|
||||
std::string sessionId_;
|
||||
long robotId_;
|
||||
std::string paramContent_;
|
||||
std::string serviceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT RunSmartCallServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RunSmartCallServiceResult();
|
||||
explicit RunSmartCallServiceResult(const std::string &payload);
|
||||
~RunSmartCallServiceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_RUNSMARTCALLSERVICERESULT_H_
|
||||
@@ -231,3 +231,39 @@ Nlp_automlClient::RunPreTrainServiceOutcomeCallable Nlp_automlClient::runPreTrai
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Nlp_automlClient::RunSmartCallServiceOutcome Nlp_automlClient::runSmartCallService(const RunSmartCallServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RunSmartCallServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RunSmartCallServiceOutcome(RunSmartCallServiceResult(outcome.result()));
|
||||
else
|
||||
return RunSmartCallServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Nlp_automlClient::runSmartCallServiceAsync(const RunSmartCallServiceRequest& request, const RunSmartCallServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, runSmartCallService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Nlp_automlClient::RunSmartCallServiceOutcomeCallable Nlp_automlClient::runSmartCallServiceCallable(const RunSmartCallServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RunSmartCallServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->runSmartCallService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
73
nlp-automl/src/model/RunSmartCallServiceRequest.cc
Normal file
73
nlp-automl/src/model/RunSmartCallServiceRequest.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/nlp-automl/model/RunSmartCallServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Nlp_automl::Model::RunSmartCallServiceRequest;
|
||||
|
||||
RunSmartCallServiceRequest::RunSmartCallServiceRequest() :
|
||||
RpcServiceRequest("nlp-automl", "2019-11-11", "RunSmartCallService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RunSmartCallServiceRequest::~RunSmartCallServiceRequest()
|
||||
{}
|
||||
|
||||
std::string RunSmartCallServiceRequest::getSessionId()const
|
||||
{
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
void RunSmartCallServiceRequest::setSessionId(const std::string& sessionId)
|
||||
{
|
||||
sessionId_ = sessionId;
|
||||
setBodyParameter("SessionId", sessionId);
|
||||
}
|
||||
|
||||
long RunSmartCallServiceRequest::getRobotId()const
|
||||
{
|
||||
return robotId_;
|
||||
}
|
||||
|
||||
void RunSmartCallServiceRequest::setRobotId(long robotId)
|
||||
{
|
||||
robotId_ = robotId;
|
||||
setBodyParameter("RobotId", std::to_string(robotId));
|
||||
}
|
||||
|
||||
std::string RunSmartCallServiceRequest::getParamContent()const
|
||||
{
|
||||
return paramContent_;
|
||||
}
|
||||
|
||||
void RunSmartCallServiceRequest::setParamContent(const std::string& paramContent)
|
||||
{
|
||||
paramContent_ = paramContent;
|
||||
setBodyParameter("ParamContent", paramContent);
|
||||
}
|
||||
|
||||
std::string RunSmartCallServiceRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void RunSmartCallServiceRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setBodyParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
65
nlp-automl/src/model/RunSmartCallServiceResult.cc
Normal file
65
nlp-automl/src/model/RunSmartCallServiceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/nlp-automl/model/RunSmartCallServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Nlp_automl;
|
||||
using namespace AlibabaCloud::Nlp_automl::Model;
|
||||
|
||||
RunSmartCallServiceResult::RunSmartCallServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RunSmartCallServiceResult::RunSmartCallServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RunSmartCallServiceResult::~RunSmartCallServiceResult()
|
||||
{}
|
||||
|
||||
void RunSmartCallServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RunSmartCallServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RunSmartCallServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RunSmartCallServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string expireTime;
|
||||
std::string androidPopupBody;
|
||||
std::string iOSNotificationCategory;
|
||||
std::string androidNotificationXiaomiChannel;
|
||||
bool storeOffline;
|
||||
bool iOSSilentNotification;
|
||||
std::string jobKey;
|
||||
|
||||
@@ -67,6 +67,8 @@ namespace AlibabaCloud
|
||||
void setExpireTime(const std::string& expireTime);
|
||||
std::string getIOSNotificationCategory()const;
|
||||
void setIOSNotificationCategory(const std::string& iOSNotificationCategory);
|
||||
std::string getAndroidNotificationXiaomiChannel()const;
|
||||
void setAndroidNotificationXiaomiChannel(const std::string& androidNotificationXiaomiChannel);
|
||||
bool getStoreOffline()const;
|
||||
void setStoreOffline(bool storeOffline);
|
||||
std::string getSmsParams()const;
|
||||
@@ -143,6 +145,7 @@ namespace AlibabaCloud
|
||||
int androidNotificationBarPriority_;
|
||||
std::string expireTime_;
|
||||
std::string iOSNotificationCategory_;
|
||||
std::string androidNotificationXiaomiChannel_;
|
||||
bool storeOffline_;
|
||||
std::string smsParams_;
|
||||
std::string jobKey_;
|
||||
|
||||
@@ -71,6 +71,7 @@ void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
|
||||
setParameter(pushTaskObjStr + ".ExpireTime", pushTaskObj.expireTime);
|
||||
setParameter(pushTaskObjStr + ".AndroidPopupBody", pushTaskObj.androidPopupBody);
|
||||
setParameter(pushTaskObjStr + ".IOSNotificationCategory", pushTaskObj.iOSNotificationCategory);
|
||||
setParameter(pushTaskObjStr + ".AndroidNotificationXiaomiChannel", pushTaskObj.androidNotificationXiaomiChannel);
|
||||
setParameter(pushTaskObjStr + ".StoreOffline", pushTaskObj.storeOffline ? "true" : "false");
|
||||
setParameter(pushTaskObjStr + ".IOSSilentNotification", pushTaskObj.iOSSilentNotification ? "true" : "false");
|
||||
setParameter(pushTaskObjStr + ".JobKey", pushTaskObj.jobKey);
|
||||
|
||||
@@ -203,6 +203,17 @@ void PushRequest::setIOSNotificationCategory(const std::string& iOSNotificationC
|
||||
setParameter("IOSNotificationCategory", iOSNotificationCategory);
|
||||
}
|
||||
|
||||
std::string PushRequest::getAndroidNotificationXiaomiChannel()const
|
||||
{
|
||||
return androidNotificationXiaomiChannel_;
|
||||
}
|
||||
|
||||
void PushRequest::setAndroidNotificationXiaomiChannel(const std::string& androidNotificationXiaomiChannel)
|
||||
{
|
||||
androidNotificationXiaomiChannel_ = androidNotificationXiaomiChannel;
|
||||
setParameter("AndroidNotificationXiaomiChannel", androidNotificationXiaomiChannel);
|
||||
}
|
||||
|
||||
bool PushRequest::getStoreOffline()const
|
||||
{
|
||||
return storeOffline_;
|
||||
|
||||
@@ -145,6 +145,8 @@ set(r-kvstore_public_header_model
|
||||
include/alibabacloud/r-kvstore/model/ModifyInstanceVpcAuthModeResult.h
|
||||
include/alibabacloud/r-kvstore/model/ModifyIntranetAttributeRequest.h
|
||||
include/alibabacloud/r-kvstore/model/ModifyIntranetAttributeResult.h
|
||||
include/alibabacloud/r-kvstore/model/ModifyResourceGroupRequest.h
|
||||
include/alibabacloud/r-kvstore/model/ModifyResourceGroupResult.h
|
||||
include/alibabacloud/r-kvstore/model/ModifySecurityGroupConfigurationRequest.h
|
||||
include/alibabacloud/r-kvstore/model/ModifySecurityGroupConfigurationResult.h
|
||||
include/alibabacloud/r-kvstore/model/ModifySecurityIpsRequest.h
|
||||
@@ -298,6 +300,8 @@ set(r-kvstore_src
|
||||
src/model/ModifyInstanceVpcAuthModeResult.cc
|
||||
src/model/ModifyIntranetAttributeRequest.cc
|
||||
src/model/ModifyIntranetAttributeResult.cc
|
||||
src/model/ModifyResourceGroupRequest.cc
|
||||
src/model/ModifyResourceGroupResult.cc
|
||||
src/model/ModifySecurityGroupConfigurationRequest.cc
|
||||
src/model/ModifySecurityGroupConfigurationResult.cc
|
||||
src/model/ModifySecurityIpsRequest.cc
|
||||
|
||||
@@ -146,6 +146,8 @@
|
||||
#include "model/ModifyInstanceVpcAuthModeResult.h"
|
||||
#include "model/ModifyIntranetAttributeRequest.h"
|
||||
#include "model/ModifyIntranetAttributeResult.h"
|
||||
#include "model/ModifyResourceGroupRequest.h"
|
||||
#include "model/ModifyResourceGroupResult.h"
|
||||
#include "model/ModifySecurityGroupConfigurationRequest.h"
|
||||
#include "model/ModifySecurityGroupConfigurationResult.h"
|
||||
#include "model/ModifySecurityIpsRequest.h"
|
||||
@@ -367,6 +369,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyIntranetAttributeResult> ModifyIntranetAttributeOutcome;
|
||||
typedef std::future<ModifyIntranetAttributeOutcome> ModifyIntranetAttributeOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::ModifyIntranetAttributeRequest&, const ModifyIntranetAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIntranetAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyResourceGroupResult> ModifyResourceGroupOutcome;
|
||||
typedef std::future<ModifyResourceGroupOutcome> ModifyResourceGroupOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::ModifyResourceGroupRequest&, const ModifyResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyResourceGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySecurityGroupConfigurationResult> ModifySecurityGroupConfigurationOutcome;
|
||||
typedef std::future<ModifySecurityGroupConfigurationOutcome> ModifySecurityGroupConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::ModifySecurityGroupConfigurationRequest&, const ModifySecurityGroupConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityGroupConfigurationAsyncHandler;
|
||||
@@ -597,6 +602,9 @@ namespace AlibabaCloud
|
||||
ModifyIntranetAttributeOutcome modifyIntranetAttribute(const Model::ModifyIntranetAttributeRequest &request)const;
|
||||
void modifyIntranetAttributeAsync(const Model::ModifyIntranetAttributeRequest& request, const ModifyIntranetAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyIntranetAttributeOutcomeCallable modifyIntranetAttributeCallable(const Model::ModifyIntranetAttributeRequest& request) const;
|
||||
ModifyResourceGroupOutcome modifyResourceGroup(const Model::ModifyResourceGroupRequest &request)const;
|
||||
void modifyResourceGroupAsync(const Model::ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyResourceGroupOutcomeCallable modifyResourceGroupCallable(const Model::ModifyResourceGroupRequest& request) const;
|
||||
ModifySecurityGroupConfigurationOutcome modifySecurityGroupConfiguration(const Model::ModifySecurityGroupConfigurationRequest &request)const;
|
||||
void modifySecurityGroupConfigurationAsync(const Model::ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySecurityGroupConfigurationOutcomeCallable modifySecurityGroupConfigurationCallable(const Model::ModifySecurityGroupConfigurationRequest& request) const;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
long connections;
|
||||
std::string endTime;
|
||||
std::string resourceGroupId;
|
||||
std::string config;
|
||||
long port;
|
||||
std::string hasRenewChangeOrder;
|
||||
|
||||
@@ -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_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT ModifyResourceGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyResourceGroupRequest();
|
||||
~ModifyResourceGroupRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT ModifyResourceGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyResourceGroupResult();
|
||||
explicit ModifyResourceGroupResult(const std::string &payload);
|
||||
~ModifyResourceGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_MODIFYRESOURCEGROUPRESULT_H_
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setSecurityIpGroupName(const std::string& securityIpGroupName);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getModifyMode()const;
|
||||
void setModifyMode(const std::string& modifyMode);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -64,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string accessKeyId_;
|
||||
std::string securityIpGroupName_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string modifyMode_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -2283,6 +2283,42 @@ R_kvstoreClient::ModifyIntranetAttributeOutcomeCallable R_kvstoreClient::modifyI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyResourceGroupOutcome R_kvstoreClient::modifyResourceGroup(const ModifyResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyResourceGroupOutcome(ModifyResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return ModifyResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::modifyResourceGroupAsync(const ModifyResourceGroupRequest& request, const ModifyResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifyResourceGroupOutcomeCallable R_kvstoreClient::modifyResourceGroupCallable(const ModifyResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::ModifySecurityGroupConfigurationOutcome R_kvstoreClient::modifySecurityGroupConfiguration(const ModifySecurityGroupConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -121,6 +121,8 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
|
||||
instancesObject.vpcCloudInstanceId = valueInstancesDBInstanceAttribute["VpcCloudInstanceId"].asString();
|
||||
if(!valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].isNull())
|
||||
instancesObject.instanceReleaseProtection = valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].asString() == "true";
|
||||
if(!valueInstancesDBInstanceAttribute["ResourceGroupId"].isNull())
|
||||
instancesObject.resourceGroupId = valueInstancesDBInstanceAttribute["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
128
r-kvstore/src/model/ModifyResourceGroupRequest.cc
Normal file
128
r-kvstore/src/model/ModifyResourceGroupRequest.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/r-kvstore/model/ModifyResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::ModifyResourceGroupRequest;
|
||||
|
||||
ModifyResourceGroupRequest::ModifyResourceGroupRequest() :
|
||||
RpcServiceRequest("r-kvstore", "2015-01-01", "ModifyResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyResourceGroupRequest::~ModifyResourceGroupRequest()
|
||||
{}
|
||||
|
||||
long ModifyResourceGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyResourceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyResourceGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyResourceGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
44
r-kvstore/src/model/ModifyResourceGroupResult.cc
Normal file
44
r-kvstore/src/model/ModifyResourceGroupResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/ModifyResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
ModifyResourceGroupResult::ModifyResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyResourceGroupResult::ModifyResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyResourceGroupResult::~ModifyResourceGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -82,6 +82,17 @@ void ModifySecurityIpsRequest::setSecurityToken(const std::string& securityToken
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifySecurityIpsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifySecurityIpsRequest::getModifyMode()const
|
||||
{
|
||||
return modifyMode_;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
float right;
|
||||
float bottom;
|
||||
};
|
||||
long maxDataTime;
|
||||
std::vector<PvStatisticResult::Rect> pvRects;
|
||||
long locationId;
|
||||
long processCursor;
|
||||
|
||||
@@ -31,21 +31,21 @@ ReidClient::ReidClient(const Credentials &credentials, const ClientConfiguration
|
||||
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, "1.1.7");
|
||||
}
|
||||
|
||||
ReidClient::ReidClient(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, "1.1.7");
|
||||
}
|
||||
|
||||
ReidClient::ReidClient(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, "1.1.7");
|
||||
}
|
||||
|
||||
ReidClient::~ReidClient()
|
||||
|
||||
@@ -53,6 +53,8 @@ void DescribeCameraStatisticsResult::parse(const std::string &payload)
|
||||
pvStatisticResultsObject.locationId = std::stol(valuePvStatisticResultsPvStatisticResult["LocationId"].asString());
|
||||
if(!valuePvStatisticResultsPvStatisticResult["PvType"].isNull())
|
||||
pvStatisticResultsObject.pvType = valuePvStatisticResultsPvStatisticResult["PvType"].asString();
|
||||
if(!valuePvStatisticResultsPvStatisticResult["MaxDataTime"].isNull())
|
||||
pvStatisticResultsObject.maxDataTime = std::stol(valuePvStatisticResultsPvStatisticResult["MaxDataTime"].asString());
|
||||
auto allPvRectsNode = allPvStatisticResultsNode["PvRects"]["Rect"];
|
||||
for (auto allPvStatisticResultsNodePvRectsRect : allPvRectsNode)
|
||||
{
|
||||
|
||||
@@ -163,6 +163,8 @@ set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/DescribeWarningMachinesResult.h
|
||||
include/alibabacloud/sas/model/ExportRecordRequest.h
|
||||
include/alibabacloud/sas/model/ExportRecordResult.h
|
||||
include/alibabacloud/sas/model/FixCheckWarningsRequest.h
|
||||
include/alibabacloud/sas/model/FixCheckWarningsResult.h
|
||||
include/alibabacloud/sas/model/GetIOCsRequest.h
|
||||
include/alibabacloud/sas/model/GetIOCsResult.h
|
||||
include/alibabacloud/sas/model/GetIncIOCsRequest.h
|
||||
@@ -171,14 +173,8 @@ set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/HandleSimilarSecurityEventsResult.h
|
||||
include/alibabacloud/sas/model/ModifyAntiBruteForceRuleRequest.h
|
||||
include/alibabacloud/sas/model/ModifyAntiBruteForceRuleResult.h
|
||||
include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h
|
||||
include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h
|
||||
include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h
|
||||
include/alibabacloud/sas/model/ModifyConcernNecessityResult.h
|
||||
include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h
|
||||
include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h
|
||||
include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h
|
||||
include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h
|
||||
include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h
|
||||
include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h
|
||||
include/alibabacloud/sas/model/ModifyGroupPropertyRequest.h
|
||||
@@ -214,7 +210,9 @@ set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/SasInstallCodeRequest.h
|
||||
include/alibabacloud/sas/model/SasInstallCodeResult.h
|
||||
include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h
|
||||
include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h )
|
||||
include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h
|
||||
include/alibabacloud/sas/model/ValidateHcWarningsRequest.h
|
||||
include/alibabacloud/sas/model/ValidateHcWarningsResult.h )
|
||||
|
||||
set(sas_src
|
||||
src/SasClient.cc
|
||||
@@ -360,6 +358,8 @@ set(sas_src
|
||||
src/model/DescribeWarningMachinesResult.cc
|
||||
src/model/ExportRecordRequest.cc
|
||||
src/model/ExportRecordResult.cc
|
||||
src/model/FixCheckWarningsRequest.cc
|
||||
src/model/FixCheckWarningsResult.cc
|
||||
src/model/GetIOCsRequest.cc
|
||||
src/model/GetIOCsResult.cc
|
||||
src/model/GetIncIOCsRequest.cc
|
||||
@@ -368,14 +368,8 @@ set(sas_src
|
||||
src/model/HandleSimilarSecurityEventsResult.cc
|
||||
src/model/ModifyAntiBruteForceRuleRequest.cc
|
||||
src/model/ModifyAntiBruteForceRuleResult.cc
|
||||
src/model/ModifyAutoDelConfigRequest.cc
|
||||
src/model/ModifyAutoDelConfigResult.cc
|
||||
src/model/ModifyConcernNecessityRequest.cc
|
||||
src/model/ModifyConcernNecessityResult.cc
|
||||
src/model/ModifyCreateVulWhitelistRequest.cc
|
||||
src/model/ModifyCreateVulWhitelistResult.cc
|
||||
src/model/ModifyDeleteVulWhitelistRequest.cc
|
||||
src/model/ModifyDeleteVulWhitelistResult.cc
|
||||
src/model/ModifyEmgVulSubmitRequest.cc
|
||||
src/model/ModifyEmgVulSubmitResult.cc
|
||||
src/model/ModifyGroupPropertyRequest.cc
|
||||
@@ -411,7 +405,9 @@ set(sas_src
|
||||
src/model/SasInstallCodeRequest.cc
|
||||
src/model/SasInstallCodeResult.cc
|
||||
src/model/StartBaselineSecurityCheckRequest.cc
|
||||
src/model/StartBaselineSecurityCheckResult.cc )
|
||||
src/model/StartBaselineSecurityCheckResult.cc
|
||||
src/model/ValidateHcWarningsRequest.cc
|
||||
src/model/ValidateHcWarningsResult.cc )
|
||||
|
||||
add_library(sas ${LIB_TYPE}
|
||||
${sas_public_header}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user