Compare commits

...

17 Commits

Author SHA1 Message Date
sdk-team
c68f639be4 Generated 2018-01-11 for rtc. 2020-11-27 09:23:35 +00:00
sdk-team
3c991c9ca9 Add Certificate Manager Api. 2020-11-27 02:44:58 +00:00
sdk-team
8fdebda354 Support taskList. 2020-11-27 02:44:08 +00:00
sdk-team
b176afa994 ContrastFaceVerify Support Video. 2020-11-26 12:36:21 +00:00
sdk-team
2f2b5d5ffe Generated 2020-07-06, 2017-12-04 for Actiontrail. 2020-11-26 08:36:15 +00:00
sdk-team
ddc7e6e035 Generated 2020-07-06 for Actiontrail. 2020-11-26 08:28:55 +00:00
sdk-team
f937d7b2e5 Add tags api, include GetRepositoryTag, ListRepositoryTags, DeleteRepositoryTag. 2020-11-26 02:21:41 +00:00
sdk-team
5ae199177a Update DescribeScdnDomainCertificateInfo. 2020-11-25 08:35:15 +00:00
sdk-team
17a893fab4 Update SetVideoSeekConfig. 2020-11-25 08:32:35 +00:00
sdk-team
59fadb7eb2 Support DescribeDBClusterVersion. 2020-11-25 03:43:44 +00:00
sdk-team
efdcf35422 Add extension field for image translation. 2020-11-25 03:21:56 +00:00
sdk-team
4a101f7934 Supported Primary NetworkInterface IP for API DescribeInstances. 2020-11-25 02:37:28 +00:00
sdk-team
0e8ddb7c12 Create TSDB Open api. 2020-11-24 12:42:21 +00:00
sdk-team
830db8c54b Create TSDB Open api. 2020-11-24 12:34:23 +00:00
sdk-team
497a6c2290 Create lindorm Open api. 2020-11-24 12:25:23 +00:00
sdk-team
133087387b Create lindorm Open api. 2020-11-24 12:21:04 +00:00
sdk-team
df2d0d89e1 Update SearchFace. 2020-11-24 11:07:13 +00:00
252 changed files with 17342 additions and 366 deletions

View File

@@ -1,3 +1,54 @@
2020-11-27 Version: patch
- Generated 2018-01-11 for `rtc`.
2020-11-27 Version: patch
- Add Certificate Manager Api.
2020-11-27 Version: patch
- Support taskList.
2020-11-26 Version: patch
- ContrastFaceVerify Support Video.
2020-11-26 Version: patch
- Generated 2020-07-06, 2017-12-04 for `Actiontrail`.
2020-11-26 Version: patch
- Generated 2020-07-06 for `Actiontrail`.
2020-11-26 Version: patch
- Add tags api, include GetRepositoryTag, ListRepositoryTags, DeleteRepositoryTag.
2020-11-25 Version: patch
- Update DescribeScdnDomainCertificateInfo.
2020-11-25 Version: patch
- Update SetVideoSeekConfig.
2020-11-25 Version: patch
- Support DescribeDBClusterVersion.
2020-11-25 Version: patch
- Add extension field for image translation.
2020-11-25 Version: patch
- Supported Primary NetworkInterface IP for API DescribeInstances.
2020-11-24 Version: patch
- Create TSDB Open api.
2020-11-24 Version: patch
- Create TSDB Open api.
2020-11-24 Version: patch
- Create lindorm Open api.
2020-11-24 Version: patch
- Create lindorm Open api.
2020-11-24 Version: patch
- Update SearchFace.
2020-11-24 Version: patch
- Generated 2020-01-01 for `ddoscoo`.

View File

