Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1e74581f | ||
|
|
304717df66 | ||
|
|
d4d401ed4e | ||
|
|
670f1bb324 | ||
|
|
07721caa35 | ||
|
|
9315d79274 | ||
|
|
3d5b584e84 |
20
CHANGELOG
20
CHANGELOG
@@ -1,3 +1,23 @@
|
||||
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.
|
||||
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -23,51 +23,83 @@ set(vcs_public_header
|
||||
set(vcs_public_header_model
|
||||
include/alibabacloud/vcs/model/AddDeviceRequest.h
|
||||
include/alibabacloud/vcs/model/AddDeviceResult.h
|
||||
include/alibabacloud/vcs/model/AddMonitorRequest.h
|
||||
include/alibabacloud/vcs/model/AddMonitorResult.h
|
||||
include/alibabacloud/vcs/model/CreateCorpRequest.h
|
||||
include/alibabacloud/vcs/model/CreateCorpResult.h
|
||||
include/alibabacloud/vcs/model/DeleteDeviceRequest.h
|
||||
include/alibabacloud/vcs/model/DeleteDeviceResult.h
|
||||
include/alibabacloud/vcs/model/GetBodyOptionsRequest.h
|
||||
include/alibabacloud/vcs/model/GetBodyOptionsResult.h
|
||||
include/alibabacloud/vcs/model/GetDeviceLiveUrlRequest.h
|
||||
include/alibabacloud/vcs/model/GetDeviceLiveUrlResult.h
|
||||
include/alibabacloud/vcs/model/GetDeviceVideoUrlRequest.h
|
||||
include/alibabacloud/vcs/model/GetDeviceVideoUrlResult.h
|
||||
include/alibabacloud/vcs/model/GetFaceOptionsRequest.h
|
||||
include/alibabacloud/vcs/model/GetFaceOptionsResult.h
|
||||
include/alibabacloud/vcs/model/GetInventoryRequest.h
|
||||
include/alibabacloud/vcs/model/GetInventoryResult.h
|
||||
include/alibabacloud/vcs/model/GetMonitorResultRequest.h
|
||||
include/alibabacloud/vcs/model/GetMonitorResultResult.h
|
||||
include/alibabacloud/vcs/model/ListCorpsRequest.h
|
||||
include/alibabacloud/vcs/model/ListCorpsResult.h
|
||||
include/alibabacloud/vcs/model/ListDevicesRequest.h
|
||||
include/alibabacloud/vcs/model/ListDevicesResult.h
|
||||
include/alibabacloud/vcs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/vcs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/vcs/model/SearchBodyRequest.h
|
||||
include/alibabacloud/vcs/model/SearchBodyResult.h
|
||||
include/alibabacloud/vcs/model/SearchFaceRequest.h
|
||||
include/alibabacloud/vcs/model/SearchFaceResult.h
|
||||
include/alibabacloud/vcs/model/StopMonitorRequest.h
|
||||
include/alibabacloud/vcs/model/StopMonitorResult.h
|
||||
include/alibabacloud/vcs/model/UpdateCorpRequest.h
|
||||
include/alibabacloud/vcs/model/UpdateCorpResult.h
|
||||
include/alibabacloud/vcs/model/UpdateDeviceRequest.h
|
||||
include/alibabacloud/vcs/model/UpdateDeviceResult.h )
|
||||
include/alibabacloud/vcs/model/UpdateDeviceResult.h
|
||||
include/alibabacloud/vcs/model/UpdateMonitorRequest.h
|
||||
include/alibabacloud/vcs/model/UpdateMonitorResult.h )
|
||||
|
||||
set(vcs_src
|
||||
src/VcsClient.cc
|
||||
src/model/AddDeviceRequest.cc
|
||||
src/model/AddDeviceResult.cc
|
||||
src/model/AddMonitorRequest.cc
|
||||
src/model/AddMonitorResult.cc
|
||||
src/model/CreateCorpRequest.cc
|
||||
src/model/CreateCorpResult.cc
|
||||
src/model/DeleteDeviceRequest.cc
|
||||
src/model/DeleteDeviceResult.cc
|
||||
src/model/GetBodyOptionsRequest.cc
|
||||
src/model/GetBodyOptionsResult.cc
|
||||
src/model/GetDeviceLiveUrlRequest.cc
|
||||
src/model/GetDeviceLiveUrlResult.cc
|
||||
src/model/GetDeviceVideoUrlRequest.cc
|
||||
src/model/GetDeviceVideoUrlResult.cc
|
||||
src/model/GetFaceOptionsRequest.cc
|
||||
src/model/GetFaceOptionsResult.cc
|
||||
src/model/GetInventoryRequest.cc
|
||||
src/model/GetInventoryResult.cc
|
||||
src/model/GetMonitorResultRequest.cc
|
||||
src/model/GetMonitorResultResult.cc
|
||||
src/model/ListCorpsRequest.cc
|
||||
src/model/ListCorpsResult.cc
|
||||
src/model/ListDevicesRequest.cc
|
||||
src/model/ListDevicesResult.cc
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchBodyRequest.cc
|
||||
src/model/SearchBodyResult.cc
|
||||
src/model/SearchFaceRequest.cc
|
||||
src/model/SearchFaceResult.cc
|
||||
src/model/StopMonitorRequest.cc
|
||||
src/model/StopMonitorResult.cc
|
||||
src/model/UpdateCorpRequest.cc
|
||||
src/model/UpdateCorpResult.cc
|
||||
src/model/UpdateDeviceRequest.cc
|
||||
src/model/UpdateDeviceResult.cc )
|
||||
src/model/UpdateDeviceResult.cc
|
||||
src/model/UpdateMonitorRequest.cc
|
||||
src/model/UpdateMonitorResult.cc )
|
||||
|
||||
add_library(vcs ${LIB_TYPE}
|
||||
${vcs_public_header}
|
||||
|
||||
@@ -24,26 +24,42 @@
|
||||
#include "VcsExport.h"
|
||||
#include "model/AddDeviceRequest.h"
|
||||
#include "model/AddDeviceResult.h"
|
||||
#include "model/AddMonitorRequest.h"
|
||||
#include "model/AddMonitorResult.h"
|
||||
#include "model/CreateCorpRequest.h"
|
||||
#include "model/CreateCorpResult.h"
|
||||
#include "model/DeleteDeviceRequest.h"
|
||||
#include "model/DeleteDeviceResult.h"
|
||||
#include "model/GetBodyOptionsRequest.h"
|
||||
#include "model/GetBodyOptionsResult.h"
|
||||
#include "model/GetDeviceLiveUrlRequest.h"
|
||||
#include "model/GetDeviceLiveUrlResult.h"
|
||||
#include "model/GetDeviceVideoUrlRequest.h"
|
||||
#include "model/GetDeviceVideoUrlResult.h"
|
||||
#include "model/GetFaceOptionsRequest.h"
|
||||
#include "model/GetFaceOptionsResult.h"
|
||||
#include "model/GetInventoryRequest.h"
|
||||
#include "model/GetInventoryResult.h"
|
||||
#include "model/GetMonitorResultRequest.h"
|
||||
#include "model/GetMonitorResultResult.h"
|
||||
#include "model/ListCorpsRequest.h"
|
||||
#include "model/ListCorpsResult.h"
|
||||
#include "model/ListDevicesRequest.h"
|
||||
#include "model/ListDevicesResult.h"
|
||||
#include "model/RecognizeImageRequest.h"
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchBodyRequest.h"
|
||||
#include "model/SearchBodyResult.h"
|
||||
#include "model/SearchFaceRequest.h"
|
||||
#include "model/SearchFaceResult.h"
|
||||
#include "model/StopMonitorRequest.h"
|
||||
#include "model/StopMonitorResult.h"
|
||||
#include "model/UpdateCorpRequest.h"
|
||||
#include "model/UpdateCorpResult.h"
|
||||
#include "model/UpdateDeviceRequest.h"
|
||||
#include "model/UpdateDeviceResult.h"
|
||||
#include "model/UpdateMonitorRequest.h"
|
||||
#include "model/UpdateMonitorResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -56,18 +72,33 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddDeviceResult> AddDeviceOutcome;
|
||||
typedef std::future<AddDeviceOutcome> AddDeviceOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::AddDeviceRequest&, const AddDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddMonitorResult> AddMonitorOutcome;
|
||||
typedef std::future<AddMonitorOutcome> AddMonitorOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::AddMonitorRequest&, const AddMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCorpResult> CreateCorpOutcome;
|
||||
typedef std::future<CreateCorpOutcome> CreateCorpOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::CreateCorpRequest&, const CreateCorpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCorpAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
|
||||
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBodyOptionsResult> GetBodyOptionsOutcome;
|
||||
typedef std::future<GetBodyOptionsOutcome> GetBodyOptionsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetBodyOptionsRequest&, const GetBodyOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyOptionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceLiveUrlResult> GetDeviceLiveUrlOutcome;
|
||||
typedef std::future<GetDeviceLiveUrlOutcome> GetDeviceLiveUrlOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetDeviceLiveUrlRequest&, const GetDeviceLiveUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceLiveUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDeviceVideoUrlResult> GetDeviceVideoUrlOutcome;
|
||||
typedef std::future<GetDeviceVideoUrlOutcome> GetDeviceVideoUrlOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetDeviceVideoUrlRequest&, const GetDeviceVideoUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceVideoUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFaceOptionsResult> GetFaceOptionsOutcome;
|
||||
typedef std::future<GetFaceOptionsOutcome> GetFaceOptionsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetFaceOptionsRequest&, const GetFaceOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFaceOptionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInventoryResult> GetInventoryOutcome;
|
||||
typedef std::future<GetInventoryOutcome> GetInventoryOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetInventoryRequest&, const GetInventoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInventoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMonitorResultResult> GetMonitorResultOutcome;
|
||||
typedef std::future<GetMonitorResultOutcome> GetMonitorResultOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetMonitorResultRequest&, const GetMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMonitorResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCorpsResult> ListCorpsOutcome;
|
||||
typedef std::future<ListCorpsOutcome> ListCorpsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::ListCorpsRequest&, const ListCorpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpsAsyncHandler;
|
||||
@@ -77,15 +108,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
||||
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchBodyResult> SearchBodyOutcome;
|
||||
typedef std::future<SearchBodyOutcome> SearchBodyOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::SearchBodyRequest&, const SearchBodyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchBodyAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchFaceResult> SearchFaceOutcome;
|
||||
typedef std::future<SearchFaceOutcome> SearchFaceOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopMonitorResult> StopMonitorOutcome;
|
||||
typedef std::future<StopMonitorOutcome> StopMonitorOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::StopMonitorRequest&, const StopMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCorpResult> UpdateCorpOutcome;
|
||||
typedef std::future<UpdateCorpOutcome> UpdateCorpOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::UpdateCorpRequest&, const UpdateCorpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCorpAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDeviceResult> UpdateDeviceOutcome;
|
||||
typedef std::future<UpdateDeviceOutcome> UpdateDeviceOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::UpdateDeviceRequest&, const UpdateDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateMonitorResult> UpdateMonitorOutcome;
|
||||
typedef std::future<UpdateMonitorOutcome> UpdateMonitorOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::UpdateMonitorRequest&, const UpdateMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMonitorAsyncHandler;
|
||||
|
||||
VcsClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
VcsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -94,18 +134,33 @@ namespace AlibabaCloud
|
||||
AddDeviceOutcome addDevice(const Model::AddDeviceRequest &request)const;
|
||||
void addDeviceAsync(const Model::AddDeviceRequest& request, const AddDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddDeviceOutcomeCallable addDeviceCallable(const Model::AddDeviceRequest& request) const;
|
||||
AddMonitorOutcome addMonitor(const Model::AddMonitorRequest &request)const;
|
||||
void addMonitorAsync(const Model::AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddMonitorOutcomeCallable addMonitorCallable(const Model::AddMonitorRequest& request) const;
|
||||
CreateCorpOutcome createCorp(const Model::CreateCorpRequest &request)const;
|
||||
void createCorpAsync(const Model::CreateCorpRequest& request, const CreateCorpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCorpOutcomeCallable createCorpCallable(const Model::CreateCorpRequest& request) const;
|
||||
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
|
||||
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
|
||||
GetBodyOptionsOutcome getBodyOptions(const Model::GetBodyOptionsRequest &request)const;
|
||||
void getBodyOptionsAsync(const Model::GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBodyOptionsOutcomeCallable getBodyOptionsCallable(const Model::GetBodyOptionsRequest& request) const;
|
||||
GetDeviceLiveUrlOutcome getDeviceLiveUrl(const Model::GetDeviceLiveUrlRequest &request)const;
|
||||
void getDeviceLiveUrlAsync(const Model::GetDeviceLiveUrlRequest& request, const GetDeviceLiveUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceLiveUrlOutcomeCallable getDeviceLiveUrlCallable(const Model::GetDeviceLiveUrlRequest& request) const;
|
||||
GetDeviceVideoUrlOutcome getDeviceVideoUrl(const Model::GetDeviceVideoUrlRequest &request)const;
|
||||
void getDeviceVideoUrlAsync(const Model::GetDeviceVideoUrlRequest& request, const GetDeviceVideoUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDeviceVideoUrlOutcomeCallable getDeviceVideoUrlCallable(const Model::GetDeviceVideoUrlRequest& request) const;
|
||||
GetFaceOptionsOutcome getFaceOptions(const Model::GetFaceOptionsRequest &request)const;
|
||||
void getFaceOptionsAsync(const Model::GetFaceOptionsRequest& request, const GetFaceOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFaceOptionsOutcomeCallable getFaceOptionsCallable(const Model::GetFaceOptionsRequest& request) const;
|
||||
GetInventoryOutcome getInventory(const Model::GetInventoryRequest &request)const;
|
||||
void getInventoryAsync(const Model::GetInventoryRequest& request, const GetInventoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInventoryOutcomeCallable getInventoryCallable(const Model::GetInventoryRequest& request) const;
|
||||
GetMonitorResultOutcome getMonitorResult(const Model::GetMonitorResultRequest &request)const;
|
||||
void getMonitorResultAsync(const Model::GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMonitorResultOutcomeCallable getMonitorResultCallable(const Model::GetMonitorResultRequest& request) const;
|
||||
ListCorpsOutcome listCorps(const Model::ListCorpsRequest &request)const;
|
||||
void listCorpsAsync(const Model::ListCorpsRequest& request, const ListCorpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCorpsOutcomeCallable listCorpsCallable(const Model::ListCorpsRequest& request) const;
|
||||
@@ -115,15 +170,24 @@ namespace AlibabaCloud
|
||||
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
||||
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
||||
SearchBodyOutcome searchBody(const Model::SearchBodyRequest &request)const;
|
||||
void searchBodyAsync(const Model::SearchBodyRequest& request, const SearchBodyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchBodyOutcomeCallable searchBodyCallable(const Model::SearchBodyRequest& request) const;
|
||||
SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const;
|
||||
void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;
|
||||
StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const;
|
||||
void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const;
|
||||
UpdateCorpOutcome updateCorp(const Model::UpdateCorpRequest &request)const;
|
||||
void updateCorpAsync(const Model::UpdateCorpRequest& request, const UpdateCorpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCorpOutcomeCallable updateCorpCallable(const Model::UpdateCorpRequest& request) const;
|
||||
UpdateDeviceOutcome updateDevice(const Model::UpdateDeviceRequest &request)const;
|
||||
void updateDeviceAsync(const Model::UpdateDeviceRequest& request, const UpdateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDeviceOutcomeCallable updateDeviceCallable(const Model::UpdateDeviceRequest& request) const;
|
||||
UpdateMonitorOutcome updateMonitor(const Model::UpdateMonitorRequest &request)const;
|
||||
void updateMonitorAsync(const Model::UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateMonitorOutcomeCallable updateMonitorCallable(const Model::UpdateMonitorRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -41,10 +41,10 @@ namespace AlibabaCloud
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGbId()const;
|
||||
void setGbId(const std::string& gbId);
|
||||
std::string getBitRate()const;
|
||||
void setBitRate(const std::string& bitRate);
|
||||
std::string getDeviceDirection()const;
|
||||
void setDeviceDirection(const std::string& deviceDirection);
|
||||
std::string getDeviceRate()const;
|
||||
void setDeviceRate(const std::string& deviceRate);
|
||||
std::string getDeviceAddress()const;
|
||||
void setDeviceAddress(const std::string& deviceAddress);
|
||||
std::string getDeviceType()const;
|
||||
@@ -60,8 +60,8 @@ namespace AlibabaCloud
|
||||
std::string deviceSite_;
|
||||
std::string corpId_;
|
||||
std::string gbId_;
|
||||
std::string bitRate_;
|
||||
std::string deviceDirection_;
|
||||
std::string deviceRate_;
|
||||
std::string deviceAddress_;
|
||||
std::string deviceType_;
|
||||
std::string deviceResolution_;
|
||||
|
||||
57
vcs/include/alibabacloud/vcs/model/AddMonitorRequest.h
Normal file
57
vcs/include/alibabacloud/vcs/model/AddMonitorRequest.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_VCS_MODEL_ADDMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_ADDMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT AddMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddMonitorRequest();
|
||||
~AddMonitorRequest();
|
||||
|
||||
std::string getMonitorType()const;
|
||||
void setMonitorType(const std::string& monitorType);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
int getBatchIndicator()const;
|
||||
void setBatchIndicator(int batchIndicator);
|
||||
|
||||
private:
|
||||
std::string monitorType_;
|
||||
std::string corpId_;
|
||||
std::string description_;
|
||||
int batchIndicator_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_ADDMONITORREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCRESULT_H_
|
||||
#define ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCRESULT_H_
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_ADDMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_ADDMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/et-industry-openapi/Et_industry_openapiExport.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Et_industry_openapi
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ET_INDUSTRY_OPENAPI_EXPORT UploadDeviceDataDCResult : public ServiceResult
|
||||
class ALIBABACLOUD_VCS_EXPORT AddMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UploadDeviceDataDCResult();
|
||||
explicit UploadDeviceDataDCResult(const std::string &payload);
|
||||
~UploadDeviceDataDCResult();
|
||||
AddMonitorResult();
|
||||
explicit AddMonitorResult(const std::string &payload);
|
||||
~AddMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -52,4 +52,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ET_INDUSTRY_OPENAPI_MODEL_UPLOADDEVICEDATADCRESULT_H_
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_ADDMONITORRESULT_H_
|
||||
48
vcs/include/alibabacloud/vcs/model/GetBodyOptionsRequest.h
Normal file
48
vcs/include/alibabacloud/vcs/model/GetBodyOptionsRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_GETBODYOPTIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETBODYOPTIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetBodyOptionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBodyOptionsRequest();
|
||||
~GetBodyOptionsRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETBODYOPTIONSREQUEST_H_
|
||||
66
vcs/include/alibabacloud/vcs/model/GetBodyOptionsResult.h
Normal file
66
vcs/include/alibabacloud/vcs/model/GetBodyOptionsResult.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_VCS_MODEL_GETBODYOPTIONSRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETBODYOPTIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetBodyOptionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
struct OptionListItem
|
||||
{
|
||||
std::string key;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<DataItem::OptionListItem> optionList;
|
||||
std::string key;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetBodyOptionsResult();
|
||||
explicit GetBodyOptionsResult(const std::string &payload);
|
||||
~GetBodyOptionsResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETBODYOPTIONSRESULT_H_
|
||||
@@ -39,13 +39,10 @@ namespace AlibabaCloud
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGbId()const;
|
||||
void setGbId(const std::string& gbId);
|
||||
long getDeviceId()const;
|
||||
void setDeviceId(long deviceId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string gbId_;
|
||||
long deviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_VCS_MODEL_GETDEVICEVIDEOURLREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETDEVICEVIDEOURLREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetDeviceVideoUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDeviceVideoUrlRequest();
|
||||
~GetDeviceVideoUrlRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGbId()const;
|
||||
void setGbId(const std::string& gbId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string gbId_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETDEVICEVIDEOURLREQUEST_H_
|
||||
55
vcs/include/alibabacloud/vcs/model/GetDeviceVideoUrlResult.h
Normal file
55
vcs/include/alibabacloud/vcs/model/GetDeviceVideoUrlResult.h
Normal file
@@ -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_VCS_MODEL_GETDEVICEVIDEOURLRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETDEVICEVIDEOURLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetDeviceVideoUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetDeviceVideoUrlResult();
|
||||
explicit GetDeviceVideoUrlResult(const std::string &payload);
|
||||
~GetDeviceVideoUrlResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string url_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETDEVICEVIDEOURLRESULT_H_
|
||||
48
vcs/include/alibabacloud/vcs/model/GetFaceOptionsRequest.h
Normal file
48
vcs/include/alibabacloud/vcs/model/GetFaceOptionsRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_GETFACEOPTIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETFACEOPTIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetFaceOptionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetFaceOptionsRequest();
|
||||
~GetFaceOptionsRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETFACEOPTIONSREQUEST_H_
|
||||
66
vcs/include/alibabacloud/vcs/model/GetFaceOptionsResult.h
Normal file
66
vcs/include/alibabacloud/vcs/model/GetFaceOptionsResult.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_VCS_MODEL_GETFACEOPTIONSRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETFACEOPTIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetFaceOptionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
struct OptionListItem
|
||||
{
|
||||
std::string key;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<DataItem::OptionListItem> optionList;
|
||||
std::string key;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetFaceOptionsResult();
|
||||
explicit GetFaceOptionsResult(const std::string &payload);
|
||||
~GetFaceOptionsResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<DataItem> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETFACEOPTIONSRESULT_H_
|
||||
60
vcs/include/alibabacloud/vcs/model/GetMonitorResultRequest.h
Normal file
60
vcs/include/alibabacloud/vcs/model/GetMonitorResultRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetMonitorResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMonitorResultRequest();
|
||||
~GetMonitorResultRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getMinRecordId()const;
|
||||
void setMinRecordId(const std::string& minRecordId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
std::string minRecordId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTREQUEST_H_
|
||||
72
vcs/include/alibabacloud/vcs/model/GetMonitorResultResult.h
Normal file
72
vcs/include/alibabacloud/vcs/model/GetMonitorResultResult.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT GetMonitorResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct RecordsItem
|
||||
{
|
||||
std::string leftUpX;
|
||||
std::string leftUpY;
|
||||
std::string score;
|
||||
std::string rightBottomX;
|
||||
std::string rightBottomY;
|
||||
std::string gbId;
|
||||
std::string monitorPicUrl;
|
||||
std::string shotTime;
|
||||
std::string picUrl;
|
||||
};
|
||||
std::string maxId;
|
||||
std::vector<RecordsItem> records;
|
||||
};
|
||||
|
||||
|
||||
GetMonitorResultResult();
|
||||
explicit GetMonitorResultResult(const std::string &payload);
|
||||
~GetMonitorResultResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_GETMONITORRESULTRESULT_H_
|
||||
@@ -49,7 +49,7 @@ namespace AlibabaCloud
|
||||
std::string sipPassword;
|
||||
std::string deviceType;
|
||||
std::string deviceAddress;
|
||||
std::string gBid;
|
||||
std::string gbId;
|
||||
std::string bitRate;
|
||||
std::string deviceSite;
|
||||
std::string sipServerPort;
|
||||
|
||||
66
vcs/include/alibabacloud/vcs/model/SearchBodyRequest.h
Normal file
66
vcs/include/alibabacloud/vcs/model/SearchBodyRequest.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_VCS_MODEL_SEARCHBODYREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_SEARCHBODYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT SearchBodyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchBodyRequest();
|
||||
~SearchBodyRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGbId()const;
|
||||
void setGbId(const std::string& gbId);
|
||||
long getStartTimeStamp()const;
|
||||
void setStartTimeStamp(long startTimeStamp);
|
||||
long getEndTimeStamp()const;
|
||||
void setEndTimeStamp(long endTimeStamp);
|
||||
int getPageNo()const;
|
||||
void setPageNo(int pageNo);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getOptionList()const;
|
||||
void setOptionList(const std::string& optionList);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string gbId_;
|
||||
long startTimeStamp_;
|
||||
long endTimeStamp_;
|
||||
int pageNo_;
|
||||
int pageSize_;
|
||||
std::string optionList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_SEARCHBODYREQUEST_H_
|
||||
74
vcs/include/alibabacloud/vcs/model/SearchBodyResult.h
Normal file
74
vcs/include/alibabacloud/vcs/model/SearchBodyResult.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_SEARCHBODYRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_SEARCHBODYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT SearchBodyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Record
|
||||
{
|
||||
std::string targetImageUrl;
|
||||
float score;
|
||||
float rightBottomX;
|
||||
float rightBottomY;
|
||||
std::string gbId;
|
||||
std::string imageUrl;
|
||||
float leftTopY;
|
||||
float leftTopX;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int totalPage;
|
||||
int pageNo;
|
||||
std::vector<Record> records;
|
||||
};
|
||||
|
||||
|
||||
SearchBodyResult();
|
||||
explicit SearchBodyResult(const std::string &payload);
|
||||
~SearchBodyResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_SEARCHBODYRESULT_H_
|
||||
48
vcs/include/alibabacloud/vcs/model/StopMonitorRequest.h
Normal file
48
vcs/include/alibabacloud/vcs/model/StopMonitorRequest.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_STOPMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_STOPMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT StopMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopMonitorRequest();
|
||||
~StopMonitorRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_STOPMONITORREQUEST_H_
|
||||
55
vcs/include/alibabacloud/vcs/model/StopMonitorResult.h
Normal file
55
vcs/include/alibabacloud/vcs/model/StopMonitorResult.h
Normal file
@@ -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_VCS_MODEL_STOPMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_STOPMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT StopMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopMonitorResult();
|
||||
explicit StopMonitorResult(const std::string &payload);
|
||||
~StopMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_STOPMONITORRESULT_H_
|
||||
@@ -41,10 +41,10 @@ namespace AlibabaCloud
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getGbId()const;
|
||||
void setGbId(const std::string& gbId);
|
||||
std::string getBitRate()const;
|
||||
void setBitRate(const std::string& bitRate);
|
||||
std::string getDeviceDirection()const;
|
||||
void setDeviceDirection(const std::string& deviceDirection);
|
||||
std::string getDeviceRate()const;
|
||||
void setDeviceRate(const std::string& deviceRate);
|
||||
std::string getDeviceAddress()const;
|
||||
void setDeviceAddress(const std::string& deviceAddress);
|
||||
std::string getDeviceType()const;
|
||||
@@ -60,8 +60,8 @@ namespace AlibabaCloud
|
||||
std::string deviceSite_;
|
||||
std::string corpId_;
|
||||
std::string gbId_;
|
||||
std::string bitRate_;
|
||||
std::string deviceDirection_;
|
||||
std::string deviceRate_;
|
||||
std::string deviceAddress_;
|
||||
std::string deviceType_;
|
||||
std::string deviceResolution_;
|
||||
|
||||
78
vcs/include/alibabacloud/vcs/model/UpdateMonitorRequest.h
Normal file
78
vcs/include/alibabacloud/vcs/model/UpdateMonitorRequest.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT UpdateMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateMonitorRequest();
|
||||
~UpdateMonitorRequest();
|
||||
|
||||
std::string getDeviceOperateType()const;
|
||||
void setDeviceOperateType(const std::string& deviceOperateType);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getPicList()const;
|
||||
void setPicList(const std::string& picList);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getPicOperateType()const;
|
||||
void setPicOperateType(const std::string& picOperateType);
|
||||
std::string getAttributeName()const;
|
||||
void setAttributeName(const std::string& attributeName);
|
||||
std::string getAttributeValueList()const;
|
||||
void setAttributeValueList(const std::string& attributeValueList);
|
||||
std::string getDeviceList()const;
|
||||
void setDeviceList(const std::string& deviceList);
|
||||
std::string getAttributeOperateType()const;
|
||||
void setAttributeOperateType(const std::string& attributeOperateType);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string deviceOperateType_;
|
||||
std::string corpId_;
|
||||
std::string picList_;
|
||||
std::string description_;
|
||||
std::string ruleName_;
|
||||
std::string picOperateType_;
|
||||
std::string attributeName_;
|
||||
std::string attributeValueList_;
|
||||
std::string deviceList_;
|
||||
std::string attributeOperateType_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_UPDATEMONITORREQUEST_H_
|
||||
55
vcs/include/alibabacloud/vcs/model/UpdateMonitorResult.h
Normal file
55
vcs/include/alibabacloud/vcs/model/UpdateMonitorResult.h
Normal file
@@ -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_VCS_MODEL_UPDATEMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_UPDATEMONITORRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT UpdateMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateMonitorResult();
|
||||
explicit UpdateMonitorResult(const std::string &payload);
|
||||
~UpdateMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_UPDATEMONITORRESULT_H_
|
||||
@@ -87,6 +87,42 @@ VcsClient::AddDeviceOutcomeCallable VcsClient::addDeviceCallable(const AddDevice
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::AddMonitorOutcome VcsClient::addMonitor(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddMonitorOutcome(AddMonitorResult(outcome.result()));
|
||||
else
|
||||
return AddMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::addMonitorAsync(const AddMonitorRequest& request, const AddMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::AddMonitorOutcomeCallable VcsClient::addMonitorCallable(const AddMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::CreateCorpOutcome VcsClient::createCorp(const CreateCorpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +195,42 @@ VcsClient::DeleteDeviceOutcomeCallable VcsClient::deleteDeviceCallable(const Del
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetBodyOptionsOutcome VcsClient::getBodyOptions(const GetBodyOptionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBodyOptionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBodyOptionsOutcome(GetBodyOptionsResult(outcome.result()));
|
||||
else
|
||||
return GetBodyOptionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getBodyOptionsAsync(const GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBodyOptions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetBodyOptionsOutcomeCallable VcsClient::getBodyOptionsCallable(const GetBodyOptionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBodyOptionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBodyOptions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceLiveUrlOutcome VcsClient::getDeviceLiveUrl(const GetDeviceLiveUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +267,78 @@ VcsClient::GetDeviceLiveUrlOutcomeCallable VcsClient::getDeviceLiveUrlCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceVideoUrlOutcome VcsClient::getDeviceVideoUrl(const GetDeviceVideoUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDeviceVideoUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDeviceVideoUrlOutcome(GetDeviceVideoUrlResult(outcome.result()));
|
||||
else
|
||||
return GetDeviceVideoUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getDeviceVideoUrlAsync(const GetDeviceVideoUrlRequest& request, const GetDeviceVideoUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDeviceVideoUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetDeviceVideoUrlOutcomeCallable VcsClient::getDeviceVideoUrlCallable(const GetDeviceVideoUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDeviceVideoUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDeviceVideoUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetFaceOptionsOutcome VcsClient::getFaceOptions(const GetFaceOptionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetFaceOptionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetFaceOptionsOutcome(GetFaceOptionsResult(outcome.result()));
|
||||
else
|
||||
return GetFaceOptionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getFaceOptionsAsync(const GetFaceOptionsRequest& request, const GetFaceOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getFaceOptions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetFaceOptionsOutcomeCallable VcsClient::getFaceOptionsCallable(const GetFaceOptionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetFaceOptionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getFaceOptions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetInventoryOutcome VcsClient::getInventory(const GetInventoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +375,42 @@ VcsClient::GetInventoryOutcomeCallable VcsClient::getInventoryCallable(const Get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::GetMonitorResultOutcome VcsClient::getMonitorResult(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMonitorResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMonitorResultOutcome(GetMonitorResultResult(outcome.result()));
|
||||
else
|
||||
return GetMonitorResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::getMonitorResultAsync(const GetMonitorResultRequest& request, const GetMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMonitorResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::GetMonitorResultOutcomeCallable VcsClient::getMonitorResultCallable(const GetMonitorResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMonitorResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMonitorResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::ListCorpsOutcome VcsClient::listCorps(const ListCorpsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +519,42 @@ VcsClient::RecognizeImageOutcomeCallable VcsClient::recognizeImageCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::SearchBodyOutcome VcsClient::searchBody(const SearchBodyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchBodyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchBodyOutcome(SearchBodyResult(outcome.result()));
|
||||
else
|
||||
return SearchBodyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::searchBodyAsync(const SearchBodyRequest& request, const SearchBodyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchBody(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::SearchBodyOutcomeCallable VcsClient::searchBodyCallable(const SearchBodyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchBodyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchBody(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::SearchFaceOutcome VcsClient::searchFace(const SearchFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +591,42 @@ VcsClient::SearchFaceOutcomeCallable VcsClient::searchFaceCallable(const SearchF
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::StopMonitorOutcome VcsClient::stopMonitor(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopMonitorOutcome(StopMonitorResult(outcome.result()));
|
||||
else
|
||||
return StopMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::stopMonitorAsync(const StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,3 +699,39 @@ VcsClient::UpdateDeviceOutcomeCallable VcsClient::updateDeviceCallable(const Upd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VcsClient::UpdateMonitorOutcome VcsClient::updateMonitor(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateMonitorOutcome(UpdateMonitorResult(outcome.result()));
|
||||
else
|
||||
return UpdateMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VcsClient::updateMonitorAsync(const UpdateMonitorRequest& request, const UpdateMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VcsClient::UpdateMonitorOutcomeCallable VcsClient::updateMonitorCallable(const UpdateMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,17 @@ void AddDeviceRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getBitRate()const
|
||||
{
|
||||
return bitRate_;
|
||||
}
|
||||
|
||||
void AddDeviceRequest::setBitRate(const std::string& bitRate)
|
||||
{
|
||||
bitRate_ = bitRate;
|
||||
setBodyParameter("BitRate", bitRate);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceDirection()const
|
||||
{
|
||||
return deviceDirection_;
|
||||
@@ -71,17 +82,6 @@ void AddDeviceRequest::setDeviceDirection(const std::string& deviceDirection)
|
||||
setBodyParameter("DeviceDirection", deviceDirection);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceRate()const
|
||||
{
|
||||
return deviceRate_;
|
||||
}
|
||||
|
||||
void AddDeviceRequest::setDeviceRate(const std::string& deviceRate)
|
||||
{
|
||||
deviceRate_ = deviceRate;
|
||||
setBodyParameter("DeviceRate", deviceRate);
|
||||
}
|
||||
|
||||
std::string AddDeviceRequest::getDeviceAddress()const
|
||||
{
|
||||
return deviceAddress_;
|
||||
|
||||
73
vcs/src/model/AddMonitorRequest.cc
Normal file
73
vcs/src/model/AddMonitorRequest.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/vcs/model/AddMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::AddMonitorRequest;
|
||||
|
||||
AddMonitorRequest::AddMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "AddMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMonitorRequest::~AddMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string AddMonitorRequest::getMonitorType()const
|
||||
{
|
||||
return monitorType_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setMonitorType(const std::string& monitorType)
|
||||
{
|
||||
monitorType_ = monitorType;
|
||||
setBodyParameter("MonitorType", monitorType);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string AddMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
int AddMonitorRequest::getBatchIndicator()const
|
||||
{
|
||||
return batchIndicator_;
|
||||
}
|
||||
|
||||
void AddMonitorRequest::setBatchIndicator(int batchIndicator)
|
||||
{
|
||||
batchIndicator_ = batchIndicator;
|
||||
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
||||
}
|
||||
|
||||
@@ -14,51 +14,51 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/et-industry-openapi/model/UploadDeviceDataDCResult.h>
|
||||
#include <alibabacloud/vcs/model/AddMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Et_industry_openapi;
|
||||
using namespace AlibabaCloud::Et_industry_openapi::Model;
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UploadDeviceDataDCResult::UploadDeviceDataDCResult() :
|
||||
AddMonitorResult::AddMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadDeviceDataDCResult::UploadDeviceDataDCResult(const std::string &payload) :
|
||||
AddMonitorResult::AddMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadDeviceDataDCResult::~UploadDeviceDataDCResult()
|
||||
AddMonitorResult::~AddMonitorResult()
|
||||
{}
|
||||
|
||||
void UploadDeviceDataDCResult::parse(const std::string &payload)
|
||||
void AddMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UploadDeviceDataDCResult::getMessage()const
|
||||
std::string AddMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadDeviceDataDCResult::getData()const
|
||||
std::string AddMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UploadDeviceDataDCResult::getCode()const
|
||||
std::string AddMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
40
vcs/src/model/GetBodyOptionsRequest.cc
Normal file
40
vcs/src/model/GetBodyOptionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/GetBodyOptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetBodyOptionsRequest;
|
||||
|
||||
GetBodyOptionsRequest::GetBodyOptionsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetBodyOptions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBodyOptionsRequest::~GetBodyOptionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetBodyOptionsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetBodyOptionsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
83
vcs/src/model/GetBodyOptionsResult.cc
Normal file
83
vcs/src/model/GetBodyOptionsResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/vcs/model/GetBodyOptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetBodyOptionsResult::GetBodyOptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBodyOptionsResult::GetBodyOptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBodyOptionsResult::~GetBodyOptionsResult()
|
||||
{}
|
||||
|
||||
void GetBodyOptionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Key"].isNull())
|
||||
dataObject.key = valueDataDataItem["Key"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
auto allOptionListNode = allDataNode["OptionList"]["OptionListItem"];
|
||||
for (auto allDataNodeOptionListOptionListItem : allOptionListNode)
|
||||
{
|
||||
DataItem::OptionListItem optionListObject;
|
||||
if(!allDataNodeOptionListOptionListItem["Key"].isNull())
|
||||
optionListObject.key = allDataNodeOptionListOptionListItem["Key"].asString();
|
||||
if(!allDataNodeOptionListOptionListItem["Name"].isNull())
|
||||
optionListObject.name = allDataNodeOptionListOptionListItem["Name"].asString();
|
||||
dataObject.optionList.push_back(optionListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBodyOptionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetBodyOptionsResult::DataItem> GetBodyOptionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBodyOptionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -49,14 +49,3 @@ void GetDeviceLiveUrlRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long GetDeviceLiveUrlRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void GetDeviceLiveUrlRequest::setDeviceId(long deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", std::to_string(deviceId));
|
||||
}
|
||||
|
||||
|
||||
73
vcs/src/model/GetDeviceVideoUrlRequest.cc
Normal file
73
vcs/src/model/GetDeviceVideoUrlRequest.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/vcs/model/GetDeviceVideoUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetDeviceVideoUrlRequest;
|
||||
|
||||
GetDeviceVideoUrlRequest::GetDeviceVideoUrlRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetDeviceVideoUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDeviceVideoUrlRequest::~GetDeviceVideoUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetDeviceVideoUrlRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlRequest::getGbId()const
|
||||
{
|
||||
return gbId_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setGbId(const std::string& gbId)
|
||||
{
|
||||
gbId_ = gbId;
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long GetDeviceVideoUrlRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetDeviceVideoUrlRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetDeviceVideoUrlRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
65
vcs/src/model/GetDeviceVideoUrlResult.cc
Normal file
65
vcs/src/model/GetDeviceVideoUrlResult.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/vcs/model/GetDeviceVideoUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetDeviceVideoUrlResult::GetDeviceVideoUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDeviceVideoUrlResult::GetDeviceVideoUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDeviceVideoUrlResult::~GetDeviceVideoUrlResult()
|
||||
{}
|
||||
|
||||
void GetDeviceVideoUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetDeviceVideoUrlResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/GetFaceOptionsRequest.cc
Normal file
40
vcs/src/model/GetFaceOptionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/GetFaceOptionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetFaceOptionsRequest;
|
||||
|
||||
GetFaceOptionsRequest::GetFaceOptionsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetFaceOptions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFaceOptionsRequest::~GetFaceOptionsRequest()
|
||||
{}
|
||||
|
||||
std::string GetFaceOptionsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetFaceOptionsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
83
vcs/src/model/GetFaceOptionsResult.cc
Normal file
83
vcs/src/model/GetFaceOptionsResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/vcs/model/GetFaceOptionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetFaceOptionsResult::GetFaceOptionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFaceOptionsResult::GetFaceOptionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFaceOptionsResult::~GetFaceOptionsResult()
|
||||
{}
|
||||
|
||||
void GetFaceOptionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Key"].isNull())
|
||||
dataObject.key = valueDataDataItem["Key"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
auto allOptionListNode = allDataNode["OptionList"]["OptionListItem"];
|
||||
for (auto allDataNodeOptionListOptionListItem : allOptionListNode)
|
||||
{
|
||||
DataItem::OptionListItem optionListObject;
|
||||
if(!allDataNodeOptionListOptionListItem["Key"].isNull())
|
||||
optionListObject.key = allDataNodeOptionListOptionListItem["Key"].asString();
|
||||
if(!allDataNodeOptionListOptionListItem["Name"].isNull())
|
||||
optionListObject.name = allDataNodeOptionListOptionListItem["Name"].asString();
|
||||
dataObject.optionList.push_back(optionListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetFaceOptionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetFaceOptionsResult::DataItem> GetFaceOptionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetFaceOptionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
84
vcs/src/model/GetMonitorResultRequest.cc
Normal file
84
vcs/src/model/GetMonitorResultRequest.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/vcs/model/GetMonitorResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetMonitorResultRequest;
|
||||
|
||||
GetMonitorResultRequest::GetMonitorResultRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetMonitorResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMonitorResultRequest::~GetMonitorResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetMonitorResultRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long GetMonitorResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getMinRecordId()const
|
||||
{
|
||||
return minRecordId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setMinRecordId(const std::string& minRecordId)
|
||||
{
|
||||
minRecordId_ = minRecordId;
|
||||
setBodyParameter("MinRecordId", minRecordId);
|
||||
}
|
||||
|
||||
std::string GetMonitorResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetMonitorResultRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
90
vcs/src/model/GetMonitorResultResult.cc
Normal file
90
vcs/src/model/GetMonitorResultResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/GetMonitorResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMonitorResultResult::GetMonitorResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMonitorResultResult::~GetMonitorResultResult()
|
||||
{}
|
||||
|
||||
void GetMonitorResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["MaxId"].isNull())
|
||||
data_.maxId = dataNode["MaxId"].asString();
|
||||
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["RightBottomY"].isNull())
|
||||
recordsItemObject.rightBottomY = dataNodeRecordsRecordsItem["RightBottomY"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["RightBottomX"].isNull())
|
||||
recordsItemObject.rightBottomX = dataNodeRecordsRecordsItem["RightBottomX"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["LeftUpY"].isNull())
|
||||
recordsItemObject.leftUpY = dataNodeRecordsRecordsItem["LeftUpY"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["LeftUpX"].isNull())
|
||||
recordsItemObject.leftUpX = dataNodeRecordsRecordsItem["LeftUpX"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["GbId"].isNull())
|
||||
recordsItemObject.gbId = dataNodeRecordsRecordsItem["GbId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Score"].isNull())
|
||||
recordsItemObject.score = dataNodeRecordsRecordsItem["Score"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["PicUrl"].isNull())
|
||||
recordsItemObject.picUrl = dataNodeRecordsRecordsItem["PicUrl"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["ShotTime"].isNull())
|
||||
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["MonitorPicUrl"].isNull())
|
||||
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMonitorResultResult::Data GetMonitorResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMonitorResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ void ListDevicesResult::parse(const std::string &payload)
|
||||
recordObject.bitRate = dataNodeRecordsRecord["BitRate"].asString();
|
||||
if(!dataNodeRecordsRecord["CoverImageUrl"].isNull())
|
||||
recordObject.coverImageUrl = dataNodeRecordsRecord["CoverImageUrl"].asString();
|
||||
if(!dataNodeRecordsRecord["GBid"].isNull())
|
||||
recordObject.gBid = dataNodeRecordsRecord["GBid"].asString();
|
||||
if(!dataNodeRecordsRecord["GbId"].isNull())
|
||||
recordObject.gbId = dataNodeRecordsRecord["GbId"].asString();
|
||||
if(!dataNodeRecordsRecord["DeviceAddress"].isNull())
|
||||
recordObject.deviceAddress = dataNodeRecordsRecord["DeviceAddress"].asString();
|
||||
if(!dataNodeRecordsRecord["DeviceDirection"].isNull())
|
||||
|
||||
106
vcs/src/model/SearchBodyRequest.cc
Normal file
106
vcs/src/model/SearchBodyRequest.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/vcs/model/SearchBodyRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::SearchBodyRequest;
|
||||
|
||||
SearchBodyRequest::SearchBodyRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "SearchBody")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchBodyRequest::~SearchBodyRequest()
|
||||
{}
|
||||
|
||||
std::string SearchBodyRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string SearchBodyRequest::getGbId()const
|
||||
{
|
||||
return gbId_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setGbId(const std::string& gbId)
|
||||
{
|
||||
gbId_ = gbId;
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
long SearchBodyRequest::getStartTimeStamp()const
|
||||
{
|
||||
return startTimeStamp_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setStartTimeStamp(long startTimeStamp)
|
||||
{
|
||||
startTimeStamp_ = startTimeStamp;
|
||||
setBodyParameter("StartTimeStamp", std::to_string(startTimeStamp));
|
||||
}
|
||||
|
||||
long SearchBodyRequest::getEndTimeStamp()const
|
||||
{
|
||||
return endTimeStamp_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setEndTimeStamp(long endTimeStamp)
|
||||
{
|
||||
endTimeStamp_ = endTimeStamp;
|
||||
setBodyParameter("EndTimeStamp", std::to_string(endTimeStamp));
|
||||
}
|
||||
|
||||
int SearchBodyRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setBodyParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int SearchBodyRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchBodyRequest::getOptionList()const
|
||||
{
|
||||
return optionList_;
|
||||
}
|
||||
|
||||
void SearchBodyRequest::setOptionList(const std::string& optionList)
|
||||
{
|
||||
optionList_ = optionList;
|
||||
setBodyParameter("OptionList", optionList);
|
||||
}
|
||||
|
||||
94
vcs/src/model/SearchBodyResult.cc
Normal file
94
vcs/src/model/SearchBodyResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/SearchBodyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
SearchBodyResult::SearchBodyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchBodyResult::SearchBodyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchBodyResult::~SearchBodyResult()
|
||||
{}
|
||||
|
||||
void SearchBodyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNo"].isNull())
|
||||
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["TotalPage"].isNull())
|
||||
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["Record"];
|
||||
for (auto dataNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Data::Record recordObject;
|
||||
if(!dataNodeRecordsRecord["GbId"].isNull())
|
||||
recordObject.gbId = dataNodeRecordsRecord["GbId"].asString();
|
||||
if(!dataNodeRecordsRecord["ImageUrl"].isNull())
|
||||
recordObject.imageUrl = dataNodeRecordsRecord["ImageUrl"].asString();
|
||||
if(!dataNodeRecordsRecord["LeftTopX"].isNull())
|
||||
recordObject.leftTopX = std::stof(dataNodeRecordsRecord["LeftTopX"].asString());
|
||||
if(!dataNodeRecordsRecord["LeftTopY"].isNull())
|
||||
recordObject.leftTopY = std::stof(dataNodeRecordsRecord["LeftTopY"].asString());
|
||||
if(!dataNodeRecordsRecord["RightBottomX"].isNull())
|
||||
recordObject.rightBottomX = std::stof(dataNodeRecordsRecord["RightBottomX"].asString());
|
||||
if(!dataNodeRecordsRecord["RightBottomY"].isNull())
|
||||
recordObject.rightBottomY = std::stof(dataNodeRecordsRecord["RightBottomY"].asString());
|
||||
if(!dataNodeRecordsRecord["Score"].isNull())
|
||||
recordObject.score = std::stof(dataNodeRecordsRecord["Score"].asString());
|
||||
if(!dataNodeRecordsRecord["TargetImageUrl"].isNull())
|
||||
recordObject.targetImageUrl = dataNodeRecordsRecord["TargetImageUrl"].asString();
|
||||
data_.records.push_back(recordObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SearchBodyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SearchBodyResult::Data SearchBodyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchBodyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/StopMonitorRequest.cc
Normal file
40
vcs/src/model/StopMonitorRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/StopMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::StopMonitorRequest;
|
||||
|
||||
StopMonitorRequest::StopMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "StopMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopMonitorRequest::~StopMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string StopMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/StopMonitorResult.cc
Normal file
65
vcs/src/model/StopMonitorResult.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/vcs/model/StopMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
StopMonitorResult::StopMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopMonitorResult::StopMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopMonitorResult::~StopMonitorResult()
|
||||
{}
|
||||
|
||||
void StopMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void UpdateDeviceRequest::setGbId(const std::string& gbId)
|
||||
setBodyParameter("GbId", gbId);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getBitRate()const
|
||||
{
|
||||
return bitRate_;
|
||||
}
|
||||
|
||||
void UpdateDeviceRequest::setBitRate(const std::string& bitRate)
|
||||
{
|
||||
bitRate_ = bitRate;
|
||||
setBodyParameter("BitRate", bitRate);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceDirection()const
|
||||
{
|
||||
return deviceDirection_;
|
||||
@@ -71,17 +82,6 @@ void UpdateDeviceRequest::setDeviceDirection(const std::string& deviceDirection)
|
||||
setBodyParameter("DeviceDirection", deviceDirection);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceRate()const
|
||||
{
|
||||
return deviceRate_;
|
||||
}
|
||||
|
||||
void UpdateDeviceRequest::setDeviceRate(const std::string& deviceRate)
|
||||
{
|
||||
deviceRate_ = deviceRate;
|
||||
setBodyParameter("DeviceRate", deviceRate);
|
||||
}
|
||||
|
||||
std::string UpdateDeviceRequest::getDeviceAddress()const
|
||||
{
|
||||
return deviceAddress_;
|
||||
|
||||
150
vcs/src/model/UpdateMonitorRequest.cc
Normal file
150
vcs/src/model/UpdateMonitorRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/UpdateMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UpdateMonitorRequest;
|
||||
|
||||
UpdateMonitorRequest::UpdateMonitorRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UpdateMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMonitorRequest::~UpdateMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceOperateType()const
|
||||
{
|
||||
return deviceOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceOperateType(const std::string& deviceOperateType)
|
||||
{
|
||||
deviceOperateType_ = deviceOperateType;
|
||||
setBodyParameter("DeviceOperateType", deviceOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicList()const
|
||||
{
|
||||
return picList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicList(const std::string& picList)
|
||||
{
|
||||
picList_ = picList;
|
||||
setBodyParameter("PicList", picList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setBodyParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getPicOperateType()const
|
||||
{
|
||||
return picOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setPicOperateType(const std::string& picOperateType)
|
||||
{
|
||||
picOperateType_ = picOperateType;
|
||||
setBodyParameter("PicOperateType", picOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeName()const
|
||||
{
|
||||
return attributeName_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeName(const std::string& attributeName)
|
||||
{
|
||||
attributeName_ = attributeName;
|
||||
setBodyParameter("AttributeName", attributeName);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeValueList()const
|
||||
{
|
||||
return attributeValueList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeValueList(const std::string& attributeValueList)
|
||||
{
|
||||
attributeValueList_ = attributeValueList;
|
||||
setBodyParameter("AttributeValueList", attributeValueList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getDeviceList()const
|
||||
{
|
||||
return deviceList_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setDeviceList(const std::string& deviceList)
|
||||
{
|
||||
deviceList_ = deviceList;
|
||||
setBodyParameter("DeviceList", deviceList);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getAttributeOperateType()const
|
||||
{
|
||||
return attributeOperateType_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setAttributeOperateType(const std::string& attributeOperateType)
|
||||
{
|
||||
attributeOperateType_ = attributeOperateType;
|
||||
setBodyParameter("AttributeOperateType", attributeOperateType);
|
||||
}
|
||||
|
||||
std::string UpdateMonitorRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void UpdateMonitorRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UpdateMonitorResult.cc
Normal file
65
vcs/src/model/UpdateMonitorResult.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/vcs/model/UpdateMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UpdateMonitorResult::UpdateMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMonitorResult::UpdateMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMonitorResult::~UpdateMonitorResult()
|
||||
{}
|
||||
|
||||
void UpdateMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user