@@ -21,8 +21,12 @@ set(actiontrail_public_header
include/alibabacloud/actiontrail/ActiontrailExport.h )
set(actiontrail_public_header_model
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h
include/alibabacloud/actiontrail/model/CreateDeliveryHistoryJobResult.h
include/alibabacloud/actiontrail/model/CreateTrailRequest.h
include/alibabacloud/actiontrail/model/CreateTrailResult.h
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobRequest.h
include/alibabacloud/actiontrail/model/DeleteDeliveryHistoryJobResult.h
include/alibabacloud/actiontrail/model/DeleteTrailRequest.h
include/alibabacloud/actiontrail/model/DeleteTrailResult.h
include/alibabacloud/actiontrail/model/DescribeRegionsRequest.h
@@ -31,6 +35,8 @@ set(actiontrail_public_header_model
include/alibabacloud/actiontrail/model/DescribeTrailsResult.h
include/alibabacloud/actiontrail/model/GetTrailStatusRequest.h
include/alibabacloud/actiontrail/model/GetTrailStatusResult.h
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h
include/alibabacloud/actiontrail/model/ListDeliveryHistoryJobsResult.h
include/alibabacloud/actiontrail/model/LookupEventsRequest.h
include/alibabacloud/actiontrail/model/LookupEventsResult.h
include/alibabacloud/actiontrail/model/StartLoggingRequest.h
@@ -42,8 +48,12 @@ set(actiontrail_public_header_model
set(actiontrail_src
src/ActiontrailClient.cc
src/model/CreateDeliveryHistoryJobRequest.cc
src/model/CreateDeliveryHistoryJobResult.cc
src/model/CreateTrailRequest.cc
src/model/CreateTrailResult.cc
src/model/DeleteDeliveryHistoryJobRequest.cc
src/model/DeleteDeliveryHistoryJobResult.cc
src/model/DeleteTrailRequest.cc
src/model/DeleteTrailResult.cc
src/model/DescribeRegionsRequest.cc
@@ -52,6 +62,8 @@ set(actiontrail_src
src/model/DescribeTrailsResult.cc
src/model/GetTrailStatusRequest.cc
src/model/GetTrailStatusResult.cc
src/model/ListDeliveryHistoryJobsRequest.cc
src/model/ListDeliveryHistoryJobsResult.cc
src/model/LookupEventsRequest.cc
src/model/LookupEventsResult.cc
src/model/StartLoggingRequest.cc

View File

@@ -22,8 +22,12 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "ActiontrailExport.h"
#include "model/CreateDeliveryHistoryJobRequest.h"
#include "model/CreateDeliveryHistoryJobResult.h"
#include "model/CreateTrailRequest.h"
#include "model/CreateTrailResult.h"
#include "model/DeleteDeliveryHistoryJobRequest.h"
#include "model/DeleteDeliveryHistoryJobResult.h"
#include "model/DeleteTrailRequest.h"
#include "model/DeleteTrailResult.h"
#include "model/DescribeRegionsRequest.h"
@@ -32,6 +36,8 @@
#include "model/DescribeTrailsResult.h"
#include "model/GetTrailStatusRequest.h"
#include "model/GetTrailStatusResult.h"
#include "model/ListDeliveryHistoryJobsRequest.h"
#include "model/ListDeliveryHistoryJobsResult.h"
#include "model/LookupEventsRequest.h"
#include "model/LookupEventsResult.h"
#include "model/StartLoggingRequest.h"
@@ -49,9 +55,15 @@ namespace AlibabaCloud
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ActiontrailClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateDeliveryHistoryJobResult> CreateDeliveryHistoryJobOutcome;
typedef std::future<CreateDeliveryHistoryJobOutcome> CreateDeliveryHistoryJobOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::CreateDeliveryHistoryJobRequest&, const CreateDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeliveryHistoryJobAsyncHandler;
typedef Outcome<Error, Model::CreateTrailResult> CreateTrailOutcome;
typedef std::future<CreateTrailOutcome> CreateTrailOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::CreateTrailRequest&, const CreateTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTrailAsyncHandler;
typedef Outcome<Error, Model::DeleteDeliveryHistoryJobResult> DeleteDeliveryHistoryJobOutcome;
typedef std::future<DeleteDeliveryHistoryJobOutcome> DeleteDeliveryHistoryJobOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::DeleteDeliveryHistoryJobRequest&, const DeleteDeliveryHistoryJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeliveryHistoryJobAsyncHandler;
typedef Outcome<Error, Model::DeleteTrailResult> DeleteTrailOutcome;
typedef std::future<DeleteTrailOutcome> DeleteTrailOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::DeleteTrailRequest&, const DeleteTrailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTrailAsyncHandler;
@@ -64,6 +76,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTrailStatusResult> GetTrailStatusOutcome;
typedef std::future<GetTrailStatusOutcome> GetTrailStatusOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::GetTrailStatusRequest&, const GetTrailStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTrailStatusAsyncHandler;
typedef Outcome<Error, Model::ListDeliveryHistoryJobsResult> ListDeliveryHistoryJobsOutcome;
typedef std::future<ListDeliveryHistoryJobsOutcome> ListDeliveryHistoryJobsOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::ListDeliveryHistoryJobsRequest&, const ListDeliveryHistoryJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeliveryHistoryJobsAsyncHandler;
typedef Outcome<Error, Model::LookupEventsResult> LookupEventsOutcome;
typedef std::future<LookupEventsOutcome> LookupEventsOutcomeCallable;
typedef std::function<void(const ActiontrailClient*, const Model::LookupEventsRequest&, const LookupEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LookupEventsAsyncHandler;
@@ -81,9 +96,15 @@ namespace AlibabaCloud
ActiontrailClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
ActiontrailClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~ActiontrailClient();
CreateDeliveryHistoryJobOutcome createDeliveryHistoryJob(const Model::CreateDeliveryHistoryJobRequest &request)const;
void createDeliveryHistoryJobAsync(const Model::CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDeliveryHistoryJobOutcomeCallable createDeliveryHistoryJobCallable(const Model::CreateDeliveryHistoryJobRequest& request) const;
CreateTrailOutcome createTrail(const Model::CreateTrailRequest &request)const;
void createTrailAsync(const Model::CreateTrailRequest& request, const CreateTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTrailOutcomeCallable createTrailCallable(const Model::CreateTrailRequest& request) const;
DeleteDeliveryHistoryJobOutcome deleteDeliveryHistoryJob(const Model::DeleteDeliveryHistoryJobRequest &request)const;
void deleteDeliveryHistoryJobAsync(const Model::DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeliveryHistoryJobOutcomeCallable deleteDeliveryHistoryJobCallable(const Model::DeleteDeliveryHistoryJobRequest& request) const;
DeleteTrailOutcome deleteTrail(const Model::DeleteTrailRequest &request)const;
void deleteTrailAsync(const Model::DeleteTrailRequest& request, const DeleteTrailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTrailOutcomeCallable deleteTrailCallable(const Model::DeleteTrailRequest& request) const;
@@ -96,6 +117,9 @@ namespace AlibabaCloud
GetTrailStatusOutcome getTrailStatus(const Model::GetTrailStatusRequest &request)const;
void getTrailStatusAsync(const Model::GetTrailStatusRequest& request, const GetTrailStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTrailStatusOutcomeCallable getTrailStatusCallable(const Model::GetTrailStatusRequest& request) const;
ListDeliveryHistoryJobsOutcome listDeliveryHistoryJobs(const Model::ListDeliveryHistoryJobsRequest &request)const;
void listDeliveryHistoryJobsAsync(const Model::ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDeliveryHistoryJobsOutcomeCallable listDeliveryHistoryJobsCallable(const Model::ListDeliveryHistoryJobsRequest& request) const;
LookupEventsOutcome lookupEvents(const Model::LookupEventsRequest &request)const;
void lookupEventsAsync(const Model::LookupEventsRequest& request, const LookupEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LookupEventsOutcomeCallable lookupEventsCallable(const Model::LookupEventsRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobRequest : public RpcServiceRequest
{
public:
CreateDeliveryHistoryJobRequest();
~CreateDeliveryHistoryJobRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getTrailName()const;
void setTrailName(const std::string& trailName);
private:
std::string clientToken_;
std::string trailName_;
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT CreateDeliveryHistoryJobResult : public ServiceResult
{
public:
CreateDeliveryHistoryJobResult();
explicit CreateDeliveryHistoryJobResult(const std::string &payload);
~CreateDeliveryHistoryJobResult();
int getJobId()const;
protected:
void parse(const std::string &payload);
private:
int jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_CREATEDELIVERYHISTORYJOBRESULT_H_

View 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_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobRequest : public RpcServiceRequest
{
public:
DeleteDeliveryHistoryJobRequest();
~DeleteDeliveryHistoryJobRequest();
int getJobId()const;
void setJobId(int jobId);
private:
int jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBREQUEST_H_

View 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_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT DeleteDeliveryHistoryJobResult : public ServiceResult
{
public:
DeleteDeliveryHistoryJobResult();
explicit DeleteDeliveryHistoryJobResult(const std::string &payload);
~DeleteDeliveryHistoryJobResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_DELETEDELIVERYHISTORYJOBRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsRequest : public RpcServiceRequest
{
public:
ListDeliveryHistoryJobsRequest();
~ListDeliveryHistoryJobsRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNumber_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
#define ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/actiontrail/ActiontrailExport.h>
namespace AlibabaCloud
{
namespace Actiontrail
{
namespace Model
{
class ALIBABACLOUD_ACTIONTRAIL_EXPORT ListDeliveryHistoryJobsResult : public ServiceResult
{
public:
struct DeliveryHistoryJob
{
int jobStatus;
std::string createdTime;
std::string endTime;
std::string homeRegion;
std::string startTime;
std::string trailName;
std::string updatedTime;
long jobId;
};
ListDeliveryHistoryJobsResult();
explicit ListDeliveryHistoryJobsResult(const std::string &payload);
~ListDeliveryHistoryJobsResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<DeliveryHistoryJob> getDeliveryHistoryJobs()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<DeliveryHistoryJob> deliveryHistoryJobs_;
};
}
}
}
#endif // !ALIBABACLOUD_ACTIONTRAIL_MODEL_LISTDELIVERYHISTORYJOBSRESULT_H_

View File

@@ -51,6 +51,42 @@ ActiontrailClient::ActiontrailClient(const std::string & accessKeyId, const std:
ActiontrailClient::~ActiontrailClient()
{}
ActiontrailClient::CreateDeliveryHistoryJobOutcome ActiontrailClient::createDeliveryHistoryJob(const CreateDeliveryHistoryJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDeliveryHistoryJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDeliveryHistoryJobOutcome(CreateDeliveryHistoryJobResult(outcome.result()));
else
return CreateDeliveryHistoryJobOutcome(outcome.error());
}
void ActiontrailClient::createDeliveryHistoryJobAsync(const CreateDeliveryHistoryJobRequest& request, const CreateDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDeliveryHistoryJob(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::CreateDeliveryHistoryJobOutcomeCallable ActiontrailClient::createDeliveryHistoryJobCallable(const CreateDeliveryHistoryJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDeliveryHistoryJobOutcome()>>(
[this, request]()
{
return this->createDeliveryHistoryJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::CreateTrailOutcome ActiontrailClient::createTrail(const CreateTrailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -87,6 +123,42 @@ ActiontrailClient::CreateTrailOutcomeCallable ActiontrailClient::createTrailCall
return task->get_future();
}
ActiontrailClient::DeleteDeliveryHistoryJobOutcome ActiontrailClient::deleteDeliveryHistoryJob(const DeleteDeliveryHistoryJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDeliveryHistoryJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDeliveryHistoryJobOutcome(DeleteDeliveryHistoryJobResult(outcome.result()));
else
return DeleteDeliveryHistoryJobOutcome(outcome.error());
}
void ActiontrailClient::deleteDeliveryHistoryJobAsync(const DeleteDeliveryHistoryJobRequest& request, const DeleteDeliveryHistoryJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDeliveryHistoryJob(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::DeleteDeliveryHistoryJobOutcomeCallable ActiontrailClient::deleteDeliveryHistoryJobCallable(const DeleteDeliveryHistoryJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDeliveryHistoryJobOutcome()>>(
[this, request]()
{
return this->deleteDeliveryHistoryJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::DeleteTrailOutcome ActiontrailClient::deleteTrail(const DeleteTrailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +303,42 @@ ActiontrailClient::GetTrailStatusOutcomeCallable ActiontrailClient::getTrailStat
return task->get_future();
}
ActiontrailClient::ListDeliveryHistoryJobsOutcome ActiontrailClient::listDeliveryHistoryJobs(const ListDeliveryHistoryJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDeliveryHistoryJobsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDeliveryHistoryJobsOutcome(ListDeliveryHistoryJobsResult(outcome.result()));
else
return ListDeliveryHistoryJobsOutcome(outcome.error());
}
void ActiontrailClient::listDeliveryHistoryJobsAsync(const ListDeliveryHistoryJobsRequest& request, const ListDeliveryHistoryJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDeliveryHistoryJobs(request), context);
};
asyncExecute(new Runnable(fn));
}
ActiontrailClient::ListDeliveryHistoryJobsOutcomeCallable ActiontrailClient::listDeliveryHistoryJobsCallable(const ListDeliveryHistoryJobsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDeliveryHistoryJobsOutcome()>>(
[this, request]()
{
return this->listDeliveryHistoryJobs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ActiontrailClient::LookupEventsOutcome ActiontrailClient::lookupEvents(const LookupEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::CreateDeliveryHistoryJobRequest;
CreateDeliveryHistoryJobRequest::CreateDeliveryHistoryJobRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "CreateDeliveryHistoryJob")
{
setMethod(HttpRequest::Method::Post);
}
CreateDeliveryHistoryJobRequest::~CreateDeliveryHistoryJobRequest()
{}
std::string CreateDeliveryHistoryJobRequest::getClientToken()const
{
return clientToken_;
}
void CreateDeliveryHistoryJobRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateDeliveryHistoryJobRequest::getTrailName()const
{
return trailName_;
}
void CreateDeliveryHistoryJobRequest::setTrailName(const std::string& trailName)
{
trailName_ = trailName;
setParameter("TrailName", trailName);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/CreateDeliveryHistoryJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult() :
ServiceResult()
{}
CreateDeliveryHistoryJobResult::CreateDeliveryHistoryJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDeliveryHistoryJobResult::~CreateDeliveryHistoryJobResult()
{}
void CreateDeliveryHistoryJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = std::stoi(value["JobId"].asString());
}
int CreateDeliveryHistoryJobResult::getJobId()const
{
return jobId_;
}

View 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/actiontrail/model/DeleteDeliveryHistoryJobRequest.h>
using AlibabaCloud::Actiontrail::Model::DeleteDeliveryHistoryJobRequest;
DeleteDeliveryHistoryJobRequest::DeleteDeliveryHistoryJobRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "DeleteDeliveryHistoryJob")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDeliveryHistoryJobRequest::~DeleteDeliveryHistoryJobRequest()
{}
int DeleteDeliveryHistoryJobRequest::getJobId()const
{
return jobId_;
}
void DeleteDeliveryHistoryJobRequest::setJobId(int jobId)
{
jobId_ = jobId;
setParameter("JobId", std::to_string(jobId));
}

View 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/actiontrail/model/DeleteDeliveryHistoryJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult() :
ServiceResult()
{}
DeleteDeliveryHistoryJobResult::DeleteDeliveryHistoryJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDeliveryHistoryJobResult::~DeleteDeliveryHistoryJobResult()
{}
void DeleteDeliveryHistoryJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/actiontrail/model/ListDeliveryHistoryJobsRequest.h>
using AlibabaCloud::Actiontrail::Model::ListDeliveryHistoryJobsRequest;
ListDeliveryHistoryJobsRequest::ListDeliveryHistoryJobsRequest() :
RpcServiceRequest("actiontrail", "2020-07-06", "ListDeliveryHistoryJobs")
{
setMethod(HttpRequest::Method::Post);
}
ListDeliveryHistoryJobsRequest::~ListDeliveryHistoryJobsRequest()
{}
int ListDeliveryHistoryJobsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListDeliveryHistoryJobsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListDeliveryHistoryJobsRequest::getPageSize()const
{
return pageSize_;
}
void ListDeliveryHistoryJobsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/actiontrail/model/ListDeliveryHistoryJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Actiontrail;
using namespace AlibabaCloud::Actiontrail::Model;
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult() :
ServiceResult()
{}
ListDeliveryHistoryJobsResult::ListDeliveryHistoryJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDeliveryHistoryJobsResult::~ListDeliveryHistoryJobsResult()
{}
void ListDeliveryHistoryJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDeliveryHistoryJobsNode = value["DeliveryHistoryJobs"]["DeliveryHistoryJob"];
for (auto valueDeliveryHistoryJobsDeliveryHistoryJob : allDeliveryHistoryJobsNode)
{
DeliveryHistoryJob deliveryHistoryJobsObject;
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].isNull())
deliveryHistoryJobsObject.trailName = valueDeliveryHistoryJobsDeliveryHistoryJob["TrailName"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].isNull())
deliveryHistoryJobsObject.createdTime = valueDeliveryHistoryJobsDeliveryHistoryJob["CreatedTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].isNull())
deliveryHistoryJobsObject.updatedTime = valueDeliveryHistoryJobsDeliveryHistoryJob["UpdatedTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].isNull())
deliveryHistoryJobsObject.homeRegion = valueDeliveryHistoryJobsDeliveryHistoryJob["HomeRegion"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].isNull())
deliveryHistoryJobsObject.startTime = valueDeliveryHistoryJobsDeliveryHistoryJob["StartTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].isNull())
deliveryHistoryJobsObject.endTime = valueDeliveryHistoryJobsDeliveryHistoryJob["EndTime"].asString();
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].isNull())
deliveryHistoryJobsObject.jobId = std::stol(valueDeliveryHistoryJobsDeliveryHistoryJob["JobId"].asString());
if(!valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].isNull())
deliveryHistoryJobsObject.jobStatus = std::stoi(valueDeliveryHistoryJobsDeliveryHistoryJob["JobStatus"].asString());
deliveryHistoryJobs_.push_back(deliveryHistoryJobsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int ListDeliveryHistoryJobsResult::getTotalCount()const
{
return totalCount_;
}
int ListDeliveryHistoryJobsResult::getPageSize()const
{
return pageSize_;
}
int ListDeliveryHistoryJobsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListDeliveryHistoryJobsResult::DeliveryHistoryJob> ListDeliveryHistoryJobsResult::getDeliveryHistoryJobs()const
{
return deliveryHistoryJobs_;
}

View File

@@ -37,8 +37,6 @@ namespace AlibabaCloud
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
@@ -48,7 +46,6 @@ namespace AlibabaCloud
private:
std::string startTime_;
std::string securityToken_;
std::string domainName_;
std::string endTime_;
long ownerId_;

View File

@@ -44,8 +44,8 @@ namespace AlibabaCloud
~DescribeDomainPvDataResult();
std::string getEndTime()const;
std::string getDomainName()const;
std::string getDataInterval()const;
std::string getStartTime()const;
std::string getDataInterval()const;
std::vector<UsageData> getPvDataInterval()const;
protected:
@@ -53,8 +53,8 @@ namespace AlibabaCloud
private:
std::string endTime_;
std::string domainName_;
std::string dataInterval_;
std::string startTime_;
std::string dataInterval_;
std::vector<UsageData> pvDataInterval_;
};

View File

@@ -35,23 +35,20 @@ namespace AlibabaCloud
DescribeDomainUvDataRequest();
~DescribeDomainUvDataRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
private:
std::string startTime_;
std::string domainName_;
std::string endTime_;
std::string startTime_;
long ownerId_;
std::string securityToken_;
};
}

View File

@@ -45,8 +45,8 @@ namespace AlibabaCloud
std::vector<UsageData> getUvDataInterval()const;
std::string getEndTime()const;
std::string getDomainName()const;
std::string getDataInterval()const;
std::string getStartTime()const;
std::string getDataInterval()const;
protected:
void parse(const std::string &payload);
@@ -54,8 +54,8 @@ namespace AlibabaCloud
std::vector<UsageData> uvDataInterval_;
std::string endTime_;
std::string domainName_;
std::string dataInterval_;
std::string startTime_;
std::string dataInterval_;
};
}

View File

@@ -35,20 +35,17 @@ namespace AlibabaCloud
DescribeUserVipsByDomainRequest();
~DescribeUserVipsByDomainRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getAvailable()const;
void setAvailable(const std::string& available);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
private:
std::string domainName_;
std::string available_;
std::string domainName_;
long ownerId_;
std::string securityToken_;
};
}

View File

@@ -35,20 +35,20 @@ namespace AlibabaCloud
SetVideoSeekConfigRequest();
~SetVideoSeekConfigRequest();
std::string getEnable()const;
void setEnable(const std::string& enable);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
long getConfigId()const;
void setConfigId(long configId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getEnable()const;
void setEnable(const std::string& enable);
private:
std::string enable_;
std::string domainName_;
long ownerId_;
long configId_;
std::string securityToken_;
std::string enable_;
};
}

View File

@@ -38,17 +38,6 @@ void DescribeDomainPvDataRequest::setStartTime(const std::string& startTime)
setParameter("StartTime", startTime);
}
std::string DescribeDomainPvDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainPvDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeDomainPvDataRequest::getDomainName()const
{
return domainName_;

View File

@@ -43,20 +43,20 @@ void DescribeDomainPvDataResult::parse(const std::string &payload)
for (auto valuePvDataIntervalUsageData : allPvDataIntervalNode)
{
UsageData pvDataIntervalObject;
if(!valuePvDataIntervalUsageData["TimeStamp"].isNull())
pvDataIntervalObject.timeStamp = valuePvDataIntervalUsageData["TimeStamp"].asString();
if(!valuePvDataIntervalUsageData["Value"].isNull())
pvDataIntervalObject.value = valuePvDataIntervalUsageData["Value"].asString();
if(!valuePvDataIntervalUsageData["TimeStamp"].isNull())
pvDataIntervalObject.timeStamp = valuePvDataIntervalUsageData["TimeStamp"].asString();
pvDataInterval_.push_back(pvDataIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
@@ -70,16 +70,16 @@ std::string DescribeDomainPvDataResult::getDomainName()const
return domainName_;
}
std::string DescribeDomainPvDataResult::getDataInterval()const
{
return dataInterval_;
}
std::string DescribeDomainPvDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeDomainPvDataResult::getDataInterval()const
{
return dataInterval_;
}
std::vector<DescribeDomainPvDataResult::UsageData> DescribeDomainPvDataResult::getPvDataInterval()const
{
return pvDataInterval_;

View File

@@ -27,6 +27,17 @@ DescribeDomainUvDataRequest::DescribeDomainUvDataRequest() :
DescribeDomainUvDataRequest::~DescribeDomainUvDataRequest()
{}
std::string DescribeDomainUvDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainUvDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainUvDataRequest::getDomainName()const
{
return domainName_;
@@ -49,17 +60,6 @@ void DescribeDomainUvDataRequest::setEndTime(const std::string& endTime)
setParameter("EndTime", endTime);
}
std::string DescribeDomainUvDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainUvDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
long DescribeDomainUvDataRequest::getOwnerId()const
{
return ownerId_;
@@ -71,14 +71,3 @@ void DescribeDomainUvDataRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainUvDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeDomainUvDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -43,20 +43,20 @@ void DescribeDomainUvDataResult::parse(const std::string &payload)
for (auto valueUvDataIntervalUsageData : allUvDataIntervalNode)
{
UsageData uvDataIntervalObject;
if(!valueUvDataIntervalUsageData["TimeStamp"].isNull())
uvDataIntervalObject.timeStamp = valueUvDataIntervalUsageData["TimeStamp"].asString();
if(!valueUvDataIntervalUsageData["Value"].isNull())
uvDataIntervalObject.value = valueUvDataIntervalUsageData["Value"].asString();
if(!valueUvDataIntervalUsageData["TimeStamp"].isNull())
uvDataIntervalObject.timeStamp = valueUvDataIntervalUsageData["TimeStamp"].asString();
uvDataInterval_.push_back(uvDataIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
@@ -75,13 +75,13 @@ std::string DescribeDomainUvDataResult::getDomainName()const
return domainName_;
}
std::string DescribeDomainUvDataResult::getDataInterval()const
{
return dataInterval_;
}
std::string DescribeDomainUvDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeDomainUvDataResult::getDataInterval()const
{
return dataInterval_;
}

View File

@@ -21,23 +21,12 @@ using AlibabaCloud::Cdn::Model::DescribeUserVipsByDomainRequest;
DescribeUserVipsByDomainRequest::DescribeUserVipsByDomainRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeUserVipsByDomain")
{
setMethod(HttpRequest::Method::Post);
setMethod(HttpRequest::Method::Get);
}
DescribeUserVipsByDomainRequest::~DescribeUserVipsByDomainRequest()
{}
std::string DescribeUserVipsByDomainRequest::getDomainName()const
{
return domainName_;
}
void DescribeUserVipsByDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeUserVipsByDomainRequest::getAvailable()const
{
return available_;
@@ -49,6 +38,17 @@ void DescribeUserVipsByDomainRequest::setAvailable(const std::string& available)
setParameter("Available", available);
}
std::string DescribeUserVipsByDomainRequest::getDomainName()const
{
return domainName_;
}
void DescribeUserVipsByDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeUserVipsByDomainRequest::getOwnerId()const
{
return ownerId_;
@@ -60,14 +60,3 @@ void DescribeUserVipsByDomainRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeUserVipsByDomainRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeUserVipsByDomainRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cdn::Model::SetVideoSeekConfigRequest;
SetVideoSeekConfigRequest::SetVideoSeekConfigRequest() :
RpcServiceRequest("cdn", "2018-05-10", "SetVideoSeekConfig")
RpcServiceRequest("cdn", "2014-11-11", "SetVideoSeekConfig")
{
setMethod(HttpRequest::Method::Post);
}
@@ -27,17 +27,6 @@ SetVideoSeekConfigRequest::SetVideoSeekConfigRequest() :
SetVideoSeekConfigRequest::~SetVideoSeekConfigRequest()
{}
std::string SetVideoSeekConfigRequest::getEnable()const
{
return enable_;
}
void SetVideoSeekConfigRequest::setEnable(const std::string& enable)
{
enable_ = enable;
setParameter("Enable", enable);
}
std::string SetVideoSeekConfigRequest::getDomainName()const
{
return domainName_;
@@ -60,14 +49,25 @@ void SetVideoSeekConfigRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
long SetVideoSeekConfigRequest::getConfigId()const
std::string SetVideoSeekConfigRequest::getSecurityToken()const
{
return configId_;
return securityToken_;
}
void SetVideoSeekConfigRequest::setConfigId(long configId)
void SetVideoSeekConfigRequest::setSecurityToken(const std::string& securityToken)
{
configId_ = configId;
setParameter("ConfigId", std::to_string(configId));
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string SetVideoSeekConfigRequest::getEnable()const
{
return enable_;
}
void SetVideoSeekConfigRequest::setEnable(const std::string& enable)
{
enable_ = enable;
setParameter("Enable", enable);
}

View File

@@ -63,6 +63,8 @@ namespace AlibabaCloud
void setIp(const std::string& ip);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getFaceContrastFile()const;
void setFaceContrastFile(const std::string& faceContrastFile);
long getSceneId()const;
void setSceneId(long sceneId);
std::string getOssBucketName()const;
@@ -83,6 +85,7 @@ namespace AlibabaCloud
std::string certName_;
std::string ip_;
std::string mobile_;
std::string faceContrastFile_;
long sceneId_;
std::string ossBucketName_;

View File

@@ -181,6 +181,17 @@ void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
setBodyParameter("Mobile", mobile);
}
std::string ContrastFaceVerifyRequest::getFaceContrastFile()const
{
return faceContrastFile_;
}
void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string& faceContrastFile)
{
faceContrastFile_ = faceContrastFile;
setBodyParameter("FaceContrastFile", faceContrastFile);
}
long ContrastFaceVerifyRequest::getSceneId()const
{
return sceneId_;

View File

@@ -51,6 +51,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/DeleteRepositoryGroupResult.h
include/alibabacloud/codeup/model/DeleteRepositoryMemberRequest.h
include/alibabacloud/codeup/model/DeleteRepositoryMemberResult.h
include/alibabacloud/codeup/model/DeleteRepositoryTagRequest.h
include/alibabacloud/codeup/model/DeleteRepositoryTagResult.h
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
include/alibabacloud/codeup/model/GetBranchInfoResult.h
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
@@ -63,6 +65,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/GetProjectMemberResult.h
include/alibabacloud/codeup/model/GetRepositoryInfoRequest.h
include/alibabacloud/codeup/model/GetRepositoryInfoResult.h
include/alibabacloud/codeup/model/GetRepositoryTagRequest.h
include/alibabacloud/codeup/model/GetRepositoryTagResult.h
include/alibabacloud/codeup/model/ListGroupMemberRequest.h
include/alibabacloud/codeup/model/ListGroupMemberResult.h
include/alibabacloud/codeup/model/ListGroupRepositoriesRequest.h
@@ -73,6 +77,8 @@ set(codeup_public_header_model
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
include/alibabacloud/codeup/model/ListRepositoryMemberResult.h
include/alibabacloud/codeup/model/ListRepositoryTagsRequest.h
include/alibabacloud/codeup/model/ListRepositoryTagsResult.h
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
include/alibabacloud/codeup/model/MergeMergeRequestRequest.h
@@ -116,6 +122,8 @@ set(codeup_src
src/model/DeleteRepositoryGroupResult.cc
src/model/DeleteRepositoryMemberRequest.cc
src/model/DeleteRepositoryMemberResult.cc
src/model/DeleteRepositoryTagRequest.cc
src/model/DeleteRepositoryTagResult.cc
src/model/GetBranchInfoRequest.cc
src/model/GetBranchInfoResult.cc
src/model/GetCodeupOrganizationRequest.cc
@@ -128,6 +136,8 @@ set(codeup_src
src/model/GetProjectMemberResult.cc
src/model/GetRepositoryInfoRequest.cc
src/model/GetRepositoryInfoResult.cc
src/model/GetRepositoryTagRequest.cc
src/model/GetRepositoryTagResult.cc
src/model/ListGroupMemberRequest.cc
src/model/ListGroupMemberResult.cc
src/model/ListGroupRepositoriesRequest.cc
@@ -138,6 +148,8 @@ set(codeup_src
src/model/ListRepositoryBranchesResult.cc
src/model/ListRepositoryMemberRequest.cc
src/model/ListRepositoryMemberResult.cc
src/model/ListRepositoryTagsRequest.cc
src/model/ListRepositoryTagsResult.cc
src/model/ListRepositoryTreeRequest.cc
src/model/ListRepositoryTreeResult.cc
src/model/MergeMergeRequestRequest.cc

View File

@@ -52,6 +52,8 @@
#include "model/DeleteRepositoryGroupResult.h"
#include "model/DeleteRepositoryMemberRequest.h"
#include "model/DeleteRepositoryMemberResult.h"
#include "model/DeleteRepositoryTagRequest.h"
#include "model/DeleteRepositoryTagResult.h"
#include "model/GetBranchInfoRequest.h"
#include "model/GetBranchInfoResult.h"
#include "model/GetCodeupOrganizationRequest.h"
@@ -64,6 +66,8 @@
#include "model/GetProjectMemberResult.h"
#include "model/GetRepositoryInfoRequest.h"
#include "model/GetRepositoryInfoResult.h"
#include "model/GetRepositoryTagRequest.h"
#include "model/GetRepositoryTagResult.h"
#include "model/ListGroupMemberRequest.h"
#include "model/ListGroupMemberResult.h"
#include "model/ListGroupRepositoriesRequest.h"
@@ -74,6 +78,8 @@
#include "model/ListRepositoryBranchesResult.h"
#include "model/ListRepositoryMemberRequest.h"
#include "model/ListRepositoryMemberResult.h"
#include "model/ListRepositoryTagsRequest.h"
#include "model/ListRepositoryTagsResult.h"
#include "model/ListRepositoryTreeRequest.h"
#include "model/ListRepositoryTreeResult.h"
#include "model/MergeMergeRequestRequest.h"
@@ -138,6 +144,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteRepositoryMemberResult> DeleteRepositoryMemberOutcome;
typedef std::future<DeleteRepositoryMemberOutcome> DeleteRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryMemberRequest&, const DeleteRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryMemberAsyncHandler;
typedef Outcome<Error, Model::DeleteRepositoryTagResult> DeleteRepositoryTagOutcome;
typedef std::future<DeleteRepositoryTagOutcome> DeleteRepositoryTagOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagRequest&, const DeleteRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagAsyncHandler;
typedef Outcome<Error, Model::GetBranchInfoResult> GetBranchInfoOutcome;
typedef std::future<GetBranchInfoOutcome> GetBranchInfoOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetBranchInfoRequest&, const GetBranchInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBranchInfoAsyncHandler;
@@ -156,6 +165,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetRepositoryInfoResult> GetRepositoryInfoOutcome;
typedef std::future<GetRepositoryInfoOutcome> GetRepositoryInfoOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryInfoRequest&, const GetRepositoryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryInfoAsyncHandler;
typedef Outcome<Error, Model::GetRepositoryTagResult> GetRepositoryTagOutcome;
typedef std::future<GetRepositoryTagOutcome> GetRepositoryTagOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryTagRequest&, const GetRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryTagAsyncHandler;
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
@@ -171,6 +183,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListRepositoryMemberResult> ListRepositoryMemberOutcome;
typedef std::future<ListRepositoryMemberOutcome> ListRepositoryMemberOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryMemberRequest&, const ListRepositoryMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryMemberAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryTagsResult> ListRepositoryTagsOutcome;
typedef std::future<ListRepositoryTagsOutcome> ListRepositoryTagsOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTagsRequest&, const ListRepositoryTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTagsAsyncHandler;
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
@@ -236,6 +251,9 @@ namespace AlibabaCloud
DeleteRepositoryMemberOutcome deleteRepositoryMember(const Model::DeleteRepositoryMemberRequest &request)const;
void deleteRepositoryMemberAsync(const Model::DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryMemberOutcomeCallable deleteRepositoryMemberCallable(const Model::DeleteRepositoryMemberRequest& request) const;
DeleteRepositoryTagOutcome deleteRepositoryTag(const Model::DeleteRepositoryTagRequest &request)const;
void deleteRepositoryTagAsync(const Model::DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRepositoryTagOutcomeCallable deleteRepositoryTagCallable(const Model::DeleteRepositoryTagRequest& request) const;
GetBranchInfoOutcome getBranchInfo(const Model::GetBranchInfoRequest &request)const;
void getBranchInfoAsync(const Model::GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBranchInfoOutcomeCallable getBranchInfoCallable(const Model::GetBranchInfoRequest& request) const;
@@ -254,6 +272,9 @@ namespace AlibabaCloud
GetRepositoryInfoOutcome getRepositoryInfo(const Model::GetRepositoryInfoRequest &request)const;
void getRepositoryInfoAsync(const Model::GetRepositoryInfoRequest& request, const GetRepositoryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRepositoryInfoOutcomeCallable getRepositoryInfoCallable(const Model::GetRepositoryInfoRequest& request) const;
GetRepositoryTagOutcome getRepositoryTag(const Model::GetRepositoryTagRequest &request)const;
void getRepositoryTagAsync(const Model::GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRepositoryTagOutcomeCallable getRepositoryTagCallable(const Model::GetRepositoryTagRequest& request) const;
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
@@ -269,6 +290,9 @@ namespace AlibabaCloud
ListRepositoryMemberOutcome listRepositoryMember(const Model::ListRepositoryMemberRequest &request)const;
void listRepositoryMemberAsync(const Model::ListRepositoryMemberRequest& request, const ListRepositoryMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryMemberOutcomeCallable listRepositoryMemberCallable(const Model::ListRepositoryMemberRequest& request) const;
ListRepositoryTagsOutcome listRepositoryTags(const Model::ListRepositoryTagsRequest &request)const;
void listRepositoryTagsAsync(const Model::ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryTagsOutcomeCallable listRepositoryTagsCallable(const Model::ListRepositoryTagsRequest& request) const;
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;

View 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_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagRequest : public RoaServiceRequest
{
public:
DeleteRepositoryTagRequest();
~DeleteRepositoryTagRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagResult : public ServiceResult
{
public:
struct Result
{
std::string tagName;
};
DeleteRepositoryTagResult();
explicit DeleteRepositoryTagResult(const std::string &payload);
~DeleteRepositoryTagResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGRESULT_H_

View 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_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagRequest : public RoaServiceRequest
{
public:
GetRepositoryTagRequest();
~GetRepositoryTagRequest();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGREQUEST_H_

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagResult : public ServiceResult
{
public:
struct Result
{
struct Commit
{
struct Signature1
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authoredDate;
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string shortId;
std::string id;
std::string committerName;
Signature1 signature1;
};
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
Commit commit;
std::string message;
Signature signature;
std::string id;
std::string name;
};
GetRepositoryTagResult();
explicit GetRepositoryTagResult(const std::string &payload);
~GetRepositoryTagResult();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTagsRequest : public RoaServiceRequest
{
public:
ListRepositoryTagsRequest();
~ListRepositoryTagsRequest();
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
bool getShowSignature()const;
void setShowSignature(bool showSignature);
std::string getSort()const;
void setSort(const std::string& sort);
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getSearch()const;
void setSearch(const std::string& search);
long getPageSize()const;
void setPageSize(long pageSize);
long getPage()const;
void setPage(long page);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string accessToken_;
bool showSignature_;
std::string sort_;
std::string organizationId_;
std::string search_;
long pageSize_;
long page_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSREQUEST_H_

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryTagsResult : public ServiceResult
{
public:
struct ResultItem
{
struct Commit
{
struct Signature1
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authoredDate;
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string shortId;
std::string id;
std::string committerName;
Signature1 signature1;
};
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
Commit commit;
std::string message;
Signature signature;
std::string id;
std::string name;
};
ListRepositoryTagsResult();
explicit ListRepositoryTagsResult(const std::string &payload);
~ListRepositoryTagsResult();
long getTotal()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
std::vector<ResultItem> getResult()const;
protected:
void parse(const std::string &payload);
private:
long total_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
std::vector<ResultItem> result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYTAGSRESULT_H_

View File

@@ -591,6 +591,42 @@ CodeupClient::DeleteRepositoryMemberOutcomeCallable CodeupClient::deleteReposito
return task->get_future();
}
CodeupClient::DeleteRepositoryTagOutcome CodeupClient::deleteRepositoryTag(const DeleteRepositoryTagRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteRepositoryTagOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteRepositoryTagOutcome(DeleteRepositoryTagResult(outcome.result()));
else
return DeleteRepositoryTagOutcome(outcome.error());
}
void CodeupClient::deleteRepositoryTagAsync(const DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteRepositoryTag(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::DeleteRepositoryTagOutcomeCallable CodeupClient::deleteRepositoryTagCallable(const DeleteRepositoryTagRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteRepositoryTagOutcome()>>(
[this, request]()
{
return this->deleteRepositoryTag(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -807,6 +843,42 @@ CodeupClient::GetRepositoryInfoOutcomeCallable CodeupClient::getRepositoryInfoCa
return task->get_future();
}
CodeupClient::GetRepositoryTagOutcome CodeupClient::getRepositoryTag(const GetRepositoryTagRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetRepositoryTagOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetRepositoryTagOutcome(GetRepositoryTagResult(outcome.result()));
else
return GetRepositoryTagOutcome(outcome.error());
}
void CodeupClient::getRepositoryTagAsync(const GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getRepositoryTag(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::GetRepositoryTagOutcomeCallable CodeupClient::getRepositoryTagCallable(const GetRepositoryTagRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetRepositoryTagOutcome()>>(
[this, request]()
{
return this->getRepositoryTag(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,6 +1059,42 @@ CodeupClient::ListRepositoryMemberOutcomeCallable CodeupClient::listRepositoryMe
return task->get_future();
}
CodeupClient::ListRepositoryTagsOutcome CodeupClient::listRepositoryTags(const ListRepositoryTagsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRepositoryTagsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRepositoryTagsOutcome(ListRepositoryTagsResult(outcome.result()));
else
return ListRepositoryTagsOutcome(outcome.error());
}
void CodeupClient::listRepositoryTagsAsync(const ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRepositoryTags(request), context);
};
asyncExecute(new Runnable(fn));
}
CodeupClient::ListRepositoryTagsOutcomeCallable CodeupClient::listRepositoryTagsCallable(const ListRepositoryTagsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRepositoryTagsOutcome()>>(
[this, request]()
{
return this->listRepositoryTags(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CodeupClient::ListRepositoryTreeOutcome CodeupClient::listRepositoryTree(const ListRepositoryTreeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/codeup/model/DeleteRepositoryTagRequest.h>
using AlibabaCloud::Codeup::Model::DeleteRepositoryTagRequest;
DeleteRepositoryTagRequest::DeleteRepositoryTagRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v3/projects/[ProjectId]/repository/tags/[TagName]");
setMethod(HttpRequest::Method::Delete);
}
DeleteRepositoryTagRequest::~DeleteRepositoryTagRequest()
{}
std::string DeleteRepositoryTagRequest::getOrganizationId()const
{
return organizationId_;
}
void DeleteRepositoryTagRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string DeleteRepositoryTagRequest::getTagName()const
{
return tagName_;
}
void DeleteRepositoryTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
}
std::string DeleteRepositoryTagRequest::getAccessToken()const
{
return accessToken_;
}
void DeleteRepositoryTagRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long DeleteRepositoryTagRequest::getProjectId()const
{
return projectId_;
}
void DeleteRepositoryTagRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View 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/codeup/model/DeleteRepositoryTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
DeleteRepositoryTagResult::DeleteRepositoryTagResult() :
ServiceResult()
{}
DeleteRepositoryTagResult::DeleteRepositoryTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRepositoryTagResult::~DeleteRepositoryTagResult()
{}
void DeleteRepositoryTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["TagName"].isNull())
result_.tagName = resultNode["TagName"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string DeleteRepositoryTagResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteRepositoryTagResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteRepositoryTagResult::getSuccess()const
{
return success_;
}
DeleteRepositoryTagResult::Result DeleteRepositoryTagResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/codeup/model/GetRepositoryTagRequest.h>
using AlibabaCloud::Codeup::Model::GetRepositoryTagRequest;
GetRepositoryTagRequest::GetRepositoryTagRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v3/projects/[ProjectId]/repository/tags/[TagName]");
setMethod(HttpRequest::Method::Get);
}
GetRepositoryTagRequest::~GetRepositoryTagRequest()
{}
std::string GetRepositoryTagRequest::getOrganizationId()const
{
return organizationId_;
}
void GetRepositoryTagRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string GetRepositoryTagRequest::getTagName()const
{
return tagName_;
}
void GetRepositoryTagRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setParameter("TagName", tagName);
}
std::string GetRepositoryTagRequest::getAccessToken()const
{
return accessToken_;
}
void GetRepositoryTagRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
long GetRepositoryTagRequest::getProjectId()const
{
return projectId_;
}
void GetRepositoryTagRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,113 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/codeup/model/GetRepositoryTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
GetRepositoryTagResult::GetRepositoryTagResult() :
ServiceResult()
{}
GetRepositoryTagResult::GetRepositoryTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRepositoryTagResult::~GetRepositoryTagResult()
{}
void GetRepositoryTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Id"].isNull())
result_.id = resultNode["Id"].asString();
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["Message"].isNull())
result_.message = resultNode["Message"].asString();
auto commitNode = resultNode["Commit"];
if(!commitNode["Id"].isNull())
result_.commit.id = commitNode["Id"].asString();
if(!commitNode["ShortId"].isNull())
result_.commit.shortId = commitNode["ShortId"].asString();
if(!commitNode["Title"].isNull())
result_.commit.title = commitNode["Title"].asString();
if(!commitNode["AuthorName"].isNull())
result_.commit.authorName = commitNode["AuthorName"].asString();
if(!commitNode["AuthorEmail"].isNull())
result_.commit.authorEmail = commitNode["AuthorEmail"].asString();
if(!commitNode["CreatedAt"].isNull())
result_.commit.createdAt = commitNode["CreatedAt"].asString();
if(!commitNode["Message"].isNull())
result_.commit.message = commitNode["Message"].asString();
if(!commitNode["AuthoredDate"].isNull())
result_.commit.authoredDate = commitNode["AuthoredDate"].asString();
if(!commitNode["CommittedDate"].isNull())
result_.commit.committedDate = commitNode["CommittedDate"].asString();
if(!commitNode["CommitterEmail"].isNull())
result_.commit.committerEmail = commitNode["CommitterEmail"].asString();
if(!commitNode["CommitterName"].isNull())
result_.commit.committerName = commitNode["CommitterName"].asString();
auto signature1Node = commitNode["Signature"];
if(!signature1Node["GpgKeyId"].isNull())
result_.commit.signature1.gpgKeyId = signature1Node["GpgKeyId"].asString();
if(!signature1Node["VerificationStatus"].isNull())
result_.commit.signature1.verificationStatus = signature1Node["VerificationStatus"].asString();
auto allParentIds = commitNode["ParentIds"]["ParentIds"];
for (auto value : allParentIds)
result_.commit.parentIds.push_back(value.asString());
auto signatureNode = resultNode["Signature"];
if(!signatureNode["GpgKeyId"].isNull())
result_.signature.gpgKeyId = signatureNode["GpgKeyId"].asString();
if(!signatureNode["VerificationStatus"].isNull())
result_.signature.verificationStatus = signatureNode["VerificationStatus"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
std::string GetRepositoryTagResult::getErrorCode()const
{
return errorCode_;
}
std::string GetRepositoryTagResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetRepositoryTagResult::getSuccess()const
{
return success_;
}
GetRepositoryTagResult::Result GetRepositoryTagResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/codeup/model/ListRepositoryTagsRequest.h>
using AlibabaCloud::Codeup::Model::ListRepositoryTagsRequest;
ListRepositoryTagsRequest::ListRepositoryTagsRequest() :
RoaServiceRequest("codeup", "2020-04-14")
{
setResourcePath("/api/v4/projects/[ProjectId]/repository/tags");
setMethod(HttpRequest::Method::Get);
}
ListRepositoryTagsRequest::~ListRepositoryTagsRequest()
{}
std::string ListRepositoryTagsRequest::getAccessToken()const
{
return accessToken_;
}
void ListRepositoryTagsRequest::setAccessToken(const std::string& accessToken)
{
accessToken_ = accessToken;
setParameter("AccessToken", accessToken);
}
bool ListRepositoryTagsRequest::getShowSignature()const
{
return showSignature_;
}
void ListRepositoryTagsRequest::setShowSignature(bool showSignature)
{
showSignature_ = showSignature;
setParameter("ShowSignature", showSignature ? "true" : "false");
}
std::string ListRepositoryTagsRequest::getSort()const
{
return sort_;
}
void ListRepositoryTagsRequest::setSort(const std::string& sort)
{
sort_ = sort;
setParameter("Sort", sort);
}
std::string ListRepositoryTagsRequest::getOrganizationId()const
{
return organizationId_;
}
void ListRepositoryTagsRequest::setOrganizationId(const std::string& organizationId)
{
organizationId_ = organizationId;
setParameter("OrganizationId", organizationId);
}
std::string ListRepositoryTagsRequest::getSearch()const
{
return search_;
}
void ListRepositoryTagsRequest::setSearch(const std::string& search)
{
search_ = search;
setParameter("Search", search);
}
long ListRepositoryTagsRequest::getPageSize()const
{
return pageSize_;
}
void ListRepositoryTagsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListRepositoryTagsRequest::getPage()const
{
return page_;
}
void ListRepositoryTagsRequest::setPage(long page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
long ListRepositoryTagsRequest::getProjectId()const
{
return projectId_;
}
void ListRepositoryTagsRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -0,0 +1,125 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/codeup/model/ListRepositoryTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Codeup;
using namespace AlibabaCloud::Codeup::Model;
ListRepositoryTagsResult::ListRepositoryTagsResult() :
ServiceResult()
{}
ListRepositoryTagsResult::ListRepositoryTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRepositoryTagsResult::~ListRepositoryTagsResult()
{}
void ListRepositoryTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["Id"].isNull())
resultObject.id = valueResultResultItem["Id"].asString();
if(!valueResultResultItem["Name"].isNull())
resultObject.name = valueResultResultItem["Name"].asString();
if(!valueResultResultItem["Message"].isNull())
resultObject.message = valueResultResultItem["Message"].asString();
auto commitNode = value["Commit"];
if(!commitNode["Id"].isNull())
resultObject.commit.id = commitNode["Id"].asString();
if(!commitNode["ShortId"].isNull())
resultObject.commit.shortId = commitNode["ShortId"].asString();
if(!commitNode["Title"].isNull())
resultObject.commit.title = commitNode["Title"].asString();
if(!commitNode["AuthorName"].isNull())
resultObject.commit.authorName = commitNode["AuthorName"].asString();
if(!commitNode["AuthorEmail"].isNull())
resultObject.commit.authorEmail = commitNode["AuthorEmail"].asString();
if(!commitNode["CreatedAt"].isNull())
resultObject.commit.createdAt = commitNode["CreatedAt"].asString();
if(!commitNode["Message"].isNull())
resultObject.commit.message = commitNode["Message"].asString();
if(!commitNode["AuthoredDate"].isNull())
resultObject.commit.authoredDate = commitNode["AuthoredDate"].asString();
if(!commitNode["CommittedDate"].isNull())
resultObject.commit.committedDate = commitNode["CommittedDate"].asString();
if(!commitNode["CommitterEmail"].isNull())
resultObject.commit.committerEmail = commitNode["CommitterEmail"].asString();
if(!commitNode["CommitterName"].isNull())
resultObject.commit.committerName = commitNode["CommitterName"].asString();
auto signature1Node = commitNode["Signature"];
if(!signature1Node["GpgKeyId"].isNull())
resultObject.commit.signature1.gpgKeyId = signature1Node["GpgKeyId"].asString();
if(!signature1Node["VerificationStatus"].isNull())
resultObject.commit.signature1.verificationStatus = signature1Node["VerificationStatus"].asString();
auto allParentIds = commitNode["ParentIds"]["ParentIds"];
for (auto value : allParentIds)
resultObject.commit.parentIds.push_back(value.asString());
auto signatureNode = value["Signature"];
if(!signatureNode["GpgKeyId"].isNull())
resultObject.signature.gpgKeyId = signatureNode["GpgKeyId"].asString();
if(!signatureNode["VerificationStatus"].isNull())
resultObject.signature.verificationStatus = signatureNode["VerificationStatus"].asString();
result_.push_back(resultObject);
}
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long ListRepositoryTagsResult::getTotal()const
{
return total_;
}
std::string ListRepositoryTagsResult::getErrorCode()const
{
return errorCode_;
}
std::string ListRepositoryTagsResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListRepositoryTagsResult::getSuccess()const
{
return success_;
}
std::vector<ListRepositoryTagsResult::ResultItem> ListRepositoryTagsResult::getResult()const
{
return result_;
}

View File

@@ -93,6 +93,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/ListDevopsProjectTaskFlowResult.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTaskFlowStatusRequest.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTaskFlowStatusResult.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTaskListRequest.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTaskListResult.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTasksRequest.h
include/alibabacloud/devops-rdc/model/ListDevopsProjectTasksResult.h
include/alibabacloud/devops-rdc/model/ListDevopsScenarioFieldConfigRequest.h
@@ -188,6 +190,8 @@ set(devops-rdc_src
src/model/ListDevopsProjectTaskFlowResult.cc
src/model/ListDevopsProjectTaskFlowStatusRequest.cc
src/model/ListDevopsProjectTaskFlowStatusResult.cc
src/model/ListDevopsProjectTaskListRequest.cc
src/model/ListDevopsProjectTaskListResult.cc
src/model/ListDevopsProjectTasksRequest.cc
src/model/ListDevopsProjectTasksResult.cc
src/model/ListDevopsScenarioFieldConfigRequest.cc

View File

@@ -94,6 +94,8 @@
#include "model/ListDevopsProjectTaskFlowResult.h"
#include "model/ListDevopsProjectTaskFlowStatusRequest.h"
#include "model/ListDevopsProjectTaskFlowStatusResult.h"
#include "model/ListDevopsProjectTaskListRequest.h"
#include "model/ListDevopsProjectTaskListResult.h"
#include "model/ListDevopsProjectTasksRequest.h"
#include "model/ListDevopsProjectTasksResult.h"
#include "model/ListDevopsScenarioFieldConfigRequest.h"
@@ -231,6 +233,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListDevopsProjectTaskFlowStatusResult> ListDevopsProjectTaskFlowStatusOutcome;
typedef std::future<ListDevopsProjectTaskFlowStatusOutcome> ListDevopsProjectTaskFlowStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListDevopsProjectTaskFlowStatusRequest&, const ListDevopsProjectTaskFlowStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevopsProjectTaskFlowStatusAsyncHandler;
typedef Outcome<Error, Model::ListDevopsProjectTaskListResult> ListDevopsProjectTaskListOutcome;
typedef std::future<ListDevopsProjectTaskListOutcome> ListDevopsProjectTaskListOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListDevopsProjectTaskListRequest&, const ListDevopsProjectTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevopsProjectTaskListAsyncHandler;
typedef Outcome<Error, Model::ListDevopsProjectTasksResult> ListDevopsProjectTasksOutcome;
typedef std::future<ListDevopsProjectTasksOutcome> ListDevopsProjectTasksOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListDevopsProjectTasksRequest&, const ListDevopsProjectTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevopsProjectTasksAsyncHandler;
@@ -374,6 +379,9 @@ namespace AlibabaCloud
ListDevopsProjectTaskFlowStatusOutcome listDevopsProjectTaskFlowStatus(const Model::ListDevopsProjectTaskFlowStatusRequest &request)const;
void listDevopsProjectTaskFlowStatusAsync(const Model::ListDevopsProjectTaskFlowStatusRequest& request, const ListDevopsProjectTaskFlowStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevopsProjectTaskFlowStatusOutcomeCallable listDevopsProjectTaskFlowStatusCallable(const Model::ListDevopsProjectTaskFlowStatusRequest& request) const;
ListDevopsProjectTaskListOutcome listDevopsProjectTaskList(const Model::ListDevopsProjectTaskListRequest &request)const;
void listDevopsProjectTaskListAsync(const Model::ListDevopsProjectTaskListRequest& request, const ListDevopsProjectTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevopsProjectTaskListOutcomeCallable listDevopsProjectTaskListCallable(const Model::ListDevopsProjectTaskListRequest& request) const;
ListDevopsProjectTasksOutcome listDevopsProjectTasks(const Model::ListDevopsProjectTasksRequest &request)const;
void listDevopsProjectTasksAsync(const Model::ListDevopsProjectTasksRequest& request, const ListDevopsProjectTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDevopsProjectTasksOutcomeCallable listDevopsProjectTasksCallable(const Model::ListDevopsProjectTasksRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListDevopsProjectTaskListRequest : public RpcServiceRequest
{
public:
ListDevopsProjectTaskListRequest();
~ListDevopsProjectTaskListRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string projectId_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTREQUEST_H_

View 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_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListDevopsProjectTaskListResult : public ServiceResult
{
public:
struct Object
{
struct ResultItem
{
std::string id;
};
std::vector<ResultItem> result;
};
ListDevopsProjectTaskListResult();
explicit ListDevopsProjectTaskListResult(const std::string &payload);
~ListDevopsProjectTaskListResult();
std::string getErrorMsg()const;
Object getObject()const;
std::string getErrorCode()const;
bool getSuccessful()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMsg_;
Object object_;
std::string errorCode_;
bool successful_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTDEVOPSPROJECTTASKLISTRESULT_H_

View File

@@ -1347,6 +1347,42 @@ Devops_rdcClient::ListDevopsProjectTaskFlowStatusOutcomeCallable Devops_rdcClien
return task->get_future();
}
Devops_rdcClient::ListDevopsProjectTaskListOutcome Devops_rdcClient::listDevopsProjectTaskList(const ListDevopsProjectTaskListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDevopsProjectTaskListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDevopsProjectTaskListOutcome(ListDevopsProjectTaskListResult(outcome.result()));
else
return ListDevopsProjectTaskListOutcome(outcome.error());
}
void Devops_rdcClient::listDevopsProjectTaskListAsync(const ListDevopsProjectTaskListRequest& request, const ListDevopsProjectTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDevopsProjectTaskList(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::ListDevopsProjectTaskListOutcomeCallable Devops_rdcClient::listDevopsProjectTaskListCallable(const ListDevopsProjectTaskListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDevopsProjectTaskListOutcome()>>(
[this, request]()
{
return this->listDevopsProjectTaskList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::ListDevopsProjectTasksOutcome Devops_rdcClient::listDevopsProjectTasks(const ListDevopsProjectTasksRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -50,24 +50,24 @@ void GetPipelineInstanceBuildNumberStatusResult::parse(const std::string &payloa
groupObject.name = objectNodeGroupsgroup["Name"].asString();
if(!objectNodeGroupsgroup["Status"].isNull())
groupObject.status = objectNodeGroupsgroup["Status"].asString();
auto allStagesNode = allGroupsNode["Stages"]["stage"];
for (auto allGroupsNodeStagesstage : allStagesNode)
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
{
Object::Group::Stage stagesObject;
if(!allGroupsNodeStagesstage["Status"].isNull())
stagesObject.status = allGroupsNodeStagesstage["Status"].asString();
if(!allGroupsNodeStagesstage["Sign"].isNull())
stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString();
auto allComponentsNode = allStagesNode["Components"]["component"];
for (auto allStagesNodeComponentscomponent : allComponentsNode)
if(!objectNodeGroupsgroupStagesstage["Status"].isNull())
stagesObject.status = objectNodeGroupsgroupStagesstage["Status"].asString();
if(!objectNodeGroupsgroupStagesstage["Sign"].isNull())
stagesObject.sign = objectNodeGroupsgroupStagesstage["Sign"].asString();
auto allComponentsNode = objectNodeGroupsgroupStagesstage["Components"]["component"];
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
{
Object::Group::Stage::Component componentsObject;
if(!allStagesNodeComponentscomponent["Name"].isNull())
componentsObject.name = allStagesNodeComponentscomponent["Name"].asString();
if(!allStagesNodeComponentscomponent["Status"].isNull())
componentsObject.status = allStagesNodeComponentscomponent["Status"].asString();
if(!allStagesNodeComponentscomponent["JobId"].isNull())
componentsObject.jobId = std::stol(allStagesNodeComponentscomponent["JobId"].asString());
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
componentsObject.jobId = std::stol(objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString());
stagesObject.components.push_back(componentsObject);
}
groupObject.stages.push_back(stagesObject);

View File

@@ -50,24 +50,24 @@ void GetPipelineInstanceGroupStatusResult::parse(const std::string &payload)
groupObject.name = objectNodeGroupsgroup["Name"].asString();
if(!objectNodeGroupsgroup["Status"].isNull())
groupObject.status = objectNodeGroupsgroup["Status"].asString();
auto allStagesNode = allGroupsNode["Stages"]["stage"];
for (auto allGroupsNodeStagesstage : allStagesNode)
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
{
Object::Group::Stage stagesObject;
if(!allGroupsNodeStagesstage["Status"].isNull())
stagesObject.status = allGroupsNodeStagesstage["Status"].asString();
if(!allGroupsNodeStagesstage["Sign"].isNull())
stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString();
auto allComponentsNode = allStagesNode["Components"]["component"];
for (auto allStagesNodeComponentscomponent : allComponentsNode)
if(!objectNodeGroupsgroupStagesstage["Status"].isNull())
stagesObject.status = objectNodeGroupsgroupStagesstage["Status"].asString();
if(!objectNodeGroupsgroupStagesstage["Sign"].isNull())
stagesObject.sign = objectNodeGroupsgroupStagesstage["Sign"].asString();
auto allComponentsNode = objectNodeGroupsgroupStagesstage["Components"]["component"];
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
{
Object::Group::Stage::Component componentsObject;
if(!allStagesNodeComponentscomponent["Name"].isNull())
componentsObject.name = allStagesNodeComponentscomponent["Name"].asString();
if(!allStagesNodeComponentscomponent["Status"].isNull())
componentsObject.status = allStagesNodeComponentscomponent["Status"].asString();
if(!allStagesNodeComponentscomponent["JobId"].isNull())
componentsObject.jobId = allStagesNodeComponentscomponent["JobId"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
componentsObject.jobId = objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString();
stagesObject.components.push_back(componentsObject);
}
groupObject.stages.push_back(stagesObject);

View File

@@ -49,16 +49,16 @@ void GetPipelineLogResult::parse(const std::string &payload)
objectObject.actionName = valueObjectjob["ActionName"].asString();
if(!valueObjectjob["StartTime"].isNull())
objectObject.startTime = valueObjectjob["StartTime"].asString();
auto allBuildProcessNodesNode = allObjectNode["BuildProcessNodes"]["buildProcessNode"];
for (auto allObjectNodeBuildProcessNodesbuildProcessNode : allBuildProcessNodesNode)
auto allBuildProcessNodesNode = valueObjectjob["BuildProcessNodes"]["buildProcessNode"];
for (auto valueObjectjobBuildProcessNodesbuildProcessNode : allBuildProcessNodesNode)
{
Job::BuildProcessNode buildProcessNodesObject;
if(!allObjectNodeBuildProcessNodesbuildProcessNode["NodeName"].isNull())
buildProcessNodesObject.nodeName = allObjectNodeBuildProcessNodesbuildProcessNode["NodeName"].asString();
if(!allObjectNodeBuildProcessNodesbuildProcessNode["NodeIndex"].isNull())
buildProcessNodesObject.nodeIndex = std::stoi(allObjectNodeBuildProcessNodesbuildProcessNode["NodeIndex"].asString());
if(!allObjectNodeBuildProcessNodesbuildProcessNode["Status"].isNull())
buildProcessNodesObject.status = allObjectNodeBuildProcessNodesbuildProcessNode["Status"].asString();
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].isNull())
buildProcessNodesObject.nodeName = valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].asString();
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].isNull())
buildProcessNodesObject.nodeIndex = std::stoi(valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].asString());
if(!valueObjectjobBuildProcessNodesbuildProcessNode["Status"].isNull())
buildProcessNodesObject.status = valueObjectjobBuildProcessNodesbuildProcessNode["Status"].asString();
objectObject.buildProcessNodes.push_back(buildProcessNodesObject);
}
object_.push_back(objectObject);

View File

@@ -50,24 +50,24 @@ void GetPipleineLatestInstanceStatusResult::parse(const std::string &payload)
groupObject.name = objectNodeGroupsgroup["Name"].asString();
if(!objectNodeGroupsgroup["Status"].isNull())
groupObject.status = objectNodeGroupsgroup["Status"].asString();
auto allStagesNode = allGroupsNode["Stages"]["stage"];
for (auto allGroupsNodeStagesstage : allStagesNode)
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
{
Object::Group::Stage stagesObject;
if(!allGroupsNodeStagesstage["Status"].isNull())
stagesObject.status = allGroupsNodeStagesstage["Status"].asString();
if(!allGroupsNodeStagesstage["Sign"].isNull())
stagesObject.sign = allGroupsNodeStagesstage["Sign"].asString();
auto allComponentsNode = allStagesNode["Components"]["component"];
for (auto allStagesNodeComponentscomponent : allComponentsNode)
if(!objectNodeGroupsgroupStagesstage["Status"].isNull())
stagesObject.status = objectNodeGroupsgroupStagesstage["Status"].asString();
if(!objectNodeGroupsgroupStagesstage["Sign"].isNull())
stagesObject.sign = objectNodeGroupsgroupStagesstage["Sign"].asString();
auto allComponentsNode = objectNodeGroupsgroupStagesstage["Components"]["component"];
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
{
Object::Group::Stage::Component componentsObject;
if(!allStagesNodeComponentscomponent["Name"].isNull())
componentsObject.name = allStagesNodeComponentscomponent["Name"].asString();
if(!allStagesNodeComponentscomponent["Status"].isNull())
componentsObject.status = allStagesNodeComponentscomponent["Status"].asString();
if(!allStagesNodeComponentscomponent["JobId"].isNull())
componentsObject.jobId = std::stol(allStagesNodeComponentscomponent["JobId"].asString());
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
componentsObject.jobId = std::stol(objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString());
stagesObject.components.push_back(componentsObject);
}
groupObject.stages.push_back(stagesObject);

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/ListDevopsProjectTaskListRequest.h>
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTaskListRequest;
ListDevopsProjectTaskListRequest::ListDevopsProjectTaskListRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTaskList")
{
setMethod(HttpRequest::Method::Post);
}
ListDevopsProjectTaskListRequest::~ListDevopsProjectTaskListRequest()
{}
std::string ListDevopsProjectTaskListRequest::getProjectId()const
{
return projectId_;
}
void ListDevopsProjectTaskListRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListDevopsProjectTaskListRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsProjectTaskListRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/ListDevopsProjectTaskListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsProjectTaskListResult::ListDevopsProjectTaskListResult() :
ServiceResult()
{}
ListDevopsProjectTaskListResult::ListDevopsProjectTaskListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsProjectTaskListResult::~ListDevopsProjectTaskListResult()
{}
void ListDevopsProjectTaskListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
auto allResultNode = objectNode["Result"]["ResultItem"];
for (auto objectNodeResultResultItem : allResultNode)
{
Object::ResultItem resultItemObject;
if(!objectNodeResultResultItem["Id"].isNull())
resultItemObject.id = objectNodeResultResultItem["Id"].asString();
object_.result.push_back(resultItemObject);
}
if(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string ListDevopsProjectTaskListResult::getErrorMsg()const
{
return errorMsg_;
}
ListDevopsProjectTaskListResult::Object ListDevopsProjectTaskListResult::getObject()const
{
return object_;
}
std::string ListDevopsProjectTaskListResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsProjectTaskListResult::getSuccessful()const
{
return successful_;
}

View File

@@ -31,6 +31,19 @@ namespace AlibabaCloud
class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest
{
public:
struct LaunchConfigurationDataDisk
{
int size;
std::string category;
};
struct SystemDiskConfig
{
std::string diskCategory;
};
struct DataDiskConfig
{
std::string diskCategory;
};
struct LaunchTemplateConfig
{
std::string instanceType;
@@ -39,51 +52,104 @@ namespace AlibabaCloud
double weightedCapacity;
int priority;
};
struct LaunchConfigurationTag
{
std::string key;
std::string value;
};
public:
CreateAutoProvisioningGroupRequest();
~CreateAutoProvisioningGroupRequest();
std::vector<LaunchConfigurationDataDisk> getLaunchConfigurationDataDisk()const;
void setLaunchConfigurationDataDisk(const std::vector<LaunchConfigurationDataDisk>& launchConfigurationDataDisk);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getLaunchConfigurationSystemDiskCategory()const;
void setLaunchConfigurationSystemDiskCategory(const std::string& launchConfigurationSystemDiskCategory);
std::string getAutoProvisioningGroupType()const;
void setAutoProvisioningGroupType(const std::string& autoProvisioningGroupType);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getLaunchConfigurationImageId()const;
void setLaunchConfigurationImageId(const std::string& launchConfigurationImageId);
std::string getLaunchConfigurationResourceGroupId()const;
void setLaunchConfigurationResourceGroupId(const std::string& launchConfigurationResourceGroupId);
std::string getPayAsYouGoAllocationStrategy()const;
void setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy);
std::string getDefaultTargetCapacityType()const;
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
std::string getLaunchConfigurationKeyPairName()const;
void setLaunchConfigurationKeyPairName(const std::string& launchConfigurationKeyPairName);
std::vector<SystemDiskConfig> getSystemDiskConfig()const;
void setSystemDiskConfig(const std::vector<SystemDiskConfig>& systemDiskConfig);
std::vector<DataDiskConfig> getDataDiskConfig()const;
void setDataDiskConfig(const std::vector<DataDiskConfig>& dataDiskConfig);
std::string getValidUntil()const;
void setValidUntil(const std::string& validUntil);
std::string getLaunchTemplateId()const;
void setLaunchTemplateId(const std::string& launchTemplateId);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getLaunchConfigurationSystemDiskSize()const;
void setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize);
int getLaunchConfigurationInternetMaxBandwidthOut()const;
void setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut);
std::string getLaunchConfigurationHostName()const;
void setLaunchConfigurationHostName(const std::string& launchConfigurationHostName);
float getMaxSpotPrice()const;
void setMaxSpotPrice(float maxSpotPrice);
bool getLaunchConfigurationPasswordInherit()const;
void setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit);
std::string getLaunchConfigurationSecurityGroupId()const;
void setLaunchConfigurationSecurityGroupId(const std::string& launchConfigurationSecurityGroupId);
std::string getDescription()const;
void setDescription(const std::string& description);
bool getTerminateInstancesWithExpiration()const;
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getLaunchConfigurationUserData()const;
void setLaunchConfigurationUserData(const std::string& launchConfigurationUserData);
std::string getLaunchConfigurationInstanceName()const;
void setLaunchConfigurationInstanceName(const std::string& launchConfigurationInstanceName);
std::string getLaunchConfigurationInstanceDescription()const;
void setLaunchConfigurationInstanceDescription(const std::string& launchConfigurationInstanceDescription);
std::string getSpotAllocationStrategy()const;
void setSpotAllocationStrategy(const std::string& spotAllocationStrategy);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getTerminateInstances()const;
void setTerminateInstances(bool terminateInstances);
std::string getPayAsYouGoAllocationStrategy()const;
void setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy);
std::string getDefaultTargetCapacityType()const;
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
std::string getLaunchConfigurationSystemDiskName()const;
void setLaunchConfigurationSystemDiskName(const std::string& launchConfigurationSystemDiskName);
std::string getLaunchConfigurationSystemDiskDescription()const;
void setLaunchConfigurationSystemDiskDescription(const std::string& launchConfigurationSystemDiskDescription);
std::string getExcessCapacityTerminationPolicy()const;
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
std::string getValidUntil()const;
void setValidUntil(const std::string& validUntil);
std::string getLaunchConfigurationRamRoleName()const;
void setLaunchConfigurationRamRoleName(const std::string& launchConfigurationRamRoleName);
int getLaunchConfigurationInternetMaxBandwidthIn()const;
void setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn);
std::string getSpotInstanceInterruptionBehavior()const;
void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior);
std::string getLaunchTemplateId()const;
void setLaunchTemplateId(const std::string& launchTemplateId);
std::string getLaunchConfigurationSecurityEnhancementStrategy()const;
void setLaunchConfigurationSecurityEnhancementStrategy(const std::string& launchConfigurationSecurityEnhancementStrategy);
std::vector<LaunchConfigurationTag> getLaunchConfigurationTag()const;
void setLaunchConfigurationTag(const std::vector<LaunchConfigurationTag>& launchConfigurationTag);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
int getSpotInstancePoolsToUseCount()const;
void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getLaunchConfigurationInternetChargeType()const;
void setLaunchConfigurationInternetChargeType(const std::string& launchConfigurationInternetChargeType);
std::string getLaunchTemplateVersion()const;
void setLaunchTemplateVersion(const std::string& launchTemplateVersion);
std::string getLaunchConfigurationIoOptimized()const;
void setLaunchConfigurationIoOptimized(const std::string& launchConfigurationIoOptimized);
std::string getPayAsYouGoTargetCapacity()const;
void setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity);
std::string getTotalTargetCapacity()const;
@@ -94,36 +160,57 @@ namespace AlibabaCloud
void setValidFrom(const std::string& validFrom);
std::string getAutoProvisioningGroupName()const;
void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName);
float getMaxSpotPrice()const;
void setMaxSpotPrice(float maxSpotPrice);
private:
std::vector<LaunchConfigurationDataDisk> launchConfigurationDataDisk_;
long resourceOwnerId_;
std::string launchConfigurationSystemDiskCategory_;
std::string autoProvisioningGroupType_;
std::string resourceGroupId_;
std::string launchConfigurationImageId_;
std::string launchConfigurationResourceGroupId_;
std::string payAsYouGoAllocationStrategy_;
std::string defaultTargetCapacityType_;
std::string launchConfigurationKeyPairName_;
std::vector<SystemDiskConfig> systemDiskConfig_;
std::vector<DataDiskConfig> dataDiskConfig_;
std::string validUntil_;
std::string launchTemplateId_;
long ownerId_;
int launchConfigurationSystemDiskSize_;
int launchConfigurationInternetMaxBandwidthOut_;
std::string launchConfigurationHostName_;
float maxSpotPrice_;
bool launchConfigurationPasswordInherit_;
std::string launchConfigurationSecurityGroupId_;
std::string description_;
bool terminateInstancesWithExpiration_;
std::string resourceGroupId_;
std::string launchConfigurationUserData_;
std::string launchConfigurationInstanceName_;
std::string launchConfigurationInstanceDescription_;
std::string spotAllocationStrategy_;
std::string regionId_;
bool terminateInstances_;
std::string payAsYouGoAllocationStrategy_;
std::string defaultTargetCapacityType_;
std::string launchConfigurationSystemDiskName_;
std::string launchConfigurationSystemDiskDescription_;
std::string excessCapacityTerminationPolicy_;
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
std::string validUntil_;
std::string launchConfigurationRamRoleName_;
int launchConfigurationInternetMaxBandwidthIn_;
std::string spotInstanceInterruptionBehavior_;
std::string launchTemplateId_;
std::string launchConfigurationSecurityEnhancementStrategy_;
std::vector<LaunchConfigurationTag> launchConfigurationTag_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
int spotInstancePoolsToUseCount_;
long ownerId_;
std::string launchConfigurationInternetChargeType_;
std::string launchTemplateVersion_;
std::string launchConfigurationIoOptimized_;
std::string payAsYouGoTargetCapacity_;
std::string totalTargetCapacity_;
std::string spotTargetCapacity_;
std::string validFrom_;
std::string autoProvisioningGroupName_;
float maxSpotPrice_;
};
}

View File

@@ -79,9 +79,21 @@ namespace AlibabaCloud
};
struct NetworkInterface
{
struct PrivateIpSet
{
std::string privateIpAddress;
bool primary;
};
struct Ipv6Set
{
std::string ipv6Address;
};
std::string type;
std::vector<NetworkInterface::Ipv6Set> ipv6Sets;
std::string primaryIpAddress;
std::string networkInterfaceId;
std::string macAddress;
std::vector<NetworkInterface::PrivateIpSet> privateIpSets;
};
struct LockReason
{

View File

@@ -31,21 +31,21 @@ EcsClient::EcsClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
}
EcsClient::EcsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
}
EcsClient::EcsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ecs");
}
EcsClient::~EcsClient()

View File

@@ -27,6 +27,22 @@ CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() :
CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest()
{}
std::vector<CreateAutoProvisioningGroupRequest::LaunchConfigurationDataDisk> CreateAutoProvisioningGroupRequest::getLaunchConfigurationDataDisk()const
{
return launchConfigurationDataDisk_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDataDisk(const std::vector<LaunchConfigurationDataDisk>& launchConfigurationDataDisk)
{
launchConfigurationDataDisk_ = launchConfigurationDataDisk;
for(int dep1 = 0; dep1!= launchConfigurationDataDisk.size(); dep1++) {
auto launchConfigurationDataDiskObj = launchConfigurationDataDisk.at(dep1);
std::string launchConfigurationDataDiskObjStr = "LaunchConfiguration.DataDisk." + std::to_string(dep1 + 1);
setParameter(launchConfigurationDataDiskObjStr + ".Size", std::to_string(launchConfigurationDataDiskObj.size));
setParameter(launchConfigurationDataDiskObjStr + ".Category", launchConfigurationDataDiskObj.category);
}
}
long CreateAutoProvisioningGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
@@ -38,6 +54,17 @@ void CreateAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskCategory()const
{
return launchConfigurationSystemDiskCategory_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskCategory(const std::string& launchConfigurationSystemDiskCategory)
{
launchConfigurationSystemDiskCategory_ = launchConfigurationSystemDiskCategory;
setParameter("LaunchConfigurationSystemDiskCategory", launchConfigurationSystemDiskCategory);
}
std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupType()const
{
return autoProvisioningGroupType_;
@@ -49,6 +76,201 @@ void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupType(const std:
setParameter("AutoProvisioningGroupType", autoProvisioningGroupType);
}
std::string CreateAutoProvisioningGroupRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateAutoProvisioningGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationImageId()const
{
return launchConfigurationImageId_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationImageId(const std::string& launchConfigurationImageId)
{
launchConfigurationImageId_ = launchConfigurationImageId;
setParameter("LaunchConfigurationImageId", launchConfigurationImageId);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationResourceGroupId()const
{
return launchConfigurationResourceGroupId_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationResourceGroupId(const std::string& launchConfigurationResourceGroupId)
{
launchConfigurationResourceGroupId_ = launchConfigurationResourceGroupId;
setParameter("LaunchConfigurationResourceGroupId", launchConfigurationResourceGroupId);
}
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy()const
{
return payAsYouGoAllocationStrategy_;
}
void CreateAutoProvisioningGroupRequest::setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy)
{
payAsYouGoAllocationStrategy_ = payAsYouGoAllocationStrategy;
setParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy);
}
std::string CreateAutoProvisioningGroupRequest::getDefaultTargetCapacityType()const
{
return defaultTargetCapacityType_;
}
void CreateAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType)
{
defaultTargetCapacityType_ = defaultTargetCapacityType;
setParameter("DefaultTargetCapacityType", defaultTargetCapacityType);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationKeyPairName()const
{
return launchConfigurationKeyPairName_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationKeyPairName(const std::string& launchConfigurationKeyPairName)
{
launchConfigurationKeyPairName_ = launchConfigurationKeyPairName;
setParameter("LaunchConfigurationKeyPairName", launchConfigurationKeyPairName);
}
std::vector<CreateAutoProvisioningGroupRequest::SystemDiskConfig> CreateAutoProvisioningGroupRequest::getSystemDiskConfig()const
{
return systemDiskConfig_;
}
void CreateAutoProvisioningGroupRequest::setSystemDiskConfig(const std::vector<SystemDiskConfig>& systemDiskConfig)
{
systemDiskConfig_ = systemDiskConfig;
for(int dep1 = 0; dep1!= systemDiskConfig.size(); dep1++) {
auto systemDiskConfigObj = systemDiskConfig.at(dep1);
std::string systemDiskConfigObjStr = "SystemDiskConfig." + std::to_string(dep1 + 1);
setParameter(systemDiskConfigObjStr + ".DiskCategory", systemDiskConfigObj.diskCategory);
}
}
std::vector<CreateAutoProvisioningGroupRequest::DataDiskConfig> CreateAutoProvisioningGroupRequest::getDataDiskConfig()const
{
return dataDiskConfig_;
}
void CreateAutoProvisioningGroupRequest::setDataDiskConfig(const std::vector<DataDiskConfig>& dataDiskConfig)
{
dataDiskConfig_ = dataDiskConfig;
for(int dep1 = 0; dep1!= dataDiskConfig.size(); dep1++) {
auto dataDiskConfigObj = dataDiskConfig.at(dep1);
std::string dataDiskConfigObjStr = "DataDiskConfig." + std::to_string(dep1 + 1);
setParameter(dataDiskConfigObjStr + ".DiskCategory", dataDiskConfigObj.diskCategory);
}
}
std::string CreateAutoProvisioningGroupRequest::getValidUntil()const
{
return validUntil_;
}
void CreateAutoProvisioningGroupRequest::setValidUntil(const std::string& validUntil)
{
validUntil_ = validUntil;
setParameter("ValidUntil", validUntil);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateId()const
{
return launchTemplateId_;
}
void CreateAutoProvisioningGroupRequest::setLaunchTemplateId(const std::string& launchTemplateId)
{
launchTemplateId_ = launchTemplateId;
setParameter("LaunchTemplateId", launchTemplateId);
}
long CreateAutoProvisioningGroupRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAutoProvisioningGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskSize()const
{
return launchConfigurationSystemDiskSize_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize)
{
launchConfigurationSystemDiskSize_ = launchConfigurationSystemDiskSize;
setParameter("LaunchConfigurationSystemDiskSize", std::to_string(launchConfigurationSystemDiskSize));
}
int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthOut()const
{
return launchConfigurationInternetMaxBandwidthOut_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut)
{
launchConfigurationInternetMaxBandwidthOut_ = launchConfigurationInternetMaxBandwidthOut;
setParameter("LaunchConfigurationInternetMaxBandwidthOut", std::to_string(launchConfigurationInternetMaxBandwidthOut));
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationHostName()const
{
return launchConfigurationHostName_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationHostName(const std::string& launchConfigurationHostName)
{
launchConfigurationHostName_ = launchConfigurationHostName;
setParameter("LaunchConfigurationHostName", launchConfigurationHostName);
}
float CreateAutoProvisioningGroupRequest::getMaxSpotPrice()const
{
return maxSpotPrice_;
}
void CreateAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice)
{
maxSpotPrice_ = maxSpotPrice;
setParameter("MaxSpotPrice", std::to_string(maxSpotPrice));
}
bool CreateAutoProvisioningGroupRequest::getLaunchConfigurationPasswordInherit()const
{
return launchConfigurationPasswordInherit_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit)
{
launchConfigurationPasswordInherit_ = launchConfigurationPasswordInherit;
setParameter("LaunchConfigurationPasswordInherit", launchConfigurationPasswordInherit ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityGroupId()const
{
return launchConfigurationSecurityGroupId_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityGroupId(const std::string& launchConfigurationSecurityGroupId)
{
launchConfigurationSecurityGroupId_ = launchConfigurationSecurityGroupId;
setParameter("LaunchConfigurationSecurityGroupId", launchConfigurationSecurityGroupId);
}
std::string CreateAutoProvisioningGroupRequest::getDescription()const
{
return description_;
@@ -71,15 +293,37 @@ void CreateAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(boo
setParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getResourceGroupId()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationUserData()const
{
return resourceGroupId_;
return launchConfigurationUserData_;
}
void CreateAutoProvisioningGroupRequest::setResourceGroupId(const std::string& resourceGroupId)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationUserData(const std::string& launchConfigurationUserData)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
launchConfigurationUserData_ = launchConfigurationUserData;
setParameter("LaunchConfigurationUserData", launchConfigurationUserData);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceName()const
{
return launchConfigurationInstanceName_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceName(const std::string& launchConfigurationInstanceName)
{
launchConfigurationInstanceName_ = launchConfigurationInstanceName;
setParameter("LaunchConfigurationInstanceName", launchConfigurationInstanceName);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceDescription()const
{
return launchConfigurationInstanceDescription_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceDescription(const std::string& launchConfigurationInstanceDescription)
{
launchConfigurationInstanceDescription_ = launchConfigurationInstanceDescription;
setParameter("LaunchConfigurationInstanceDescription", launchConfigurationInstanceDescription);
}
std::string CreateAutoProvisioningGroupRequest::getSpotAllocationStrategy()const
@@ -115,26 +359,26 @@ void CreateAutoProvisioningGroupRequest::setTerminateInstances(bool terminateIns
setParameter("TerminateInstances", terminateInstances ? "true" : "false");
}
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskName()const
{
return payAsYouGoAllocationStrategy_;
return launchConfigurationSystemDiskName_;
}
void CreateAutoProvisioningGroupRequest::setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskName(const std::string& launchConfigurationSystemDiskName)
{
payAsYouGoAllocationStrategy_ = payAsYouGoAllocationStrategy;
setParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy);
launchConfigurationSystemDiskName_ = launchConfigurationSystemDiskName;
setParameter("LaunchConfigurationSystemDiskName", launchConfigurationSystemDiskName);
}
std::string CreateAutoProvisioningGroupRequest::getDefaultTargetCapacityType()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskDescription()const
{
return defaultTargetCapacityType_;
return launchConfigurationSystemDiskDescription_;
}
void CreateAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskDescription(const std::string& launchConfigurationSystemDiskDescription)
{
defaultTargetCapacityType_ = defaultTargetCapacityType;
setParameter("DefaultTargetCapacityType", defaultTargetCapacityType);
launchConfigurationSystemDiskDescription_ = launchConfigurationSystemDiskDescription;
setParameter("LaunchConfigurationSystemDiskDescription", launchConfigurationSystemDiskDescription);
}
std::string CreateAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy()const
@@ -167,15 +411,26 @@ void CreateAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vect
}
}
std::string CreateAutoProvisioningGroupRequest::getValidUntil()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationRamRoleName()const
{
return validUntil_;
return launchConfigurationRamRoleName_;
}
void CreateAutoProvisioningGroupRequest::setValidUntil(const std::string& validUntil)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationRamRoleName(const std::string& launchConfigurationRamRoleName)
{
validUntil_ = validUntil;
setParameter("ValidUntil", validUntil);
launchConfigurationRamRoleName_ = launchConfigurationRamRoleName;
setParameter("LaunchConfigurationRamRoleName", launchConfigurationRamRoleName);
}
int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthIn()const
{
return launchConfigurationInternetMaxBandwidthIn_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn)
{
launchConfigurationInternetMaxBandwidthIn_ = launchConfigurationInternetMaxBandwidthIn;
setParameter("LaunchConfigurationInternetMaxBandwidthIn", std::to_string(launchConfigurationInternetMaxBandwidthIn));
}
std::string CreateAutoProvisioningGroupRequest::getSpotInstanceInterruptionBehavior()const
@@ -189,15 +444,31 @@ void CreateAutoProvisioningGroupRequest::setSpotInstanceInterruptionBehavior(con
setParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateId()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityEnhancementStrategy()const
{
return launchTemplateId_;
return launchConfigurationSecurityEnhancementStrategy_;
}
void CreateAutoProvisioningGroupRequest::setLaunchTemplateId(const std::string& launchTemplateId)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityEnhancementStrategy(const std::string& launchConfigurationSecurityEnhancementStrategy)
{
launchTemplateId_ = launchTemplateId;
setParameter("LaunchTemplateId", launchTemplateId);
launchConfigurationSecurityEnhancementStrategy_ = launchConfigurationSecurityEnhancementStrategy;
setParameter("LaunchConfigurationSecurityEnhancementStrategy", launchConfigurationSecurityEnhancementStrategy);
}
std::vector<CreateAutoProvisioningGroupRequest::LaunchConfigurationTag> CreateAutoProvisioningGroupRequest::getLaunchConfigurationTag()const
{
return launchConfigurationTag_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationTag(const std::vector<LaunchConfigurationTag>& launchConfigurationTag)
{
launchConfigurationTag_ = launchConfigurationTag;
for(int dep1 = 0; dep1!= launchConfigurationTag.size(); dep1++) {
auto launchConfigurationTagObj = launchConfigurationTag.at(dep1);
std::string launchConfigurationTagObjStr = "LaunchConfiguration.Tag." + std::to_string(dep1 + 1);
setParameter(launchConfigurationTagObjStr + ".Key", launchConfigurationTagObj.key);
setParameter(launchConfigurationTagObjStr + ".Value", launchConfigurationTagObj.value);
}
}
std::string CreateAutoProvisioningGroupRequest::getResourceOwnerAccount()const
@@ -233,15 +504,15 @@ void CreateAutoProvisioningGroupRequest::setSpotInstancePoolsToUseCount(int spot
setParameter("SpotInstancePoolsToUseCount", std::to_string(spotInstancePoolsToUseCount));
}
long CreateAutoProvisioningGroupRequest::getOwnerId()const
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetChargeType()const
{
return ownerId_;
return launchConfigurationInternetChargeType_;
}
void CreateAutoProvisioningGroupRequest::setOwnerId(long ownerId)
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetChargeType(const std::string& launchConfigurationInternetChargeType)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
launchConfigurationInternetChargeType_ = launchConfigurationInternetChargeType;
setParameter("LaunchConfigurationInternetChargeType", launchConfigurationInternetChargeType);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateVersion()const
@@ -255,6 +526,17 @@ void CreateAutoProvisioningGroupRequest::setLaunchTemplateVersion(const std::str
setParameter("LaunchTemplateVersion", launchTemplateVersion);
}
std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationIoOptimized()const
{
return launchConfigurationIoOptimized_;
}
void CreateAutoProvisioningGroupRequest::setLaunchConfigurationIoOptimized(const std::string& launchConfigurationIoOptimized)
{
launchConfigurationIoOptimized_ = launchConfigurationIoOptimized;
setParameter("LaunchConfigurationIoOptimized", launchConfigurationIoOptimized);
}
std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity()const
{
return payAsYouGoTargetCapacity_;
@@ -310,14 +592,3 @@ void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std:
setParameter("AutoProvisioningGroupName", autoProvisioningGroupName);
}
float CreateAutoProvisioningGroupRequest::getMaxSpotPrice()const
{
return maxSpotPrice_;
}
void CreateAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice)
{
maxSpotPrice_ = maxSpotPrice;
setParameter("MaxSpotPrice", std::to_string(maxSpotPrice));
}

View File

@@ -147,6 +147,26 @@ void DescribeInstancesResult::parse(const std::string &payload)
networkInterfacesObject.macAddress = valueInstancesInstanceNetworkInterfacesNetworkInterface["MacAddress"].asString();
if(!valueInstancesInstanceNetworkInterfacesNetworkInterface["PrimaryIpAddress"].isNull())
networkInterfacesObject.primaryIpAddress = valueInstancesInstanceNetworkInterfacesNetworkInterface["PrimaryIpAddress"].asString();
if(!valueInstancesInstanceNetworkInterfacesNetworkInterface["Type"].isNull())
networkInterfacesObject.type = valueInstancesInstanceNetworkInterfacesNetworkInterface["Type"].asString();
auto allPrivateIpSetsNode = valueInstancesInstanceNetworkInterfacesNetworkInterface["PrivateIpSets"]["PrivateIpSet"];
for (auto valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet : allPrivateIpSetsNode)
{
Instance::NetworkInterface::PrivateIpSet privateIpSetsObject;
if(!valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["PrivateIpAddress"].isNull())
privateIpSetsObject.privateIpAddress = valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["PrivateIpAddress"].asString();
if(!valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["Primary"].isNull())
privateIpSetsObject.primary = valueInstancesInstanceNetworkInterfacesNetworkInterfacePrivateIpSetsPrivateIpSet["Primary"].asString() == "true";
networkInterfacesObject.privateIpSets.push_back(privateIpSetsObject);
}
auto allIpv6SetsNode = valueInstancesInstanceNetworkInterfacesNetworkInterface["Ipv6Sets"]["Ipv6Set"];
for (auto valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set : allIpv6SetsNode)
{
Instance::NetworkInterface::Ipv6Set ipv6SetsObject;
if(!valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set["Ipv6Address"].isNull())
ipv6SetsObject.ipv6Address = valueInstancesInstanceNetworkInterfacesNetworkInterfaceIpv6SetsIpv6Set["Ipv6Address"].asString();
networkInterfacesObject.ipv6Sets.push_back(ipv6SetsObject);
}
instancesObject.networkInterfaces.push_back(networkInterfacesObject);
}
auto allOperationLocksNode = valueInstancesInstance["OperationLocks"]["LockReason"];

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
SearchFaceRequest();
~SearchFaceRequest();
std::string getDbNames()const;
void setDbNames(const std::string& dbNames);
std::string getDbName()const;
void setDbName(const std::string& dbName);
std::string getImageUrl()const;
@@ -43,6 +45,7 @@ namespace AlibabaCloud
void setLimit(int limit);
private:
std::string dbNames_;
std::string dbName_;
std::string imageUrl_;
int limit_;

View File

@@ -48,6 +48,7 @@ namespace AlibabaCloud
std::string faceId;
std::string entityId;
float score;
std::string dbName;
std::string extraData;
};
std::vector<MatchListItem::FaceItemsItem> faceItems;

View File

@@ -27,6 +27,17 @@ SearchFaceRequest::SearchFaceRequest() :
SearchFaceRequest::~SearchFaceRequest()
{}
std::string SearchFaceRequest::getDbNames()const
{
return dbNames_;
}
void SearchFaceRequest::setDbNames(const std::string& dbNames)
{
dbNames_ = dbNames;
setParameter("DbNames", dbNames);
}
std::string SearchFaceRequest::getDbName()const
{
return dbName_;

View File

@@ -50,12 +50,14 @@ void SearchFaceResult::parse(const std::string &payload)
Data::MatchListItem::FaceItemsItem faceItemsObject;
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["FaceId"].isNull())
faceItemsObject.faceId = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["FaceId"].asString();
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].isNull())
faceItemsObject.score = std::stof(dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].asString());
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].isNull())
faceItemsObject.extraData = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].asString();
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["EntityId"].isNull())
faceItemsObject.entityId = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["EntityId"].asString();
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].isNull())
faceItemsObject.score = std::stof(dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].asString());
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["DbName"].isNull())
faceItemsObject.dbName = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["DbName"].asString();
if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].isNull())
faceItemsObject.extraData = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].asString();
matchListItemObject.faceItems.push_back(faceItemsObject);
}
auto locationNode = value["Location"];
@@ -63,10 +65,10 @@ void SearchFaceResult::parse(const std::string &payload)
matchListItemObject.location.x = std::stoi(locationNode["X"].asString());
if(!locationNode["Y"].isNull())
matchListItemObject.location.y = std::stoi(locationNode["Y"].asString());
if(!locationNode["Width"].isNull())
matchListItemObject.location.width = std::stoi(locationNode["Width"].asString());
if(!locationNode["Height"].isNull())
matchListItemObject.location.height = std::stoi(locationNode["Height"].asString());
if(!locationNode["Width"].isNull())
matchListItemObject.location.width = std::stoi(locationNode["Width"].asString());
data_.matchList.push_back(matchListItemObject);
}

170
hitsdb/CMakeLists.txt Normal file
View File

@@ -0,0 +1,170 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(hitsdb_public_header
include/alibabacloud/hitsdb/HitsdbClient.h
include/alibabacloud/hitsdb/HitsdbExport.h )
set(hitsdb_public_header_model
include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceRequest.h
include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceResult.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceRequest.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceResult.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataRequest.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaRequest.h
include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaResult.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceRequest.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceResult.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlRequest.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlResult.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListRequest.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListResult.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListRequest.h
include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListResult.h
include/alibabacloud/hitsdb/model/DescribeRegionsRequest.h
include/alibabacloud/hitsdb/model/DescribeRegionsResult.h
include/alibabacloud/hitsdb/model/DescribeZonesRequest.h
include/alibabacloud/hitsdb/model/DescribeZonesResult.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataRequest.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataResult.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListRequest.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListResult.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListRequest.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListResult.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListRequest.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListResult.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListRequest.h
include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListResult.h
include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassRequest.h
include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassResult.h
include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListRequest.h
include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListResult.h
include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasRequest.h
include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasResult.h
include/alibabacloud/hitsdb/model/RenewTSDBInstanceRequest.h
include/alibabacloud/hitsdb/model/RenewTSDBInstanceResult.h
include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceRequest.h
include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.h
include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetRequest.h
include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetResult.h
include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlRequest.h
include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlResult.h )
set(hitsdb_src
src/HitsdbClient.cc
src/model/CreateHiTSDBInstanceRequest.cc
src/model/CreateHiTSDBInstanceResult.cc
src/model/DeleteHiTSDBInstanceRequest.cc
src/model/DeleteHiTSDBInstanceResult.cc
src/model/DeleteHiTSDBInstanceDataRequest.cc
src/model/DeleteHiTSDBInstanceDataResult.cc
src/model/DeleteHiTSDBInstanceMetaRequest.cc
src/model/DeleteHiTSDBInstanceMetaResult.cc
src/model/DescribeHiTSDBInstanceRequest.cc
src/model/DescribeHiTSDBInstanceResult.cc
src/model/DescribeHiTSDBInstanceDataTtlRequest.cc
src/model/DescribeHiTSDBInstanceDataTtlResult.cc
src/model/DescribeHiTSDBInstanceListRequest.cc
src/model/DescribeHiTSDBInstanceListResult.cc
src/model/DescribeHiTSDBInstanceSecurityIpListRequest.cc
src/model/DescribeHiTSDBInstanceSecurityIpListResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/DescribeZonesRequest.cc
src/model/DescribeZonesResult.cc
src/model/ExploreHiTSDBInstanceDataRequest.cc
src/model/ExploreHiTSDBInstanceDataResult.cc
src/model/ExploreHiTSDBInstanceDataMetricListRequest.cc
src/model/ExploreHiTSDBInstanceDataMetricListResult.cc
src/model/ExploreHiTSDBInstanceDataTagKeyListRequest.cc
src/model/ExploreHiTSDBInstanceDataTagKeyListResult.cc
src/model/ExploreHiTSDBInstanceDataTagValueListRequest.cc
src/model/ExploreHiTSDBInstanceDataTagValueListResult.cc
src/model/ExploreHiTSDBInstanceDeletionJobListRequest.cc
src/model/ExploreHiTSDBInstanceDeletionJobListResult.cc
src/model/ModifyHiTSDBInstanceClassRequest.cc
src/model/ModifyHiTSDBInstanceClassResult.cc
src/model/ModifyHiTSDBInstanceSecurityIpListRequest.cc
src/model/ModifyHiTSDBInstanceSecurityIpListResult.cc
src/model/RenameHiTSDBInstanceAliasRequest.cc
src/model/RenameHiTSDBInstanceAliasResult.cc
src/model/RenewTSDBInstanceRequest.cc
src/model/RenewTSDBInstanceResult.cc
src/model/RestartHiTSDBInstanceRequest.cc
src/model/RestartHiTSDBInstanceResult.cc
src/model/SwitchHiTSDBInstancePublicNetRequest.cc
src/model/SwitchHiTSDBInstancePublicNetResult.cc
src/model/UpdateHiTSDBInstanceDataTtlRequest.cc
src/model/UpdateHiTSDBInstanceDataTtlResult.cc )
add_library(hitsdb ${LIB_TYPE}
${hitsdb_public_header}
${hitsdb_public_header_model}
${hitsdb_src})
set_target_properties(hitsdb
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}hitsdb
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(hitsdb
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_HITSDB_LIBRARY)
endif()
target_include_directories(hitsdb
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(hitsdb
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(hitsdb
jsoncpp)
target_include_directories(hitsdb
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(hitsdb
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(hitsdb
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(hitsdb
PRIVATE /usr/include/jsoncpp)
target_link_libraries(hitsdb
jsoncpp)
endif()
install(FILES ${hitsdb_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/hitsdb)
install(FILES ${hitsdb_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/hitsdb/model)
install(TARGETS hitsdb
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,222 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_HITSDBCLIENT_H_
#define ALIBABACLOUD_HITSDB_HITSDBCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "HitsdbExport.h"
#include "model/CreateHiTSDBInstanceRequest.h"
#include "model/CreateHiTSDBInstanceResult.h"
#include "model/DeleteHiTSDBInstanceRequest.h"
#include "model/DeleteHiTSDBInstanceResult.h"
#include "model/DeleteHiTSDBInstanceDataRequest.h"
#include "model/DeleteHiTSDBInstanceDataResult.h"
#include "model/DeleteHiTSDBInstanceMetaRequest.h"
#include "model/DeleteHiTSDBInstanceMetaResult.h"
#include "model/DescribeHiTSDBInstanceRequest.h"
#include "model/DescribeHiTSDBInstanceResult.h"
#include "model/DescribeHiTSDBInstanceDataTtlRequest.h"
#include "model/DescribeHiTSDBInstanceDataTtlResult.h"
#include "model/DescribeHiTSDBInstanceListRequest.h"
#include "model/DescribeHiTSDBInstanceListResult.h"
#include "model/DescribeHiTSDBInstanceSecurityIpListRequest.h"
#include "model/DescribeHiTSDBInstanceSecurityIpListResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/DescribeZonesRequest.h"
#include "model/DescribeZonesResult.h"
#include "model/ExploreHiTSDBInstanceDataRequest.h"
#include "model/ExploreHiTSDBInstanceDataResult.h"
#include "model/ExploreHiTSDBInstanceDataMetricListRequest.h"
#include "model/ExploreHiTSDBInstanceDataMetricListResult.h"
#include "model/ExploreHiTSDBInstanceDataTagKeyListRequest.h"
#include "model/ExploreHiTSDBInstanceDataTagKeyListResult.h"
#include "model/ExploreHiTSDBInstanceDataTagValueListRequest.h"
#include "model/ExploreHiTSDBInstanceDataTagValueListResult.h"
#include "model/ExploreHiTSDBInstanceDeletionJobListRequest.h"
#include "model/ExploreHiTSDBInstanceDeletionJobListResult.h"
#include "model/ModifyHiTSDBInstanceClassRequest.h"
#include "model/ModifyHiTSDBInstanceClassResult.h"
#include "model/ModifyHiTSDBInstanceSecurityIpListRequest.h"
#include "model/ModifyHiTSDBInstanceSecurityIpListResult.h"
#include "model/RenameHiTSDBInstanceAliasRequest.h"
#include "model/RenameHiTSDBInstanceAliasResult.h"
#include "model/RenewTSDBInstanceRequest.h"
#include "model/RenewTSDBInstanceResult.h"
#include "model/RestartHiTSDBInstanceRequest.h"
#include "model/RestartHiTSDBInstanceResult.h"
#include "model/SwitchHiTSDBInstancePublicNetRequest.h"
#include "model/SwitchHiTSDBInstancePublicNetResult.h"
#include "model/UpdateHiTSDBInstanceDataTtlRequest.h"
#include "model/UpdateHiTSDBInstanceDataTtlResult.h"
namespace AlibabaCloud
{
namespace Hitsdb
{
class ALIBABACLOUD_HITSDB_EXPORT HitsdbClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateHiTSDBInstanceResult> CreateHiTSDBInstanceOutcome;
typedef std::future<CreateHiTSDBInstanceOutcome> CreateHiTSDBInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::CreateHiTSDBInstanceRequest&, const CreateHiTSDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHiTSDBInstanceAsyncHandler;
typedef Outcome<Error, Model::DeleteHiTSDBInstanceResult> DeleteHiTSDBInstanceOutcome;
typedef std::future<DeleteHiTSDBInstanceOutcome> DeleteHiTSDBInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DeleteHiTSDBInstanceRequest&, const DeleteHiTSDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHiTSDBInstanceAsyncHandler;
typedef Outcome<Error, Model::DeleteHiTSDBInstanceDataResult> DeleteHiTSDBInstanceDataOutcome;
typedef std::future<DeleteHiTSDBInstanceDataOutcome> DeleteHiTSDBInstanceDataOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DeleteHiTSDBInstanceDataRequest&, const DeleteHiTSDBInstanceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHiTSDBInstanceDataAsyncHandler;
typedef Outcome<Error, Model::DeleteHiTSDBInstanceMetaResult> DeleteHiTSDBInstanceMetaOutcome;
typedef std::future<DeleteHiTSDBInstanceMetaOutcome> DeleteHiTSDBInstanceMetaOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DeleteHiTSDBInstanceMetaRequest&, const DeleteHiTSDBInstanceMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHiTSDBInstanceMetaAsyncHandler;
typedef Outcome<Error, Model::DescribeHiTSDBInstanceResult> DescribeHiTSDBInstanceOutcome;
typedef std::future<DescribeHiTSDBInstanceOutcome> DescribeHiTSDBInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeHiTSDBInstanceRequest&, const DescribeHiTSDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHiTSDBInstanceAsyncHandler;
typedef Outcome<Error, Model::DescribeHiTSDBInstanceDataTtlResult> DescribeHiTSDBInstanceDataTtlOutcome;
typedef std::future<DescribeHiTSDBInstanceDataTtlOutcome> DescribeHiTSDBInstanceDataTtlOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeHiTSDBInstanceDataTtlRequest&, const DescribeHiTSDBInstanceDataTtlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHiTSDBInstanceDataTtlAsyncHandler;
typedef Outcome<Error, Model::DescribeHiTSDBInstanceListResult> DescribeHiTSDBInstanceListOutcome;
typedef std::future<DescribeHiTSDBInstanceListOutcome> DescribeHiTSDBInstanceListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeHiTSDBInstanceListRequest&, const DescribeHiTSDBInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHiTSDBInstanceListAsyncHandler;
typedef Outcome<Error, Model::DescribeHiTSDBInstanceSecurityIpListResult> DescribeHiTSDBInstanceSecurityIpListOutcome;
typedef std::future<DescribeHiTSDBInstanceSecurityIpListOutcome> DescribeHiTSDBInstanceSecurityIpListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeHiTSDBInstanceSecurityIpListRequest&, const DescribeHiTSDBInstanceSecurityIpListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHiTSDBInstanceSecurityIpListAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::DescribeZonesResult> DescribeZonesOutcome;
typedef std::future<DescribeZonesOutcome> DescribeZonesOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::DescribeZonesRequest&, const DescribeZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZonesAsyncHandler;
typedef Outcome<Error, Model::ExploreHiTSDBInstanceDataResult> ExploreHiTSDBInstanceDataOutcome;
typedef std::future<ExploreHiTSDBInstanceDataOutcome> ExploreHiTSDBInstanceDataOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ExploreHiTSDBInstanceDataRequest&, const ExploreHiTSDBInstanceDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExploreHiTSDBInstanceDataAsyncHandler;
typedef Outcome<Error, Model::ExploreHiTSDBInstanceDataMetricListResult> ExploreHiTSDBInstanceDataMetricListOutcome;
typedef std::future<ExploreHiTSDBInstanceDataMetricListOutcome> ExploreHiTSDBInstanceDataMetricListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ExploreHiTSDBInstanceDataMetricListRequest&, const ExploreHiTSDBInstanceDataMetricListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExploreHiTSDBInstanceDataMetricListAsyncHandler;
typedef Outcome<Error, Model::ExploreHiTSDBInstanceDataTagKeyListResult> ExploreHiTSDBInstanceDataTagKeyListOutcome;
typedef std::future<ExploreHiTSDBInstanceDataTagKeyListOutcome> ExploreHiTSDBInstanceDataTagKeyListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ExploreHiTSDBInstanceDataTagKeyListRequest&, const ExploreHiTSDBInstanceDataTagKeyListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExploreHiTSDBInstanceDataTagKeyListAsyncHandler;
typedef Outcome<Error, Model::ExploreHiTSDBInstanceDataTagValueListResult> ExploreHiTSDBInstanceDataTagValueListOutcome;
typedef std::future<ExploreHiTSDBInstanceDataTagValueListOutcome> ExploreHiTSDBInstanceDataTagValueListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ExploreHiTSDBInstanceDataTagValueListRequest&, const ExploreHiTSDBInstanceDataTagValueListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExploreHiTSDBInstanceDataTagValueListAsyncHandler;
typedef Outcome<Error, Model::ExploreHiTSDBInstanceDeletionJobListResult> ExploreHiTSDBInstanceDeletionJobListOutcome;
typedef std::future<ExploreHiTSDBInstanceDeletionJobListOutcome> ExploreHiTSDBInstanceDeletionJobListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ExploreHiTSDBInstanceDeletionJobListRequest&, const ExploreHiTSDBInstanceDeletionJobListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExploreHiTSDBInstanceDeletionJobListAsyncHandler;
typedef Outcome<Error, Model::ModifyHiTSDBInstanceClassResult> ModifyHiTSDBInstanceClassOutcome;
typedef std::future<ModifyHiTSDBInstanceClassOutcome> ModifyHiTSDBInstanceClassOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ModifyHiTSDBInstanceClassRequest&, const ModifyHiTSDBInstanceClassOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHiTSDBInstanceClassAsyncHandler;
typedef Outcome<Error, Model::ModifyHiTSDBInstanceSecurityIpListResult> ModifyHiTSDBInstanceSecurityIpListOutcome;
typedef std::future<ModifyHiTSDBInstanceSecurityIpListOutcome> ModifyHiTSDBInstanceSecurityIpListOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::ModifyHiTSDBInstanceSecurityIpListRequest&, const ModifyHiTSDBInstanceSecurityIpListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHiTSDBInstanceSecurityIpListAsyncHandler;
typedef Outcome<Error, Model::RenameHiTSDBInstanceAliasResult> RenameHiTSDBInstanceAliasOutcome;
typedef std::future<RenameHiTSDBInstanceAliasOutcome> RenameHiTSDBInstanceAliasOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::RenameHiTSDBInstanceAliasRequest&, const RenameHiTSDBInstanceAliasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenameHiTSDBInstanceAliasAsyncHandler;
typedef Outcome<Error, Model::RenewTSDBInstanceResult> RenewTSDBInstanceOutcome;
typedef std::future<RenewTSDBInstanceOutcome> RenewTSDBInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::RenewTSDBInstanceRequest&, const RenewTSDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewTSDBInstanceAsyncHandler;
typedef Outcome<Error, Model::RestartHiTSDBInstanceResult> RestartHiTSDBInstanceOutcome;
typedef std::future<RestartHiTSDBInstanceOutcome> RestartHiTSDBInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::RestartHiTSDBInstanceRequest&, const RestartHiTSDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartHiTSDBInstanceAsyncHandler;
typedef Outcome<Error, Model::SwitchHiTSDBInstancePublicNetResult> SwitchHiTSDBInstancePublicNetOutcome;
typedef std::future<SwitchHiTSDBInstancePublicNetOutcome> SwitchHiTSDBInstancePublicNetOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::SwitchHiTSDBInstancePublicNetRequest&, const SwitchHiTSDBInstancePublicNetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SwitchHiTSDBInstancePublicNetAsyncHandler;
typedef Outcome<Error, Model::UpdateHiTSDBInstanceDataTtlResult> UpdateHiTSDBInstanceDataTtlOutcome;
typedef std::future<UpdateHiTSDBInstanceDataTtlOutcome> UpdateHiTSDBInstanceDataTtlOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::UpdateHiTSDBInstanceDataTtlRequest&, const UpdateHiTSDBInstanceDataTtlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateHiTSDBInstanceDataTtlAsyncHandler;
HitsdbClient(const Credentials &credentials, const ClientConfiguration &configuration);
HitsdbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
HitsdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~HitsdbClient();
CreateHiTSDBInstanceOutcome createHiTSDBInstance(const Model::CreateHiTSDBInstanceRequest &request)const;
void createHiTSDBInstanceAsync(const Model::CreateHiTSDBInstanceRequest& request, const CreateHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateHiTSDBInstanceOutcomeCallable createHiTSDBInstanceCallable(const Model::CreateHiTSDBInstanceRequest& request) const;
DeleteHiTSDBInstanceOutcome deleteHiTSDBInstance(const Model::DeleteHiTSDBInstanceRequest &request)const;
void deleteHiTSDBInstanceAsync(const Model::DeleteHiTSDBInstanceRequest& request, const DeleteHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteHiTSDBInstanceOutcomeCallable deleteHiTSDBInstanceCallable(const Model::DeleteHiTSDBInstanceRequest& request) const;
DeleteHiTSDBInstanceDataOutcome deleteHiTSDBInstanceData(const Model::DeleteHiTSDBInstanceDataRequest &request)const;
void deleteHiTSDBInstanceDataAsync(const Model::DeleteHiTSDBInstanceDataRequest& request, const DeleteHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteHiTSDBInstanceDataOutcomeCallable deleteHiTSDBInstanceDataCallable(const Model::DeleteHiTSDBInstanceDataRequest& request) const;
DeleteHiTSDBInstanceMetaOutcome deleteHiTSDBInstanceMeta(const Model::DeleteHiTSDBInstanceMetaRequest &request)const;
void deleteHiTSDBInstanceMetaAsync(const Model::DeleteHiTSDBInstanceMetaRequest& request, const DeleteHiTSDBInstanceMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteHiTSDBInstanceMetaOutcomeCallable deleteHiTSDBInstanceMetaCallable(const Model::DeleteHiTSDBInstanceMetaRequest& request) const;
DescribeHiTSDBInstanceOutcome describeHiTSDBInstance(const Model::DescribeHiTSDBInstanceRequest &request)const;
void describeHiTSDBInstanceAsync(const Model::DescribeHiTSDBInstanceRequest& request, const DescribeHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHiTSDBInstanceOutcomeCallable describeHiTSDBInstanceCallable(const Model::DescribeHiTSDBInstanceRequest& request) const;
DescribeHiTSDBInstanceDataTtlOutcome describeHiTSDBInstanceDataTtl(const Model::DescribeHiTSDBInstanceDataTtlRequest &request)const;
void describeHiTSDBInstanceDataTtlAsync(const Model::DescribeHiTSDBInstanceDataTtlRequest& request, const DescribeHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHiTSDBInstanceDataTtlOutcomeCallable describeHiTSDBInstanceDataTtlCallable(const Model::DescribeHiTSDBInstanceDataTtlRequest& request) const;
DescribeHiTSDBInstanceListOutcome describeHiTSDBInstanceList(const Model::DescribeHiTSDBInstanceListRequest &request)const;
void describeHiTSDBInstanceListAsync(const Model::DescribeHiTSDBInstanceListRequest& request, const DescribeHiTSDBInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHiTSDBInstanceListOutcomeCallable describeHiTSDBInstanceListCallable(const Model::DescribeHiTSDBInstanceListRequest& request) const;
DescribeHiTSDBInstanceSecurityIpListOutcome describeHiTSDBInstanceSecurityIpList(const Model::DescribeHiTSDBInstanceSecurityIpListRequest &request)const;
void describeHiTSDBInstanceSecurityIpListAsync(const Model::DescribeHiTSDBInstanceSecurityIpListRequest& request, const DescribeHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHiTSDBInstanceSecurityIpListOutcomeCallable describeHiTSDBInstanceSecurityIpListCallable(const Model::DescribeHiTSDBInstanceSecurityIpListRequest& request) const;
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const;
void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const;
ExploreHiTSDBInstanceDataOutcome exploreHiTSDBInstanceData(const Model::ExploreHiTSDBInstanceDataRequest &request)const;
void exploreHiTSDBInstanceDataAsync(const Model::ExploreHiTSDBInstanceDataRequest& request, const ExploreHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExploreHiTSDBInstanceDataOutcomeCallable exploreHiTSDBInstanceDataCallable(const Model::ExploreHiTSDBInstanceDataRequest& request) const;
ExploreHiTSDBInstanceDataMetricListOutcome exploreHiTSDBInstanceDataMetricList(const Model::ExploreHiTSDBInstanceDataMetricListRequest &request)const;
void exploreHiTSDBInstanceDataMetricListAsync(const Model::ExploreHiTSDBInstanceDataMetricListRequest& request, const ExploreHiTSDBInstanceDataMetricListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExploreHiTSDBInstanceDataMetricListOutcomeCallable exploreHiTSDBInstanceDataMetricListCallable(const Model::ExploreHiTSDBInstanceDataMetricListRequest& request) const;
ExploreHiTSDBInstanceDataTagKeyListOutcome exploreHiTSDBInstanceDataTagKeyList(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest &request)const;
void exploreHiTSDBInstanceDataTagKeyListAsync(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest& request, const ExploreHiTSDBInstanceDataTagKeyListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExploreHiTSDBInstanceDataTagKeyListOutcomeCallable exploreHiTSDBInstanceDataTagKeyListCallable(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest& request) const;
ExploreHiTSDBInstanceDataTagValueListOutcome exploreHiTSDBInstanceDataTagValueList(const Model::ExploreHiTSDBInstanceDataTagValueListRequest &request)const;
void exploreHiTSDBInstanceDataTagValueListAsync(const Model::ExploreHiTSDBInstanceDataTagValueListRequest& request, const ExploreHiTSDBInstanceDataTagValueListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExploreHiTSDBInstanceDataTagValueListOutcomeCallable exploreHiTSDBInstanceDataTagValueListCallable(const Model::ExploreHiTSDBInstanceDataTagValueListRequest& request) const;
ExploreHiTSDBInstanceDeletionJobListOutcome exploreHiTSDBInstanceDeletionJobList(const Model::ExploreHiTSDBInstanceDeletionJobListRequest &request)const;
void exploreHiTSDBInstanceDeletionJobListAsync(const Model::ExploreHiTSDBInstanceDeletionJobListRequest& request, const ExploreHiTSDBInstanceDeletionJobListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExploreHiTSDBInstanceDeletionJobListOutcomeCallable exploreHiTSDBInstanceDeletionJobListCallable(const Model::ExploreHiTSDBInstanceDeletionJobListRequest& request) const;
ModifyHiTSDBInstanceClassOutcome modifyHiTSDBInstanceClass(const Model::ModifyHiTSDBInstanceClassRequest &request)const;
void modifyHiTSDBInstanceClassAsync(const Model::ModifyHiTSDBInstanceClassRequest& request, const ModifyHiTSDBInstanceClassAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyHiTSDBInstanceClassOutcomeCallable modifyHiTSDBInstanceClassCallable(const Model::ModifyHiTSDBInstanceClassRequest& request) const;
ModifyHiTSDBInstanceSecurityIpListOutcome modifyHiTSDBInstanceSecurityIpList(const Model::ModifyHiTSDBInstanceSecurityIpListRequest &request)const;
void modifyHiTSDBInstanceSecurityIpListAsync(const Model::ModifyHiTSDBInstanceSecurityIpListRequest& request, const ModifyHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyHiTSDBInstanceSecurityIpListOutcomeCallable modifyHiTSDBInstanceSecurityIpListCallable(const Model::ModifyHiTSDBInstanceSecurityIpListRequest& request) const;
RenameHiTSDBInstanceAliasOutcome renameHiTSDBInstanceAlias(const Model::RenameHiTSDBInstanceAliasRequest &request)const;
void renameHiTSDBInstanceAliasAsync(const Model::RenameHiTSDBInstanceAliasRequest& request, const RenameHiTSDBInstanceAliasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenameHiTSDBInstanceAliasOutcomeCallable renameHiTSDBInstanceAliasCallable(const Model::RenameHiTSDBInstanceAliasRequest& request) const;
RenewTSDBInstanceOutcome renewTSDBInstance(const Model::RenewTSDBInstanceRequest &request)const;
void renewTSDBInstanceAsync(const Model::RenewTSDBInstanceRequest& request, const RenewTSDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenewTSDBInstanceOutcomeCallable renewTSDBInstanceCallable(const Model::RenewTSDBInstanceRequest& request) const;
RestartHiTSDBInstanceOutcome restartHiTSDBInstance(const Model::RestartHiTSDBInstanceRequest &request)const;
void restartHiTSDBInstanceAsync(const Model::RestartHiTSDBInstanceRequest& request, const RestartHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RestartHiTSDBInstanceOutcomeCallable restartHiTSDBInstanceCallable(const Model::RestartHiTSDBInstanceRequest& request) const;
SwitchHiTSDBInstancePublicNetOutcome switchHiTSDBInstancePublicNet(const Model::SwitchHiTSDBInstancePublicNetRequest &request)const;
void switchHiTSDBInstancePublicNetAsync(const Model::SwitchHiTSDBInstancePublicNetRequest& request, const SwitchHiTSDBInstancePublicNetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SwitchHiTSDBInstancePublicNetOutcomeCallable switchHiTSDBInstancePublicNetCallable(const Model::SwitchHiTSDBInstancePublicNetRequest& request) const;
UpdateHiTSDBInstanceDataTtlOutcome updateHiTSDBInstanceDataTtl(const Model::UpdateHiTSDBInstanceDataTtlRequest &request)const;
void updateHiTSDBInstanceDataTtlAsync(const Model::UpdateHiTSDBInstanceDataTtlRequest& request, const UpdateHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateHiTSDBInstanceDataTtlOutcomeCallable updateHiTSDBInstanceDataTtlCallable(const Model::UpdateHiTSDBInstanceDataTtlRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_HITSDB_HITSDBCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_HITSDBEXPORT_H_
#define ALIBABACLOUD_HITSDB_HITSDBEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_HITSDB_LIBRARY)
# define ALIBABACLOUD_HITSDB_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_HITSDB_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_HITSDB_EXPORT
#endif
#endif // !ALIBABACLOUD_HITSDB_HITSDBEXPORT_H_

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT CreateHiTSDBInstanceRequest : public RpcServiceRequest
{
public:
CreateHiTSDBInstanceRequest();
~CreateHiTSDBInstanceRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getConnectionString()const;
void setConnectionString(const std::string& connectionString);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getInstanceClass()const;
void setInstanceClass(const std::string& instanceClass);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getDuration()const;
void setDuration(const std::string& duration);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getMaxSeriesPerDatabase()const;
void setMaxSeriesPerDatabase(const std::string& maxSeriesPerDatabase);
std::string getDiskCategory()const;
void setDiskCategory(const std::string& diskCategory);
std::string getMaxTimelineLimit()const;
void setMaxTimelineLimit(const std::string& maxTimelineLimit);
std::string getInstanceStorage()const;
void setInstanceStorage(const std::string& instanceStorage);
std::string getEngineType()const;
void setEngineType(const std::string& engineType);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getInstanceAlias()const;
void setInstanceAlias(const std::string& instanceAlias);
std::string getMaxDatabaseLimit()const;
void setMaxDatabaseLimit(const std::string& maxDatabaseLimit);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getVSwitchId()const;
void setVSwitchId(const std::string& vSwitchId);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getInstanceTps()const;
void setInstanceTps(const std::string& instanceTps);
std::string getVPCId()const;
void setVPCId(const std::string& vPCId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getTSDBVersion()const;
void setTSDBVersion(const std::string& tSDBVersion);
std::string getPayType()const;
void setPayType(const std::string& payType);
std::string getPricingCycle()const;
void setPricingCycle(const std::string& pricingCycle);
private:
long resourceOwnerId_;
std::string connectionString_;
std::string clientToken_;
std::string instanceClass_;
std::string accessKeyId_;
std::string duration_;
std::string securityToken_;
std::string regionId_;
std::string maxSeriesPerDatabase_;
std::string diskCategory_;
std::string maxTimelineLimit_;
std::string instanceStorage_;
std::string engineType_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string instanceAlias_;
std::string maxDatabaseLimit_;
long ownerId_;
std::string vSwitchId_;
std::string instanceName_;
std::string instanceTps_;
std::string vPCId_;
std::string zoneId_;
std::string tSDBVersion_;
std::string payType_;
std::string pricingCycle_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT CreateHiTSDBInstanceResult : public ServiceResult
{
public:
CreateHiTSDBInstanceResult();
explicit CreateHiTSDBInstanceResult(const std::string &payload);
~CreateHiTSDBInstanceResult();
std::string getInstanceId()const;
long getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
long orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceDataRequest : public RpcServiceRequest
{
public:
DeleteHiTSDBInstanceDataRequest();
~DeleteHiTSDBInstanceDataRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
long getEnd()const;
void setEnd(long end);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getStart()const;
void setStart(long start);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getMetric()const;
void setMetric(const std::string& metric);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
long end_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long start_;
long ownerId_;
std::string tags_;
std::string instanceId_;
std::string metric_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceDataResult : public ServiceResult
{
public:
DeleteHiTSDBInstanceDataResult();
explicit DeleteHiTSDBInstanceDataResult(const std::string &payload);
~DeleteHiTSDBInstanceDataResult();
long getTaskId()const;
protected:
void parse(const std::string &payload);
private:
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceMetaRequest : public RpcServiceRequest
{
public:
DeleteHiTSDBInstanceMetaRequest();
~DeleteHiTSDBInstanceMetaRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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 getTags()const;
void setTags(const std::string& tags);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getMetric()const;
void setMetric(const std::string& metric);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string tags_;
std::string instanceId_;
std::string metric_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceMetaResult : public ServiceResult
{
public:
DeleteHiTSDBInstanceMetaResult();
explicit DeleteHiTSDBInstanceMetaResult(const std::string &payload);
~DeleteHiTSDBInstanceMetaResult();
long getTaskId()const;
protected:
void parse(const std::string &payload);
private:
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_

View 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_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceRequest : public RpcServiceRequest
{
public:
DeleteHiTSDBInstanceRequest();
~DeleteHiTSDBInstanceRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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 accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_

View 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_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceResult : public ServiceResult
{
public:
DeleteHiTSDBInstanceResult();
explicit DeleteHiTSDBInstanceResult(const std::string &payload);
~DeleteHiTSDBInstanceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_

View 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceDataTtlRequest : public RpcServiceRequest
{
public:
DescribeHiTSDBInstanceDataTtlRequest();
~DescribeHiTSDBInstanceDataTtlRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceDataTtlResult : public ServiceResult
{
public:
DescribeHiTSDBInstanceDataTtlResult();
explicit DescribeHiTSDBInstanceDataTtlResult(const std::string &payload);
~DescribeHiTSDBInstanceDataTtlResult();
long getTtl()const;
protected:
void parse(const std::string &payload);
private:
long ttl_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_

View 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceListRequest : public RpcServiceRequest
{
public:
DescribeHiTSDBInstanceListRequest();
~DescribeHiTSDBInstanceListRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStatusList()const;
void setStatusList(const std::string& statusList);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getQueryStr()const;
void setQueryStr(const std::string& queryStr);
std::string getEngineType()const;
void setEngineType(const std::string& engineType);
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);
private:
long resourceOwnerId_;
std::string statusList_;
int pageNumber_;
std::string accessKeyId_;
std::string securityToken_;
int pageSize_;
std::string queryStr_;
std::string engineType_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceListResult : public ServiceResult
{
public:
struct Instance
{
std::string instanceStorage;
std::string zoneId;
std::string instanceId;
std::string maxSeriesPerDatabase;
std::string instanceClass;
std::string maxDatabaseLimit;
std::string gmtCreated;
std::string lockMode;
std::string vswitchId;
std::string instanceIdInVpc;
std::string vpcId;
std::string instanceAlias;
std::string userId;
std::string instanceStatus;
std::string chargeType;
std::string networkType;
std::string gmtExpire;
std::string instanceDescription;
std::string engineType;
std::string regionId;
std::string instanceTps;
};
DescribeHiTSDBInstanceListResult();
explicit DescribeHiTSDBInstanceListResult(const std::string &payload);
~DescribeHiTSDBInstanceListResult();
int getPageSize()const;
int getPageNumber()const;
int getTotal()const;
std::vector<Instance> getInstanceList()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
int total_;
std::vector<Instance> instanceList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_

View 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceRequest : public RpcServiceRequest
{
public:
DescribeHiTSDBInstanceRequest();
~DescribeHiTSDBInstanceRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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 accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_

View File

@@ -0,0 +1,109 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceResult : public ServiceResult
{
public:
struct SecurityIp
{
std::string ip;
};
DescribeHiTSDBInstanceResult();
explicit DescribeHiTSDBInstanceResult(const std::string &payload);
~DescribeHiTSDBInstanceResult();
bool getAutoRenew()const;
std::string getGmtCreated()const;
std::string getCpuNumber()const;
std::string getInstanceAlias()const;
std::string getInstanceStatus()const;
std::string getNetworkType()const;
std::string getGmtExpire()const;
std::string getMemSize()const;
std::string getMaxTimelineLimit()const;
std::string getReverseVpcPort()const;
std::string getPublicConnectionString()const;
std::string getEngineType()const;
std::string getInstanceTps()const;
std::string getRDSStatus()const;
std::string getInstanceStorage()const;
std::string getZoneId()const;
std::string getInstanceId()const;
std::string getDiskCategory()const;
std::string getInstanceClass()const;
std::string getVswitchId()const;
int getSeries()const;
std::string getVpcId()const;
std::vector<SecurityIp> getSecurityIpList()const;
std::string getChargeType()const;
std::string getReverseVpcIp()const;
std::string getInstanceDescription()const;
std::string getRegionId()const;
std::string getConnectionString()const;
protected:
void parse(const std::string &payload);
private:
bool autoRenew_;
std::string gmtCreated_;
std::string cpuNumber_;
std::string instanceAlias_;
std::string instanceStatus_;
std::string networkType_;
std::string gmtExpire_;
std::string memSize_;
std::string maxTimelineLimit_;
std::string reverseVpcPort_;
std::string publicConnectionString_;
std::string engineType_;
std::string instanceTps_;
std::string rDSStatus_;
std::string instanceStorage_;
std::string zoneId_;
std::string instanceId_;
std::string diskCategory_;
std::string instanceClass_;
std::string vswitchId_;
int series_;
std::string vpcId_;
std::vector<SecurityIp> securityIpList_;
std::string chargeType_;
std::string reverseVpcIp_;
std::string instanceDescription_;
std::string regionId_;
std::string connectionString_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_

View 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceSecurityIpListRequest : public RpcServiceRequest
{
public:
DescribeHiTSDBInstanceSecurityIpListRequest();
~DescribeHiTSDBInstanceSecurityIpListRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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 accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_

View 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceSecurityIpListResult : public ServiceResult
{
public:
struct SecurityIp
{
std::string ip;
};
DescribeHiTSDBInstanceSecurityIpListResult();
explicit DescribeHiTSDBInstanceSecurityIpListResult(const std::string &payload);
~DescribeHiTSDBInstanceSecurityIpListResult();
std::vector<SecurityIp> getSecurityIpList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<SecurityIp> securityIpList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_

View 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_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest
{
public:
DescribeRegionsRequest();
~DescribeRegionsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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 getAcceptLanguage()const;
void setAcceptLanguage(const std::string& acceptLanguage);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string acceptLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_

View 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_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeRegionsResult : public ServiceResult
{
public:
struct Region
{
std::string regionId;
std::string regionEndpoint;
std::string localName;
};
DescribeRegionsResult();
explicit DescribeRegionsResult(const std::string &payload);
~DescribeRegionsResult();
std::vector<Region> getRegions()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Region> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_

View 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_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeZonesRequest : public RpcServiceRequest
{
public:
DescribeZonesRequest();
~DescribeZonesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
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);
private:
long resourceOwnerId_;
std::string language_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_MODEL_DESCRIBEZONESRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT DescribeZonesResult : public ServiceResult
{
public:
struct ZoneModel
{
std::string zoneId;
std::string localName;
};
DescribeZonesResult();
explicit DescribeZonesResult(const std::string &payload);
~DescribeZonesResult();
std::vector<ZoneModel> getZoneList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ZoneModel> zoneList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataMetricListRequest : public RpcServiceRequest
{
public:
ExploreHiTSDBInstanceDataMetricListRequest();
~ExploreHiTSDBInstanceDataMetricListRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPrefix()const;
void setPrefix(const std::string& prefix);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getMax()const;
void setMax(long max);
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);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
std::string prefix_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
std::string resourceOwnerAccount_;
long max_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_

View 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataMetricListResult : public ServiceResult
{
public:
struct Data
{
std::string metric;
};
ExploreHiTSDBInstanceDataMetricListResult();
explicit ExploreHiTSDBInstanceDataMetricListResult(const std::string &payload);
~ExploreHiTSDBInstanceDataMetricListResult();
std::string getInstanceId()const;
std::vector<Data> getMetricList()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
std::vector<Data> metricList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataRequest : public RpcServiceRequest
{
public:
ExploreHiTSDBInstanceDataRequest();
~ExploreHiTSDBInstanceDataRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
long getEnd()const;
void setEnd(long end);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getAggregator()const;
void setAggregator(const std::string& aggregator);
long getStart()const;
void setStart(long start);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTagFilter()const;
void setTagFilter(const std::string& tagFilter);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getMetric()const;
void setMetric(const std::string& metric);
std::string getDownSampleAggregator()const;
void setDownSampleAggregator(const std::string& downSampleAggregator);
std::string getDownSampleTime()const;
void setDownSampleTime(const std::string& downSampleTime);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
long end_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string aggregator_;
long start_;
long ownerId_;
std::string tagFilter_;
std::string instanceId_;
std::string metric_;
std::string downSampleAggregator_;
std::string downSampleTime_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_

View 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataResult : public ServiceResult
{
public:
struct TimeLine
{
struct Tag
{
std::string tagKey;
std::string tagValue;
};
struct Point
{
float value;
std::string timestamp;
};
std::vector<TimeLine::Point> series;
std::vector<TimeLine::Tag> tags;
};
ExploreHiTSDBInstanceDataResult();
explicit ExploreHiTSDBInstanceDataResult(const std::string &payload);
~ExploreHiTSDBInstanceDataResult();
std::vector<TimeLine> getTimeLines()const;
std::string getStart()const;
std::string getEnd()const;
std::string getMetric()const;
protected:
void parse(const std::string &payload);
private:
std::vector<TimeLine> timeLines_;
std::string start_;
std::string end_;
std::string metric_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagKeyListRequest : public RpcServiceRequest
{
public:
ExploreHiTSDBInstanceDataTagKeyListRequest();
~ExploreHiTSDBInstanceDataTagKeyListRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPrefix()const;
void setPrefix(const std::string& prefix);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getMax()const;
void setMax(long max);
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);
std::string getMetric()const;
void setMetric(const std::string& metric);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
std::string prefix_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
std::string resourceOwnerAccount_;
long max_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string metric_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_

View 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagKeyListResult : public ServiceResult
{
public:
struct Data
{
std::string tagKey;
};
ExploreHiTSDBInstanceDataTagKeyListResult();
explicit ExploreHiTSDBInstanceDataTagKeyListResult(const std::string &payload);
~ExploreHiTSDBInstanceDataTagKeyListResult();
std::string getInstanceId()const;
std::vector<Data> getTagKeyList()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
std::vector<Data> tagKeyList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagValueListRequest : public RpcServiceRequest
{
public:
ExploreHiTSDBInstanceDataTagValueListRequest();
~ExploreHiTSDBInstanceDataTagValueListRequest();
std::string getReverseVpcIp()const;
void setReverseVpcIp(const std::string& reverseVpcIp);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPrefix()const;
void setPrefix(const std::string& prefix);
int getReverseVpcPort()const;
void setReverseVpcPort(int reverseVpcPort);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getMax()const;
void setMax(long max);
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);
std::string getTagKey()const;
void setTagKey(const std::string& tagKey);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string reverseVpcIp_;
long resourceOwnerId_;
std::string prefix_;
int reverseVpcPort_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
std::string resourceOwnerAccount_;
long max_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string tagKey_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_

View 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagValueListResult : public ServiceResult
{
public:
struct Data
{
std::string tagValue;
};
ExploreHiTSDBInstanceDataTagValueListResult();
explicit ExploreHiTSDBInstanceDataTagValueListResult(const std::string &payload);
~ExploreHiTSDBInstanceDataTagValueListResult();
std::string getInstanceId()const;
std::vector<Data> getTagValueList()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
std::vector<Data> tagValueList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDeletionJobListRequest : public RpcServiceRequest
{
public:
ExploreHiTSDBInstanceDeletionJobListRequest();
~ExploreHiTSDBInstanceDeletionJobListRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getPassWord()const;
void setPassWord(const std::string& passWord);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
void setPageSize(int pageSize);
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 getJobType()const;
void setJobType(const std::string& jobType);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
long resourceOwnerId_;
int pageNumber_;
std::string accessKeyId_;
std::string passWord_;
std::string securityToken_;
int pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string jobType_;
std::string instanceId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDeletionJobListResult : public ServiceResult
{
public:
struct JobItem
{
std::string status;
long endTime;
std::string instanceId;
std::string ip;
int port;
long startTime;
long jobEndTime;
std::string metric;
long jobCreationTime;
long jobStartTime;
long id;
std::string tags;
std::string jobTyp;
};
ExploreHiTSDBInstanceDeletionJobListResult();
explicit ExploreHiTSDBInstanceDeletionJobListResult(const std::string &payload);
~ExploreHiTSDBInstanceDeletionJobListResult();
int getPageSize()const;
int getPageNumber()const;
long getTotal()const;
std::vector<JobItem> getJobList()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
long total_;
std::vector<JobItem> jobList_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_

View 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_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceClassRequest : public RpcServiceRequest
{
public:
ModifyHiTSDBInstanceClassRequest();
~ModifyHiTSDBInstanceClassRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getInstanceClass()const;
void setInstanceClass(const std::string& instanceClass);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getInstanceStorage()const;
void setInstanceStorage(const std::string& instanceStorage);
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 instanceClass_;
std::string accessKeyId_;
std::string securityToken_;
std::string instanceStorage_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_

View 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_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceClassResult : public ServiceResult
{
public:
ModifyHiTSDBInstanceClassResult();
explicit ModifyHiTSDBInstanceClassResult(const std::string &payload);
~ModifyHiTSDBInstanceClassResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_

Some files were not shown because too many files have changed in this diff Show More