Compare commits

..

15 Commits

Author SHA1 Message Date
sdk-team
314c523174 DescribePrice update amount parameters type, float to string. 2020-08-13 15:56:17 +08:00
sdk-team
0d054dfb79 Release SegmentHalfBody. 2020-08-13 15:53:06 +08:00
sdk-team
8af4775c5e Release SegmentHalfBody. 2020-08-13 15:41:51 +08:00
sdk-team
2f6b7ad555 Support corp group api. 2020-08-12 18:08:25 +08:00
sdk-team
faf9b3fb11 Add pipeline status api. 2020-08-12 18:00:12 +08:00
sdk-team
6642aa94e5 Generated 2015-01-01 for R-kvstore. 2020-08-12 11:06:05 +08:00
sdk-team
0aa44135e7 Generated 2020-05-18 for dataworks-public. 2020-08-11 19:55:40 +08:00
sdk-team
839effe699 Update DescribeRefreshTask. 2020-08-11 11:44:11 +08:00
sdk-team
4e6956c3f2 Add ResourceGroup in resource snapshot. 2020-08-11 11:31:40 +08:00
sdk-team
1b2fe667ba Generated 2020-05-18 for dataworks-public. 2020-08-10 17:31:34 +08:00
sdk-team
91c8eee22c Add source id for list face detail. 2020-08-10 15:50:28 +08:00
sdk-team
fd4bd1e797 Add extend value for list event detail. 2020-08-10 09:29:21 +08:00
sdk-team
bd27e98c03 Add extend value for list event detail. 2020-08-09 23:28:40 +08:00
sdk-team
3a88e60d04 Update SearchImage. 2020-08-08 17:13:38 +08:00
sdk-team
83bb5be02b GetTitleDiagnose GetTitleGenerate GetImageTranslate supported. 2020-08-07 17:35:54 +08:00
245 changed files with 11700 additions and 659 deletions

View File

@@ -1,3 +1,50 @@
2020-08-13 Version: 1.36.575
- DescribePrice update amount parameters type, float to string.
- Add ResourceGroupId parameter to support resource group.
2020-08-13 Version: 1.36.574
- Release SegmentHalfBody.
2020-08-13 Version: 1.36.573
- Release SegmentHalfBody.
2020-08-12 Version: 1.36.572
- Support corp group api.
2020-08-12 Version: 1.36.571
- Add pipeline status api.
2020-08-12 Version: 1.36.570
- Generated 2015-01-01 for `R-kvstore`.
- SyncDtsStatus API add TaskId parameter.
2020-08-11 Version: 1.36.569
- Generated 2020-05-18 for `dataworks-public`.
2020-08-11 Version: 1.36.568
- Update DescribeRefreshTask.
2020-08-11 Version: 1.36.567
- Add ResourceGroup in resource snapshot.
2020-08-10 Version: 1.36.566
- Generated 2020-05-18 for `dataworks-public`.
2020-08-10 Version: 1.36.565
- Add source id for list face detail.
2020-08-10 Version: 1.36.564
- Add extend value for list event detail.
2020-08-09 Version: 1.36.563
- Add extend value for list event detail.
2020-08-08 Version: 1.36.562
- Update SearchImage.
2020-08-07 Version: 1.36.561
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
2020-08-07 Version: 1.36.560
- Generated 2020-05-18 for `dataworks-public`.

View File

@@ -1 +1 @@
1.36.560
1.36.575

View File

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

View File

@@ -289,6 +289,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeUserUsageDetailDataExportTaskResult.h
include/alibabacloud/cdn/model/DescribeUserVipsByDomainRequest.h
include/alibabacloud/cdn/model/DescribeUserVipsByDomainResult.h
include/alibabacloud/cdn/model/DescribeVerifyContentRequest.h
include/alibabacloud/cdn/model/DescribeVerifyContentResult.h
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryRequest.h
include/alibabacloud/cdn/model/DisableRealtimeLogDeliveryResult.h
include/alibabacloud/cdn/model/EnableRealtimeLogDeliveryRequest.h
@@ -410,7 +412,9 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/UpdateFCTriggerRequest.h
include/alibabacloud/cdn/model/UpdateFCTriggerResult.h
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigRequest.h
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h )
include/alibabacloud/cdn/model/UpdateLiveAppSnapshotConfigResult.h
include/alibabacloud/cdn/model/VerifyDomainOwnerRequest.h
include/alibabacloud/cdn/model/VerifyDomainOwnerResult.h )
set(cdn_src
src/CdnClient.cc
@@ -682,6 +686,8 @@ set(cdn_src
src/model/DescribeUserUsageDetailDataExportTaskResult.cc
src/model/DescribeUserVipsByDomainRequest.cc
src/model/DescribeUserVipsByDomainResult.cc
src/model/DescribeVerifyContentRequest.cc
src/model/DescribeVerifyContentResult.cc
src/model/DisableRealtimeLogDeliveryRequest.cc
src/model/DisableRealtimeLogDeliveryResult.cc
src/model/EnableRealtimeLogDeliveryRequest.cc
@@ -803,7 +809,9 @@ set(cdn_src
src/model/UpdateFCTriggerRequest.cc
src/model/UpdateFCTriggerResult.cc
src/model/UpdateLiveAppSnapshotConfigRequest.cc
src/model/UpdateLiveAppSnapshotConfigResult.cc )
src/model/UpdateLiveAppSnapshotConfigResult.cc
src/model/VerifyDomainOwnerRequest.cc
src/model/VerifyDomainOwnerResult.cc )
add_library(cdn ${LIB_TYPE}
${cdn_public_header}

View File

@@ -290,6 +290,8 @@
#include "model/DescribeUserUsageDetailDataExportTaskResult.h"
#include "model/DescribeUserVipsByDomainRequest.h"
#include "model/DescribeUserVipsByDomainResult.h"
#include "model/DescribeVerifyContentRequest.h"
#include "model/DescribeVerifyContentResult.h"
#include "model/DisableRealtimeLogDeliveryRequest.h"
#include "model/DisableRealtimeLogDeliveryResult.h"
#include "model/EnableRealtimeLogDeliveryRequest.h"
@@ -412,6 +414,8 @@
#include "model/UpdateFCTriggerResult.h"
#include "model/UpdateLiveAppSnapshotConfigRequest.h"
#include "model/UpdateLiveAppSnapshotConfigResult.h"
#include "model/VerifyDomainOwnerRequest.h"
#include "model/VerifyDomainOwnerResult.h"
namespace AlibabaCloud
@@ -823,6 +827,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeUserVipsByDomainResult> DescribeUserVipsByDomainOutcome;
typedef std::future<DescribeUserVipsByDomainOutcome> DescribeUserVipsByDomainOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeUserVipsByDomainRequest&, const DescribeUserVipsByDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserVipsByDomainAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifyContentResult> DescribeVerifyContentOutcome;
typedef std::future<DescribeVerifyContentOutcome> DescribeVerifyContentOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeVerifyContentRequest&, const DescribeVerifyContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyContentAsyncHandler;
typedef Outcome<Error, Model::DisableRealtimeLogDeliveryResult> DisableRealtimeLogDeliveryOutcome;
typedef std::future<DisableRealtimeLogDeliveryOutcome> DisableRealtimeLogDeliveryOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DisableRealtimeLogDeliveryRequest&, const DisableRealtimeLogDeliveryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableRealtimeLogDeliveryAsyncHandler;
@@ -1006,6 +1013,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateLiveAppSnapshotConfigResult> UpdateLiveAppSnapshotConfigOutcome;
typedef std::future<UpdateLiveAppSnapshotConfigOutcome> UpdateLiveAppSnapshotConfigOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::UpdateLiveAppSnapshotConfigRequest&, const UpdateLiveAppSnapshotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveAppSnapshotConfigAsyncHandler;
typedef Outcome<Error, Model::VerifyDomainOwnerResult> VerifyDomainOwnerOutcome;
typedef std::future<VerifyDomainOwnerOutcome> VerifyDomainOwnerOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::VerifyDomainOwnerRequest&, const VerifyDomainOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDomainOwnerAsyncHandler;
CdnClient(const Credentials &credentials, const ClientConfiguration &configuration);
CdnClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -1413,6 +1423,9 @@ namespace AlibabaCloud
DescribeUserVipsByDomainOutcome describeUserVipsByDomain(const Model::DescribeUserVipsByDomainRequest &request)const;
void describeUserVipsByDomainAsync(const Model::DescribeUserVipsByDomainRequest& request, const DescribeUserVipsByDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserVipsByDomainOutcomeCallable describeUserVipsByDomainCallable(const Model::DescribeUserVipsByDomainRequest& request) const;
DescribeVerifyContentOutcome describeVerifyContent(const Model::DescribeVerifyContentRequest &request)const;
void describeVerifyContentAsync(const Model::DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifyContentOutcomeCallable describeVerifyContentCallable(const Model::DescribeVerifyContentRequest& request) const;
DisableRealtimeLogDeliveryOutcome disableRealtimeLogDelivery(const Model::DisableRealtimeLogDeliveryRequest &request)const;
void disableRealtimeLogDeliveryAsync(const Model::DisableRealtimeLogDeliveryRequest& request, const DisableRealtimeLogDeliveryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableRealtimeLogDeliveryOutcomeCallable disableRealtimeLogDeliveryCallable(const Model::DisableRealtimeLogDeliveryRequest& request) const;
@@ -1596,6 +1609,9 @@ namespace AlibabaCloud
UpdateLiveAppSnapshotConfigOutcome updateLiveAppSnapshotConfig(const Model::UpdateLiveAppSnapshotConfigRequest &request)const;
void updateLiveAppSnapshotConfigAsync(const Model::UpdateLiveAppSnapshotConfigRequest& request, const UpdateLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveAppSnapshotConfigOutcomeCallable updateLiveAppSnapshotConfigCallable(const Model::UpdateLiveAppSnapshotConfigRequest& request) const;
VerifyDomainOwnerOutcome verifyDomainOwner(const Model::VerifyDomainOwnerRequest &request)const;
void verifyDomainOwnerAsync(const Model::VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyDomainOwnerOutcomeCallable verifyDomainOwnerCallable(const Model::VerifyDomainOwnerRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -35,18 +35,12 @@ namespace AlibabaCloud
DescribeRefreshTaskByIdRequest();
~DescribeRefreshTaskByIdRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
int pageNumber_;
int pageSize_;
std::string taskId_;
long ownerId_;

View File

@@ -49,16 +49,12 @@ namespace AlibabaCloud
~DescribeRefreshTaskByIdResult();
long getTotalCount()const;
std::vector<CDNTask> getTasks()const;
long getPageSize()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
std::vector<CDNTask> tasks_;
long pageSize_;
long pageNumber_;
};
}

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_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeVerifyContentRequest : public RpcServiceRequest
{
public:
DescribeVerifyContentRequest();
~DescribeVerifyContentRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTREQUEST_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_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeVerifyContentResult : public ServiceResult
{
public:
DescribeVerifyContentResult();
explicit DescribeVerifyContentResult(const std::string &payload);
~DescribeVerifyContentResult();
std::string getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string content_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEVERIFYCONTENTRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT VerifyDomainOwnerRequest : public RpcServiceRequest
{
public:
VerifyDomainOwnerRequest();
~VerifyDomainOwnerRequest();
std::string getVerifyType()const;
void setVerifyType(const std::string& verifyType);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string verifyType_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERREQUEST_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_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT VerifyDomainOwnerResult : public ServiceResult
{
public:
VerifyDomainOwnerResult();
explicit VerifyDomainOwnerResult(const std::string &payload);
~VerifyDomainOwnerResult();
std::string getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string content_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_VERIFYDOMAINOWNERRESULT_H_

View File

@@ -4875,6 +4875,42 @@ CdnClient::DescribeUserVipsByDomainOutcomeCallable CdnClient::describeUserVipsBy
return task->get_future();
}
CdnClient::DescribeVerifyContentOutcome CdnClient::describeVerifyContent(const DescribeVerifyContentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifyContentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifyContentOutcome(DescribeVerifyContentResult(outcome.result()));
else
return DescribeVerifyContentOutcome(outcome.error());
}
void CdnClient::describeVerifyContentAsync(const DescribeVerifyContentRequest& request, const DescribeVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyContent(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeVerifyContentOutcomeCallable CdnClient::describeVerifyContentCallable(const DescribeVerifyContentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifyContentOutcome()>>(
[this, request]()
{
return this->describeVerifyContent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DisableRealtimeLogDeliveryOutcome CdnClient::disableRealtimeLogDelivery(const DisableRealtimeLogDeliveryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7071,3 +7107,39 @@ CdnClient::UpdateLiveAppSnapshotConfigOutcomeCallable CdnClient::updateLiveAppSn
return task->get_future();
}
CdnClient::VerifyDomainOwnerOutcome CdnClient::verifyDomainOwner(const VerifyDomainOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyDomainOwnerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyDomainOwnerOutcome(VerifyDomainOwnerResult(outcome.result()));
else
return VerifyDomainOwnerOutcome(outcome.error());
}
void CdnClient::verifyDomainOwnerAsync(const VerifyDomainOwnerRequest& request, const VerifyDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyDomainOwner(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::VerifyDomainOwnerOutcomeCallable CdnClient::verifyDomainOwnerCallable(const VerifyDomainOwnerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyDomainOwnerOutcome()>>(
[this, request]()
{
return this->verifyDomainOwner(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -27,28 +27,6 @@ DescribeRefreshTaskByIdRequest::DescribeRefreshTaskByIdRequest() :
DescribeRefreshTaskByIdRequest::~DescribeRefreshTaskByIdRequest()
{}
int DescribeRefreshTaskByIdRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeRefreshTaskByIdRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int DescribeRefreshTaskByIdRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRefreshTaskByIdRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeRefreshTaskByIdRequest::getTaskId()const
{
return taskId_;

View File

@@ -59,10 +59,6 @@ void DescribeRefreshTaskByIdResult::parse(const std::string &payload)
tasksObject.objectType = valueTasksCDNTask["ObjectType"].asString();
tasks_.push_back(tasksObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
@@ -78,13 +74,3 @@ std::vector<DescribeRefreshTaskByIdResult::CDNTask> DescribeRefreshTaskByIdResul
return tasks_;
}
long DescribeRefreshTaskByIdResult::getPageSize()const
{
return pageSize_;
}
long DescribeRefreshTaskByIdResult::getPageNumber()const
{
return pageNumber_;
}

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/cdn/model/DescribeVerifyContentRequest.h>
using AlibabaCloud::Cdn::Model::DescribeVerifyContentRequest;
DescribeVerifyContentRequest::DescribeVerifyContentRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeVerifyContent")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifyContentRequest::~DescribeVerifyContentRequest()
{}
std::string DescribeVerifyContentRequest::getDomainName()const
{
return domainName_;
}
void DescribeVerifyContentRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeVerifyContentRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVerifyContentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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/cdn/model/DescribeVerifyContentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeVerifyContentResult::DescribeVerifyContentResult() :
ServiceResult()
{}
DescribeVerifyContentResult::DescribeVerifyContentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifyContentResult::~DescribeVerifyContentResult()
{}
void DescribeVerifyContentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string DescribeVerifyContentResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/VerifyDomainOwnerRequest.h>
using AlibabaCloud::Cdn::Model::VerifyDomainOwnerRequest;
VerifyDomainOwnerRequest::VerifyDomainOwnerRequest() :
RpcServiceRequest("cdn", "2018-05-10", "VerifyDomainOwner")
{
setMethod(HttpRequest::Method::Post);
}
VerifyDomainOwnerRequest::~VerifyDomainOwnerRequest()
{}
std::string VerifyDomainOwnerRequest::getVerifyType()const
{
return verifyType_;
}
void VerifyDomainOwnerRequest::setVerifyType(const std::string& verifyType)
{
verifyType_ = verifyType;
setParameter("VerifyType", verifyType);
}
std::string VerifyDomainOwnerRequest::getDomainName()const
{
return domainName_;
}
void VerifyDomainOwnerRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long VerifyDomainOwnerRequest::getOwnerId()const
{
return ownerId_;
}
void VerifyDomainOwnerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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/cdn/model/VerifyDomainOwnerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
VerifyDomainOwnerResult::VerifyDomainOwnerResult() :
ServiceResult()
{}
VerifyDomainOwnerResult::VerifyDomainOwnerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VerifyDomainOwnerResult::~VerifyDomainOwnerResult()
{}
void VerifyDomainOwnerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string VerifyDomainOwnerResult::getContent()const
{
return content_;
}

View File

@@ -199,6 +199,8 @@ set(dataworks-public_public_header_model
include/alibabacloud/dataworks-public/model/ListProjectMembersResult.h
include/alibabacloud/dataworks-public/model/ListProjectRolesRequest.h
include/alibabacloud/dataworks-public/model/ListProjectRolesResult.h
include/alibabacloud/dataworks-public/model/ListProjectsRequest.h
include/alibabacloud/dataworks-public/model/ListProjectsResult.h
include/alibabacloud/dataworks-public/model/ListQualityRulesRequest.h
include/alibabacloud/dataworks-public/model/ListQualityRulesResult.h
include/alibabacloud/dataworks-public/model/ListRemindsRequest.h
@@ -426,6 +428,8 @@ set(dataworks-public_src
src/model/ListProjectMembersResult.cc
src/model/ListProjectRolesRequest.cc
src/model/ListProjectRolesResult.cc
src/model/ListProjectsRequest.cc
src/model/ListProjectsResult.cc
src/model/ListQualityRulesRequest.cc
src/model/ListQualityRulesResult.cc
src/model/ListRemindsRequest.cc

View File

@@ -200,6 +200,8 @@
#include "model/ListProjectMembersResult.h"
#include "model/ListProjectRolesRequest.h"
#include "model/ListProjectRolesResult.h"
#include "model/ListProjectsRequest.h"
#include "model/ListProjectsResult.h"
#include "model/ListQualityRulesRequest.h"
#include "model/ListQualityRulesResult.h"
#include "model/ListRemindsRequest.h"
@@ -522,6 +524,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListProjectRolesResult> ListProjectRolesOutcome;
typedef std::future<ListProjectRolesOutcome> ListProjectRolesOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListProjectRolesRequest&, const ListProjectRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectRolesAsyncHandler;
typedef Outcome<Error, Model::ListProjectsResult> ListProjectsOutcome;
typedef std::future<ListProjectsOutcome> ListProjectsOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListProjectsRequest&, const ListProjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectsAsyncHandler;
typedef Outcome<Error, Model::ListQualityRulesResult> ListQualityRulesOutcome;
typedef std::future<ListQualityRulesOutcome> ListQualityRulesOutcomeCallable;
typedef std::function<void(const Dataworks_publicClient*, const Model::ListQualityRulesRequest&, const ListQualityRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQualityRulesAsyncHandler;
@@ -863,6 +868,9 @@ namespace AlibabaCloud
ListProjectRolesOutcome listProjectRoles(const Model::ListProjectRolesRequest &request)const;
void listProjectRolesAsync(const Model::ListProjectRolesRequest& request, const ListProjectRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListProjectRolesOutcomeCallable listProjectRolesCallable(const Model::ListProjectRolesRequest& request) const;
ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const;
void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const;
ListQualityRulesOutcome listQualityRules(const Model::ListQualityRulesRequest &request)const;
void listQualityRulesAsync(const Model::ListQualityRulesRequest& request, const ListQualityRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListQualityRulesOutcomeCallable listQualityRulesCallable(const Model::ListQualityRulesRequest& request) const;

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
CreateProjectMemberRequest();
~CreateProjectMemberRequest();
std::string getRoleCode()const;
void setRoleCode(const std::string& roleCode);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
long getProjectId()const;
@@ -43,6 +45,7 @@ namespace AlibabaCloud
void setUserId(const std::string& userId);
private:
std::string roleCode_;
std::string clientToken_;
long projectId_;
std::string userId_;

View File

@@ -37,15 +37,15 @@ namespace AlibabaCloud
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNum()const;
void setPageNum(int pageNum);
long getProjectId()const;
void setProjectId(long projectId);
int getPageNumber()const;
void setPageNumber(int pageNumber);
private:
int pageSize_;
int pageNum_;
long projectId_;
int pageNumber_;
};
}

View File

@@ -32,40 +32,40 @@ namespace AlibabaCloud
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectMembersResult : public ServiceResult
{
public:
struct ProjectMember
struct Data
{
struct Role
struct ProjectMember
{
std::string projectRoleName;
std::string projectRoleType;
std::string projectRoleCode;
int projectRoleId;
struct Role
{
std::string projectRoleName;
std::string projectRoleType;
std::string projectRoleCode;
int projectRoleId;
};
std::string status;
std::vector<ProjectMember::Role> projectRoleList;
std::string projectMemberType;
std::string projectMemberId;
std::string nick;
std::string projectMemberName;
};
std::string createOn;
std::string status;
std::vector<ProjectMember::Role> projectRoleList;
std::string projectMemberType;
std::string projectMemberId;
std::string nick;
std::string projectMemberName;
int totalCount;
std::vector<ProjectMember> projectMemberList;
int pageSize;
int pageNumber;
};
ListProjectMembersResult();
explicit ListProjectMembersResult(const std::string &payload);
~ListProjectMembersResult();
int getTotalNum()const;
std::vector<ProjectMember> getProjectMemberList()const;
int getPageNum()const;
int getPageSize()const;
Data getData()const;
protected:
void parse(const std::string &payload);
private:
int totalNum_;
std::vector<ProjectMember> projectMemberList_;
int pageNum_;
int pageSize_;
Data data_;
};
}

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_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSREQUEST_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectsRequest : public RpcServiceRequest
{
public:
ListProjectsRequest();
~ListProjectsRequest();
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNumber()const;
void setPageNumber(int pageNumber);
private:
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSREQUEST_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_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_H_
#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
namespace AlibabaCloud
{
namespace Dataworks_public
{
namespace Model
{
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListProjectsResult : public ServiceResult
{
public:
struct PageResult
{
struct Project
{
std::string projectIdentifier;
std::string projectOwnerBaseId;
int projectStatus;
std::string projectStatusCode;
std::string projectName;
long projectId;
std::string projectDescription;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<Project> projectList;
};
ListProjectsResult();
explicit ListProjectsResult(const std::string &payload);
~ListProjectsResult();
PageResult getPageResult()const;
protected:
void parse(const std::string &payload);
private:
PageResult pageResult_;
};
}
}
}
#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTPROJECTSRESULT_H_

View File

@@ -3255,6 +3255,42 @@ Dataworks_publicClient::ListProjectRolesOutcomeCallable Dataworks_publicClient::
return task->get_future();
}
Dataworks_publicClient::ListProjectsOutcome Dataworks_publicClient::listProjects(const ListProjectsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListProjectsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListProjectsOutcome(ListProjectsResult(outcome.result()));
else
return ListProjectsOutcome(outcome.error());
}
void Dataworks_publicClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listProjects(request), context);
};
asyncExecute(new Runnable(fn));
}
Dataworks_publicClient::ListProjectsOutcomeCallable Dataworks_publicClient::listProjectsCallable(const ListProjectsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListProjectsOutcome()>>(
[this, request]()
{
return this->listProjects(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dataworks_publicClient::ListQualityRulesOutcome Dataworks_publicClient::listQualityRules(const ListQualityRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -27,6 +27,17 @@ CreateProjectMemberRequest::CreateProjectMemberRequest() :
CreateProjectMemberRequest::~CreateProjectMemberRequest()
{}
std::string CreateProjectMemberRequest::getRoleCode()const
{
return roleCode_;
}
void CreateProjectMemberRequest::setRoleCode(const std::string& roleCode)
{
roleCode_ = roleCode;
setParameter("RoleCode", roleCode);
}
std::string CreateProjectMemberRequest::getClientToken()const
{
return clientToken_;

View File

@@ -38,17 +38,6 @@ void ListProjectMembersRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int ListProjectMembersRequest::getPageNum()const
{
return pageNum_;
}
void ListProjectMembersRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
long ListProjectMembersRequest::getProjectId()const
{
return projectId_;
@@ -60,3 +49,14 @@ void ListProjectMembersRequest::setProjectId(long projectId)
setParameter("ProjectId", std::to_string(projectId));
}
int ListProjectMembersRequest::getPageNumber()const
{
return pageNumber_;
}
void ListProjectMembersRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -39,26 +39,31 @@ void ListProjectMembersResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProjectMemberListNode = value["ProjectMemberList"]["ProjectMember"];
for (auto valueProjectMemberListProjectMember : allProjectMemberListNode)
auto dataNode = value["Data"];
if(!dataNode["PageNumber"].isNull())
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allProjectMemberListNode = dataNode["ProjectMemberList"]["ProjectMember"];
for (auto dataNodeProjectMemberListProjectMember : allProjectMemberListNode)
{
ProjectMember projectMemberListObject;
if(!valueProjectMemberListProjectMember["ProjectMemberId"].isNull())
projectMemberListObject.projectMemberId = valueProjectMemberListProjectMember["ProjectMemberId"].asString();
if(!valueProjectMemberListProjectMember["ProjectMemberName"].isNull())
projectMemberListObject.projectMemberName = valueProjectMemberListProjectMember["ProjectMemberName"].asString();
if(!valueProjectMemberListProjectMember["ProjectMemberType"].isNull())
projectMemberListObject.projectMemberType = valueProjectMemberListProjectMember["ProjectMemberType"].asString();
if(!valueProjectMemberListProjectMember["CreateOn"].isNull())
projectMemberListObject.createOn = valueProjectMemberListProjectMember["CreateOn"].asString();
if(!valueProjectMemberListProjectMember["Nick"].isNull())
projectMemberListObject.nick = valueProjectMemberListProjectMember["Nick"].asString();
if(!valueProjectMemberListProjectMember["Status"].isNull())
projectMemberListObject.status = valueProjectMemberListProjectMember["Status"].asString();
Data::ProjectMember projectMemberObject;
if(!dataNodeProjectMemberListProjectMember["Nick"].isNull())
projectMemberObject.nick = dataNodeProjectMemberListProjectMember["Nick"].asString();
if(!dataNodeProjectMemberListProjectMember["ProjectMemberId"].isNull())
projectMemberObject.projectMemberId = dataNodeProjectMemberListProjectMember["ProjectMemberId"].asString();
if(!dataNodeProjectMemberListProjectMember["ProjectMemberName"].isNull())
projectMemberObject.projectMemberName = dataNodeProjectMemberListProjectMember["ProjectMemberName"].asString();
if(!dataNodeProjectMemberListProjectMember["ProjectMemberType"].isNull())
projectMemberObject.projectMemberType = dataNodeProjectMemberListProjectMember["ProjectMemberType"].asString();
if(!dataNodeProjectMemberListProjectMember["Status"].isNull())
projectMemberObject.status = dataNodeProjectMemberListProjectMember["Status"].asString();
auto allProjectRoleListNode = allProjectMemberListNode["ProjectRoleList"]["Role"];
for (auto allProjectMemberListNodeProjectRoleListRole : allProjectRoleListNode)
{
ProjectMember::Role projectRoleListObject;
Data::ProjectMember::Role projectRoleListObject;
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].isNull())
projectRoleListObject.projectRoleCode = allProjectMemberListNodeProjectRoleListRole["ProjectRoleCode"].asString();
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleId"].isNull())
@@ -67,36 +72,15 @@ void ListProjectMembersResult::parse(const std::string &payload)
projectRoleListObject.projectRoleName = allProjectMemberListNodeProjectRoleListRole["ProjectRoleName"].asString();
if(!allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].isNull())
projectRoleListObject.projectRoleType = allProjectMemberListNodeProjectRoleListRole["ProjectRoleType"].asString();
projectMemberListObject.projectRoleList.push_back(projectRoleListObject);
projectMemberObject.projectRoleList.push_back(projectRoleListObject);
}
projectMemberList_.push_back(projectMemberListObject);
data_.projectMemberList.push_back(projectMemberObject);
}
if(!value["PageNum"].isNull())
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalNum"].isNull())
totalNum_ = std::stoi(value["TotalNum"].asString());
}
int ListProjectMembersResult::getTotalNum()const
ListProjectMembersResult::Data ListProjectMembersResult::getData()const
{
return totalNum_;
}
std::vector<ListProjectMembersResult::ProjectMember> ListProjectMembersResult::getProjectMemberList()const
{
return projectMemberList_;
}
int ListProjectMembersResult::getPageNum()const
{
return pageNum_;
}
int ListProjectMembersResult::getPageSize()const
{
return pageSize_;
return data_;
}

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/dataworks-public/model/ListProjectsRequest.h>
using AlibabaCloud::Dataworks_public::Model::ListProjectsRequest;
ListProjectsRequest::ListProjectsRequest() :
RpcServiceRequest("dataworks-public", "2020-05-18", "ListProjects")
{
setMethod(HttpRequest::Method::Post);
}
ListProjectsRequest::~ListProjectsRequest()
{}
int ListProjectsRequest::getPageSize()const
{
return pageSize_;
}
void ListProjectsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListProjectsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListProjectsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dataworks-public/model/ListProjectsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dataworks_public;
using namespace AlibabaCloud::Dataworks_public::Model;
ListProjectsResult::ListProjectsResult() :
ServiceResult()
{}
ListProjectsResult::ListProjectsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProjectsResult::~ListProjectsResult()
{}
void ListProjectsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pageResultNode = value["PageResult"];
if(!pageResultNode["PageNumber"].isNull())
pageResult_.pageNumber = std::stoi(pageResultNode["PageNumber"].asString());
if(!pageResultNode["PageSize"].isNull())
pageResult_.pageSize = std::stoi(pageResultNode["PageSize"].asString());
if(!pageResultNode["TotalCount"].isNull())
pageResult_.totalCount = std::stoi(pageResultNode["TotalCount"].asString());
auto allProjectListNode = pageResultNode["ProjectList"]["Project"];
for (auto pageResultNodeProjectListProject : allProjectListNode)
{
PageResult::Project projectObject;
if(!pageResultNodeProjectListProject["ProjectName"].isNull())
projectObject.projectName = pageResultNodeProjectListProject["ProjectName"].asString();
if(!pageResultNodeProjectListProject["ProjectIdentifier"].isNull())
projectObject.projectIdentifier = pageResultNodeProjectListProject["ProjectIdentifier"].asString();
if(!pageResultNodeProjectListProject["ProjectDescription"].isNull())
projectObject.projectDescription = pageResultNodeProjectListProject["ProjectDescription"].asString();
if(!pageResultNodeProjectListProject["ProjectStatus"].isNull())
projectObject.projectStatus = std::stoi(pageResultNodeProjectListProject["ProjectStatus"].asString());
if(!pageResultNodeProjectListProject["ProjectId"].isNull())
projectObject.projectId = std::stol(pageResultNodeProjectListProject["ProjectId"].asString());
if(!pageResultNodeProjectListProject["ProjectOwnerBaseId"].isNull())
projectObject.projectOwnerBaseId = pageResultNodeProjectListProject["ProjectOwnerBaseId"].asString();
if(!pageResultNodeProjectListProject["ProjectStatusCode"].isNull())
projectObject.projectStatusCode = pageResultNodeProjectListProject["ProjectStatusCode"].asString();
pageResult_.projectList.push_back(projectObject);
}
}
ListProjectsResult::PageResult ListProjectsResult::getPageResult()const
{
return pageResult_;
}

View File

@@ -45,6 +45,10 @@ set(dds_public_header_model
include/alibabacloud/dds/model/DeleteNodeResult.h
include/alibabacloud/dds/model/DescribeAccountsRequest.h
include/alibabacloud/dds/model/DescribeAccountsResult.h
include/alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h
include/alibabacloud/dds/model/DescribeActiveOperationTaskCountResult.h
include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeRequest.h
include/alibabacloud/dds/model/DescribeActiveOperationTaskTypeResult.h
include/alibabacloud/dds/model/DescribeAuditFilesRequest.h
include/alibabacloud/dds/model/DescribeAuditFilesResult.h
include/alibabacloud/dds/model/DescribeAuditLogFilterRequest.h
@@ -121,6 +125,8 @@ set(dds_public_header_model
include/alibabacloud/dds/model/DescribeUserEncryptionKeyListResult.h
include/alibabacloud/dds/model/DestroyInstanceRequest.h
include/alibabacloud/dds/model/DestroyInstanceResult.h
include/alibabacloud/dds/model/EvaluateResourceRequest.h
include/alibabacloud/dds/model/EvaluateResourceResult.h
include/alibabacloud/dds/model/ListTagResourcesRequest.h
include/alibabacloud/dds/model/ListTagResourcesResult.h
include/alibabacloud/dds/model/MigrateAvailableZoneRequest.h
@@ -216,6 +222,10 @@ set(dds_src
src/model/DeleteNodeResult.cc
src/model/DescribeAccountsRequest.cc
src/model/DescribeAccountsResult.cc
src/model/DescribeActiveOperationTaskCountRequest.cc
src/model/DescribeActiveOperationTaskCountResult.cc
src/model/DescribeActiveOperationTaskTypeRequest.cc
src/model/DescribeActiveOperationTaskTypeResult.cc
src/model/DescribeAuditFilesRequest.cc
src/model/DescribeAuditFilesResult.cc
src/model/DescribeAuditLogFilterRequest.cc
@@ -292,6 +302,8 @@ set(dds_src
src/model/DescribeUserEncryptionKeyListResult.cc
src/model/DestroyInstanceRequest.cc
src/model/DestroyInstanceResult.cc
src/model/EvaluateResourceRequest.cc
src/model/EvaluateResourceResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/MigrateAvailableZoneRequest.cc

View File

@@ -46,6 +46,10 @@
#include "model/DeleteNodeResult.h"
#include "model/DescribeAccountsRequest.h"
#include "model/DescribeAccountsResult.h"
#include "model/DescribeActiveOperationTaskCountRequest.h"
#include "model/DescribeActiveOperationTaskCountResult.h"
#include "model/DescribeActiveOperationTaskTypeRequest.h"
#include "model/DescribeActiveOperationTaskTypeResult.h"
#include "model/DescribeAuditFilesRequest.h"
#include "model/DescribeAuditFilesResult.h"
#include "model/DescribeAuditLogFilterRequest.h"
@@ -122,6 +126,8 @@
#include "model/DescribeUserEncryptionKeyListResult.h"
#include "model/DestroyInstanceRequest.h"
#include "model/DestroyInstanceResult.h"
#include "model/EvaluateResourceRequest.h"
#include "model/EvaluateResourceResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/MigrateAvailableZoneRequest.h"
@@ -235,6 +241,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeAccountsResult> DescribeAccountsOutcome;
typedef std::future<DescribeAccountsOutcome> DescribeAccountsOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeAccountsRequest&, const DescribeAccountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccountsAsyncHandler;
typedef Outcome<Error, Model::DescribeActiveOperationTaskCountResult> DescribeActiveOperationTaskCountOutcome;
typedef std::future<DescribeActiveOperationTaskCountOutcome> DescribeActiveOperationTaskCountOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeActiveOperationTaskCountRequest&, const DescribeActiveOperationTaskCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActiveOperationTaskCountAsyncHandler;
typedef Outcome<Error, Model::DescribeActiveOperationTaskTypeResult> DescribeActiveOperationTaskTypeOutcome;
typedef std::future<DescribeActiveOperationTaskTypeOutcome> DescribeActiveOperationTaskTypeOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeActiveOperationTaskTypeRequest&, const DescribeActiveOperationTaskTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActiveOperationTaskTypeAsyncHandler;
typedef Outcome<Error, Model::DescribeAuditFilesResult> DescribeAuditFilesOutcome;
typedef std::future<DescribeAuditFilesOutcome> DescribeAuditFilesOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DescribeAuditFilesRequest&, const DescribeAuditFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditFilesAsyncHandler;
@@ -349,6 +361,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DestroyInstanceResult> DestroyInstanceOutcome;
typedef std::future<DestroyInstanceOutcome> DestroyInstanceOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::DestroyInstanceRequest&, const DestroyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DestroyInstanceAsyncHandler;
typedef Outcome<Error, Model::EvaluateResourceResult> EvaluateResourceOutcome;
typedef std::future<EvaluateResourceOutcome> EvaluateResourceOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::EvaluateResourceRequest&, const EvaluateResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EvaluateResourceAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const DdsClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
@@ -492,6 +507,12 @@ namespace AlibabaCloud
DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const;
void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const;
DescribeActiveOperationTaskCountOutcome describeActiveOperationTaskCount(const Model::DescribeActiveOperationTaskCountRequest &request)const;
void describeActiveOperationTaskCountAsync(const Model::DescribeActiveOperationTaskCountRequest& request, const DescribeActiveOperationTaskCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeActiveOperationTaskCountOutcomeCallable describeActiveOperationTaskCountCallable(const Model::DescribeActiveOperationTaskCountRequest& request) const;
DescribeActiveOperationTaskTypeOutcome describeActiveOperationTaskType(const Model::DescribeActiveOperationTaskTypeRequest &request)const;
void describeActiveOperationTaskTypeAsync(const Model::DescribeActiveOperationTaskTypeRequest& request, const DescribeActiveOperationTaskTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeActiveOperationTaskTypeOutcomeCallable describeActiveOperationTaskTypeCallable(const Model::DescribeActiveOperationTaskTypeRequest& request) const;
DescribeAuditFilesOutcome describeAuditFiles(const Model::DescribeAuditFilesRequest &request)const;
void describeAuditFilesAsync(const Model::DescribeAuditFilesRequest& request, const DescribeAuditFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAuditFilesOutcomeCallable describeAuditFilesCallable(const Model::DescribeAuditFilesRequest& request) const;
@@ -606,6 +627,9 @@ namespace AlibabaCloud
DestroyInstanceOutcome destroyInstance(const Model::DestroyInstanceRequest &request)const;
void destroyInstanceAsync(const Model::DestroyInstanceRequest& request, const DestroyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DestroyInstanceOutcomeCallable destroyInstanceCallable(const Model::DestroyInstanceRequest& request) const;
EvaluateResourceOutcome evaluateResource(const Model::EvaluateResourceRequest &request)const;
void evaluateResourceAsync(const Model::EvaluateResourceRequest& request, const EvaluateResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EvaluateResourceOutcomeCallable evaluateResourceCallable(const Model::EvaluateResourceRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getDatabaseNames()const;
void setDatabaseNames(const std::string& databaseNames);
std::string getSecurityToken()const;
@@ -59,6 +61,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string databaseNames_;
std::string securityToken_;
std::string restoreTime_;

View File

@@ -38,11 +38,13 @@ namespace AlibabaCloud
explicit DeleteNodeResult(const std::string &payload);
~DeleteNodeResult();
int getTaskId()const;
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
int taskId_;
std::string orderId_;
};
}

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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskCountRequest : public RpcServiceRequest
{
public:
DescribeActiveOperationTaskCountRequest();
~DescribeActiveOperationTaskCountRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
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 accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTREQUEST_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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskCountResult : public ServiceResult
{
public:
DescribeActiveOperationTaskCountResult();
explicit DescribeActiveOperationTaskCountResult(const std::string &payload);
~DescribeActiveOperationTaskCountResult();
int getNeedPop()const;
int getTaskCount()const;
protected:
void parse(const std::string &payload);
private:
int needPop_;
int taskCount_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKCOUNTRESULT_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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskTypeRequest : public RpcServiceRequest
{
public:
DescribeActiveOperationTaskTypeRequest();
~DescribeActiveOperationTaskTypeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
int getIsHistory()const;
void setIsHistory(int isHistory);
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 accessKeyId_;
std::string resourceGroupId_;
int isHistory_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPEREQUEST_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_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT DescribeActiveOperationTaskTypeResult : public ServiceResult
{
public:
struct Items
{
std::string taskType;
int count;
};
DescribeActiveOperationTaskTypeResult();
explicit DescribeActiveOperationTaskTypeResult(const std::string &payload);
~DescribeActiveOperationTaskTypeResult();
std::vector<Items> getTypeList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Items> typeList_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEACTIVEOPERATIONTASKTYPERESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
@@ -62,6 +64,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string restoreTime_;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getEngine()const;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
std::string engine_;
std::string dBInstanceId_;

View File

@@ -122,6 +122,7 @@ namespace AlibabaCloud
std::vector<DBInstance::ConfigserverAttribute> configserverList;
std::string regionId;
std::string expireTime;
std::string kindCode;
};

View File

@@ -77,6 +77,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getConnectionDomain()const;
void setConnectionDomain(const std::string& connectionDomain);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getDBInstanceType()const;
@@ -111,6 +113,7 @@ namespace AlibabaCloud
std::string expireTime_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string connectionDomain_;
long ownerId_;
std::string dBInstanceType_;
std::string dBInstanceClass_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
@@ -53,8 +55,6 @@ namespace AlibabaCloud
void setRoleType(const std::string& roleType);
std::string getNodeId()const;
void setNodeId(const std::string& nodeId);
long getSQLId()const;
void setSQLId(long sQLId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -71,12 +71,12 @@ namespace AlibabaCloud
std::string startTime_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string dBInstanceId_;
std::string roleType_;
std::string nodeId_;
long sQLId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setCouponNo(const std::string& couponNo);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getBusinessInfo()const;
@@ -67,6 +69,7 @@ namespace AlibabaCloud
std::string productCode_;
std::string couponNo_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
std::string businessInfo_;
std::string resourceOwnerAccount_;

View File

@@ -43,10 +43,10 @@ namespace AlibabaCloud
};
std::vector<std::string> ruleIds1;
std::string currency;
float tradeAmount;
std::string tradeAmount;
std::vector<Coupon> coupons;
float originalAmount;
float discountAmount;
std::string originalAmount;
std::string discountAmount;
};
struct Rule
{
@@ -58,9 +58,9 @@ namespace AlibabaCloud
{
std::string instanceId;
std::vector<std::string> ruleIds;
float tradeAmount;
float originalAmount;
float discountAmount;
std::string tradeAmount;
std::string originalAmount;
std::string discountAmount;
};

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
@@ -53,8 +55,6 @@ namespace AlibabaCloud
void setRoleType(const std::string& roleType);
std::string getNodeId()const;
void setNodeId(const std::string& nodeId);
long getSQLId()const;
void setSQLId(long sQLId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -73,12 +73,12 @@ namespace AlibabaCloud
std::string startTime_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string dBInstanceId_;
std::string roleType_;
std::string nodeId_;
long sQLId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;

View File

@@ -36,7 +36,7 @@ namespace AlibabaCloud
{
std::string connInfo;
std::string category;
long content;
std::string content;
std::string createTime;
int id;
};

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
@@ -51,8 +53,6 @@ namespace AlibabaCloud
void setDBInstanceId(const std::string& dBInstanceId);
std::string getNodeId()const;
void setNodeId(const std::string& nodeId);
long getSQLId()const;
void setSQLId(long sQLId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -71,11 +71,11 @@ namespace AlibabaCloud
std::string startTime_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string dBInstanceId_;
std::string nodeId_;
long sQLId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;

View File

@@ -39,12 +39,12 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getProduct()const;
void setProduct(const std::string& product);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -53,20 +53,17 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getCategory()const;
void setCategory(const std::string& category);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string regionId_;
std::string nextToken_;
std::string product_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string resourceType_;
std::string category_;
};
}

View File

@@ -49,6 +49,8 @@ namespace AlibabaCloud
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTargetRegionId()const;
void setTargetRegionId(const std::string& targetRegionId);
private:
long resourceOwnerId_;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string targetRegionId_;
};
}

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setClientToken(const std::string& clientToken);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getDBInstanceId()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string clientToken_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
std::string dBInstanceId_;
std::string resourceOwnerAccount_;

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_DDS_MODEL_EVALUATERESOURCEREQUEST_H_
#define ALIBABACLOUD_DDS_MODEL_EVALUATERESOURCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT EvaluateResourceRequest : public RpcServiceRequest
{
public:
EvaluateResourceRequest();
~EvaluateResourceRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getEngineVersion()const;
void setEngineVersion(const std::string& engineVersion);
std::string getShardsInfo()const;
void setShardsInfo(const std::string& shardsInfo);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getEngine()const;
void setEngine(const std::string& engine);
std::string getDBInstanceId()const;
void setDBInstanceId(const std::string& dBInstanceId);
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 getDBInstanceClass()const;
void setDBInstanceClass(const std::string& dBInstanceClass);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
private:
long resourceOwnerId_;
std::string engineVersion_;
std::string shardsInfo_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
std::string engine_;
std::string dBInstanceId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string dBInstanceClass_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_EVALUATERESOURCEREQUEST_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_DDS_MODEL_EVALUATERESOURCERESULT_H_
#define ALIBABACLOUD_DDS_MODEL_EVALUATERESOURCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dds/DdsExport.h>
namespace AlibabaCloud
{
namespace Dds
{
namespace Model
{
class ALIBABACLOUD_DDS_EXPORT EvaluateResourceResult : public ServiceResult
{
public:
EvaluateResourceResult();
explicit EvaluateResourceResult(const std::string &payload);
~EvaluateResourceResult();
std::string getDBInstanceAvailable()const;
std::string getEngineVersion()const;
std::string getEngine()const;
protected:
void parse(const std::string &payload);
private:
std::string dBInstanceAvailable_;
std::string engineVersion_;
std::string engine_;
};
}
}
}
#endif // !ALIBABACLOUD_DDS_MODEL_EVALUATERESOURCERESULT_H_

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getSwitchMode()const;
void setSwitchMode(int switchMode);
std::string getRoleIds()const;
void setRoleIds(const std::string& roleIds);
std::string getSecurityToken()const;
@@ -57,6 +59,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string accessKeyId_;
int switchMode_;
std::string roleIds_;
std::string securityToken_;
std::string dBInstanceId_;

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::vector<Tag> getTag()const;
@@ -63,6 +65,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string regionId_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
bool getAll()const;
@@ -59,6 +61,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string regionId_;
bool all_;
std::vector<std::string> resourceId_;

View File

@@ -483,6 +483,78 @@ DdsClient::DescribeAccountsOutcomeCallable DdsClient::describeAccountsCallable(c
return task->get_future();
}
DdsClient::DescribeActiveOperationTaskCountOutcome DdsClient::describeActiveOperationTaskCount(const DescribeActiveOperationTaskCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeActiveOperationTaskCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeActiveOperationTaskCountOutcome(DescribeActiveOperationTaskCountResult(outcome.result()));
else
return DescribeActiveOperationTaskCountOutcome(outcome.error());
}
void DdsClient::describeActiveOperationTaskCountAsync(const DescribeActiveOperationTaskCountRequest& request, const DescribeActiveOperationTaskCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeActiveOperationTaskCount(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::DescribeActiveOperationTaskCountOutcomeCallable DdsClient::describeActiveOperationTaskCountCallable(const DescribeActiveOperationTaskCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeActiveOperationTaskCountOutcome()>>(
[this, request]()
{
return this->describeActiveOperationTaskCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::DescribeActiveOperationTaskTypeOutcome DdsClient::describeActiveOperationTaskType(const DescribeActiveOperationTaskTypeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeActiveOperationTaskTypeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeActiveOperationTaskTypeOutcome(DescribeActiveOperationTaskTypeResult(outcome.result()));
else
return DescribeActiveOperationTaskTypeOutcome(outcome.error());
}
void DdsClient::describeActiveOperationTaskTypeAsync(const DescribeActiveOperationTaskTypeRequest& request, const DescribeActiveOperationTaskTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeActiveOperationTaskType(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::DescribeActiveOperationTaskTypeOutcomeCallable DdsClient::describeActiveOperationTaskTypeCallable(const DescribeActiveOperationTaskTypeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeActiveOperationTaskTypeOutcome()>>(
[this, request]()
{
return this->describeActiveOperationTaskType(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::DescribeAuditFilesOutcome DdsClient::describeAuditFiles(const DescribeAuditFilesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1851,6 +1923,42 @@ DdsClient::DestroyInstanceOutcomeCallable DdsClient::destroyInstanceCallable(con
return task->get_future();
}
DdsClient::EvaluateResourceOutcome DdsClient::evaluateResource(const EvaluateResourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EvaluateResourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EvaluateResourceOutcome(EvaluateResourceResult(outcome.result()));
else
return EvaluateResourceOutcome(outcome.error());
}
void DdsClient::evaluateResourceAsync(const EvaluateResourceRequest& request, const EvaluateResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, evaluateResource(request), context);
};
asyncExecute(new Runnable(fn));
}
DdsClient::EvaluateResourceOutcomeCallable DdsClient::evaluateResourceCallable(const EvaluateResourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EvaluateResourceOutcome()>>(
[this, request]()
{
return this->evaluateResource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DdsClient::ListTagResourcesOutcome DdsClient::listTagResources(const ListTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -49,6 +49,17 @@ void CheckRecoveryConditionRequest::setAccessKeyId(const std::string& accessKeyI
setParameter("AccessKeyId", accessKeyId);
}
std::string CheckRecoveryConditionRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CheckRecoveryConditionRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CheckRecoveryConditionRequest::getDatabaseNames()const
{
return databaseNames_;

View File

@@ -41,6 +41,8 @@ void DeleteNodeResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = std::stoi(value["TaskId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
@@ -49,3 +51,8 @@ int DeleteNodeResult::getTaskId()const
return taskId_;
}
std::string DeleteNodeResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dds/model/DescribeActiveOperationTaskCountRequest.h>
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskCountRequest;
DescribeActiveOperationTaskCountRequest::DescribeActiveOperationTaskCountRequest() :
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskCount")
{
setMethod(HttpRequest::Method::Post);
}
DescribeActiveOperationTaskCountRequest::~DescribeActiveOperationTaskCountRequest()
{}
long DescribeActiveOperationTaskCountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeActiveOperationTaskCountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeActiveOperationTaskCountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeActiveOperationTaskCountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeActiveOperationTaskCountRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeActiveOperationTaskCountRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeActiveOperationTaskCountRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeActiveOperationTaskCountRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeActiveOperationTaskCountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeActiveOperationTaskCountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeActiveOperationTaskCountRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeActiveOperationTaskCountRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeActiveOperationTaskCountRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeActiveOperationTaskCountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/dds/model/DescribeActiveOperationTaskTypeRequest.h>
using AlibabaCloud::Dds::Model::DescribeActiveOperationTaskTypeRequest;
DescribeActiveOperationTaskTypeRequest::DescribeActiveOperationTaskTypeRequest() :
RpcServiceRequest("dds", "2015-12-01", "DescribeActiveOperationTaskType")
{
setMethod(HttpRequest::Method::Post);
}
DescribeActiveOperationTaskTypeRequest::~DescribeActiveOperationTaskTypeRequest()
{}
long DescribeActiveOperationTaskTypeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeActiveOperationTaskTypeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeActiveOperationTaskTypeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeActiveOperationTaskTypeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeActiveOperationTaskTypeRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeActiveOperationTaskTypeRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
int DescribeActiveOperationTaskTypeRequest::getIsHistory()const
{
return isHistory_;
}
void DescribeActiveOperationTaskTypeRequest::setIsHistory(int isHistory)
{
isHistory_ = isHistory;
setParameter("IsHistory", std::to_string(isHistory));
}
std::string DescribeActiveOperationTaskTypeRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeActiveOperationTaskTypeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeActiveOperationTaskTypeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeActiveOperationTaskTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeActiveOperationTaskTypeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeActiveOperationTaskTypeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeActiveOperationTaskTypeRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeActiveOperationTaskTypeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/dds/model/DescribeActiveOperationTaskTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult() :
ServiceResult()
{}
DescribeActiveOperationTaskTypeResult::DescribeActiveOperationTaskTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeActiveOperationTaskTypeResult::~DescribeActiveOperationTaskTypeResult()
{}
void DescribeActiveOperationTaskTypeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTypeListNode = value["TypeList"]["Items"];
for (auto valueTypeListItems : allTypeListNode)
{
Items typeListObject;
if(!valueTypeListItems["TaskType"].isNull())
typeListObject.taskType = valueTypeListItems["TaskType"].asString();
if(!valueTypeListItems["Count"].isNull())
typeListObject.count = std::stoi(valueTypeListItems["Count"].asString());
typeList_.push_back(typeListObject);
}
}
std::vector<DescribeActiveOperationTaskTypeResult::Items> DescribeActiveOperationTaskTypeResult::getTypeList()const
{
return typeList_;
}

View File

@@ -60,6 +60,17 @@ void DescribeBackupDBsRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeBackupDBsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeBackupDBsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeBackupDBsRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -49,6 +49,17 @@ void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& acces
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDBInstanceAttributeRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeDBInstanceAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeDBInstanceAttributeRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -71,6 +71,8 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
dBInstancesObject.vSwitchId = valueDBInstancesDBInstance["VSwitchId"].asString();
if(!valueDBInstancesDBInstance["VPCCloudInstanceIds"].isNull())
dBInstancesObject.vPCCloudInstanceIds = valueDBInstancesDBInstance["VPCCloudInstanceIds"].asString();
if(!valueDBInstancesDBInstance["KindCode"].isNull())
dBInstancesObject.kindCode = valueDBInstancesDBInstance["KindCode"].asString();
if(!valueDBInstancesDBInstance["DBInstanceStatus"].isNull())
dBInstancesObject.dBInstanceStatus = valueDBInstancesDBInstance["DBInstanceStatus"].asString();
if(!valueDBInstancesDBInstance["LockMode"].isNull())

View File

@@ -230,6 +230,17 @@ void DescribeDBInstancesRequest::setOwnerAccount(const std::string& ownerAccount
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeDBInstancesRequest::getConnectionDomain()const
{
return connectionDomain_;
}
void DescribeDBInstancesRequest::setConnectionDomain(const std::string& connectionDomain)
{
connectionDomain_ = connectionDomain;
setParameter("ConnectionDomain", connectionDomain);
}
long DescribeDBInstancesRequest::getOwnerId()const
{
return ownerId_;

View File

@@ -71,6 +71,17 @@ void DescribeErrorLogRecordsRequest::setAccessKeyId(const std::string& accessKey
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeErrorLogRecordsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeErrorLogRecordsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeErrorLogRecordsRequest::getSecurityToken()const
{
return securityToken_;
@@ -126,17 +137,6 @@ void DescribeErrorLogRecordsRequest::setNodeId(const std::string& nodeId)
setParameter("NodeId", nodeId);
}
long DescribeErrorLogRecordsRequest::getSQLId()const
{
return sQLId_;
}
void DescribeErrorLogRecordsRequest::setSQLId(long sQLId)
{
sQLId_ = sQLId;
setParameter("SQLId", std::to_string(sQLId));
}
std::string DescribeErrorLogRecordsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -71,6 +71,17 @@ void DescribePriceRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribePriceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribePriceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribePriceRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -56,11 +56,11 @@ void DescribePriceResult::parse(const std::string &payload)
{
SubOrder subOrdersObject;
if(!valueSubOrdersSubOrder["OriginalAmount"].isNull())
subOrdersObject.originalAmount = std::stof(valueSubOrdersSubOrder["OriginalAmount"].asString());
subOrdersObject.originalAmount = valueSubOrdersSubOrder["OriginalAmount"].asString();
if(!valueSubOrdersSubOrder["TradeAmount"].isNull())
subOrdersObject.tradeAmount = std::stof(valueSubOrdersSubOrder["TradeAmount"].asString());
subOrdersObject.tradeAmount = valueSubOrdersSubOrder["TradeAmount"].asString();
if(!valueSubOrdersSubOrder["DiscountAmount"].isNull())
subOrdersObject.discountAmount = std::stof(valueSubOrdersSubOrder["DiscountAmount"].asString());
subOrdersObject.discountAmount = valueSubOrdersSubOrder["DiscountAmount"].asString();
if(!valueSubOrdersSubOrder["InstanceId"].isNull())
subOrdersObject.instanceId = valueSubOrdersSubOrder["InstanceId"].asString();
auto allRuleIds = value["RuleIds"]["RuleId"];
@@ -70,11 +70,11 @@ void DescribePriceResult::parse(const std::string &payload)
}
auto orderNode = value["Order"];
if(!orderNode["OriginalAmount"].isNull())
order_.originalAmount = std::stof(orderNode["OriginalAmount"].asString());
order_.originalAmount = orderNode["OriginalAmount"].asString();
if(!orderNode["TradeAmount"].isNull())
order_.tradeAmount = std::stof(orderNode["TradeAmount"].asString());
order_.tradeAmount = orderNode["TradeAmount"].asString();
if(!orderNode["DiscountAmount"].isNull())
order_.discountAmount = std::stof(orderNode["DiscountAmount"].asString());
order_.discountAmount = orderNode["DiscountAmount"].asString();
if(!orderNode["Currency"].isNull())
order_.currency = orderNode["Currency"].asString();
auto allCouponsNode = orderNode["Coupons"]["Coupon"];

View File

@@ -71,6 +71,17 @@ void DescribeRunningLogRecordsRequest::setAccessKeyId(const std::string& accessK
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeRunningLogRecordsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeRunningLogRecordsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeRunningLogRecordsRequest::getSecurityToken()const
{
return securityToken_;
@@ -126,17 +137,6 @@ void DescribeRunningLogRecordsRequest::setNodeId(const std::string& nodeId)
setParameter("NodeId", nodeId);
}
long DescribeRunningLogRecordsRequest::getSQLId()const
{
return sQLId_;
}
void DescribeRunningLogRecordsRequest::setSQLId(long sQLId)
{
sQLId_ = sQLId;
setParameter("SQLId", std::to_string(sQLId));
}
std::string DescribeRunningLogRecordsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -52,7 +52,7 @@ void DescribeRunningLogRecordsResult::parse(const std::string &payload)
if(!valueItemsLogRecords["ConnInfo"].isNull())
itemsObject.connInfo = valueItemsLogRecords["ConnInfo"].asString();
if(!valueItemsLogRecords["Content"].isNull())
itemsObject.content = std::stol(valueItemsLogRecords["Content"].asString());
itemsObject.content = valueItemsLogRecords["Content"].asString();
items_.push_back(itemsObject);
}
if(!value["Engine"].isNull())

View File

@@ -71,6 +71,17 @@ void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyI
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeSlowLogRecordsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeSlowLogRecordsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeSlowLogRecordsRequest::getSecurityToken()const
{
return securityToken_;
@@ -115,17 +126,6 @@ void DescribeSlowLogRecordsRequest::setNodeId(const std::string& nodeId)
setParameter("NodeId", nodeId);
}
long DescribeSlowLogRecordsRequest::getSQLId()const
{
return sQLId_;
}
void DescribeSlowLogRecordsRequest::setSQLId(long sQLId)
{
sQLId_ = sQLId;
setParameter("SQLId", std::to_string(sQLId));
}
std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -49,6 +49,17 @@ void DescribeTagsRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeTagsRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeTagsRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeTagsRequest::getRegionId()const
{
return regionId_;
@@ -71,17 +82,6 @@ void DescribeTagsRequest::setNextToken(const std::string& nextToken)
setParameter("NextToken", nextToken);
}
std::string DescribeTagsRequest::getProduct()const
{
return product_;
}
void DescribeTagsRequest::setProduct(const std::string& product)
{
product_ = product;
setParameter("Product", product);
}
std::string DescribeTagsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -126,14 +126,3 @@ void DescribeTagsRequest::setResourceType(const std::string& resourceType)
setParameter("ResourceType", resourceType);
}
std::string DescribeTagsRequest::getCategory()const
{
return category_;
}
void DescribeTagsRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
}

View File

@@ -104,3 +104,14 @@ void DescribeUserEncryptionKeyListRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeUserEncryptionKeyListRequest::getTargetRegionId()const
{
return targetRegionId_;
}
void DescribeUserEncryptionKeyListRequest::setTargetRegionId(const std::string& targetRegionId)
{
targetRegionId_ = targetRegionId;
setParameter("TargetRegionId", targetRegionId);
}

View File

@@ -60,6 +60,17 @@ void DestroyInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string DestroyInstanceRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DestroyInstanceRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DestroyInstanceRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -0,0 +1,172 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/dds/model/EvaluateResourceRequest.h>
using AlibabaCloud::Dds::Model::EvaluateResourceRequest;
EvaluateResourceRequest::EvaluateResourceRequest() :
RpcServiceRequest("dds", "2015-12-01", "EvaluateResource")
{
setMethod(HttpRequest::Method::Post);
}
EvaluateResourceRequest::~EvaluateResourceRequest()
{}
long EvaluateResourceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void EvaluateResourceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string EvaluateResourceRequest::getEngineVersion()const
{
return engineVersion_;
}
void EvaluateResourceRequest::setEngineVersion(const std::string& engineVersion)
{
engineVersion_ = engineVersion;
setParameter("EngineVersion", engineVersion);
}
std::string EvaluateResourceRequest::getShardsInfo()const
{
return shardsInfo_;
}
void EvaluateResourceRequest::setShardsInfo(const std::string& shardsInfo)
{
shardsInfo_ = shardsInfo;
setParameter("ShardsInfo", shardsInfo);
}
std::string EvaluateResourceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void EvaluateResourceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string EvaluateResourceRequest::getSecurityToken()const
{
return securityToken_;
}
void EvaluateResourceRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string EvaluateResourceRequest::getRegionId()const
{
return regionId_;
}
void EvaluateResourceRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string EvaluateResourceRequest::getEngine()const
{
return engine_;
}
void EvaluateResourceRequest::setEngine(const std::string& engine)
{
engine_ = engine;
setParameter("Engine", engine);
}
std::string EvaluateResourceRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void EvaluateResourceRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setParameter("DBInstanceId", dBInstanceId);
}
std::string EvaluateResourceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void EvaluateResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string EvaluateResourceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void EvaluateResourceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long EvaluateResourceRequest::getOwnerId()const
{
return ownerId_;
}
void EvaluateResourceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string EvaluateResourceRequest::getDBInstanceClass()const
{
return dBInstanceClass_;
}
void EvaluateResourceRequest::setDBInstanceClass(const std::string& dBInstanceClass)
{
dBInstanceClass_ = dBInstanceClass;
setParameter("DBInstanceClass", dBInstanceClass);
}
std::string EvaluateResourceRequest::getZoneId()const
{
return zoneId_;
}
void EvaluateResourceRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}

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.
*/
#include <alibabacloud/dds/model/EvaluateResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dds;
using namespace AlibabaCloud::Dds::Model;
EvaluateResourceResult::EvaluateResourceResult() :
ServiceResult()
{}
EvaluateResourceResult::EvaluateResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EvaluateResourceResult::~EvaluateResourceResult()
{}
void EvaluateResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Engine"].isNull())
engine_ = value["Engine"].asString();
if(!value["EngineVersion"].isNull())
engineVersion_ = value["EngineVersion"].asString();
if(!value["DBInstanceAvailable"].isNull())
dBInstanceAvailable_ = value["DBInstanceAvailable"].asString();
}
std::string EvaluateResourceResult::getDBInstanceAvailable()const
{
return dBInstanceAvailable_;
}
std::string EvaluateResourceResult::getEngineVersion()const
{
return engineVersion_;
}
std::string EvaluateResourceResult::getEngine()const
{
return engine_;
}

View File

@@ -49,6 +49,17 @@ void SwitchDBInstanceHARequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
int SwitchDBInstanceHARequest::getSwitchMode()const
{
return switchMode_;
}
void SwitchDBInstanceHARequest::setSwitchMode(int switchMode)
{
switchMode_ = switchMode;
setParameter("SwitchMode", std::to_string(switchMode));
}
std::string SwitchDBInstanceHARequest::getRoleIds()const
{
return roleIds_;

View File

@@ -49,6 +49,17 @@ void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string TagResourcesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void TagResourcesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string TagResourcesRequest::getRegionId()const
{
return regionId_;

View File

@@ -49,6 +49,17 @@ void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string UntagResourcesRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void UntagResourcesRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string UntagResourcesRequest::getRegionId()const
{
return regionId_;

138
devops-rdc/CMakeLists.txt Normal file
View File

@@ -0,0 +1,138 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT 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(devops-rdc_public_header
include/alibabacloud/devops-rdc/Devops_rdcClient.h
include/alibabacloud/devops-rdc/Devops_rdcExport.h )
set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/CancelPipelineRequest.h
include/alibabacloud/devops-rdc/model/CancelPipelineResult.h
include/alibabacloud/devops-rdc/model/CreateCredentialRequest.h
include/alibabacloud/devops-rdc/model/CreateCredentialResult.h
include/alibabacloud/devops-rdc/model/CreatePipelineRequest.h
include/alibabacloud/devops-rdc/model/CreatePipelineResult.h
include/alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h
include/alibabacloud/devops-rdc/model/CreateServiceConnectionResult.h
include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h
include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusResult.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusResult.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceInfoResult.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h
include/alibabacloud/devops-rdc/model/GetPipelineInstanceStatusResult.h
include/alibabacloud/devops-rdc/model/GetPipelineLogRequest.h
include/alibabacloud/devops-rdc/model/GetPipelineLogResult.h
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h
include/alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusResult.h
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
include/alibabacloud/devops-rdc/model/ListCredentialsResult.h
include/alibabacloud/devops-rdc/model/ListPipelinesRequest.h
include/alibabacloud/devops-rdc/model/ListPipelinesResult.h
include/alibabacloud/devops-rdc/model/ListServiceConnectionsRequest.h
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h )
set(devops-rdc_src
src/Devops-rdcClient.cc
src/model/CancelPipelineRequest.cc
src/model/CancelPipelineResult.cc
src/model/CreateCredentialRequest.cc
src/model/CreateCredentialResult.cc
src/model/CreatePipelineRequest.cc
src/model/CreatePipelineResult.cc
src/model/CreateServiceConnectionRequest.cc
src/model/CreateServiceConnectionResult.cc
src/model/ExecutePipelineRequest.cc
src/model/ExecutePipelineResult.cc
src/model/GetPipelineInstanceBuildNumberStatusRequest.cc
src/model/GetPipelineInstanceBuildNumberStatusResult.cc
src/model/GetPipelineInstanceGroupStatusRequest.cc
src/model/GetPipelineInstanceGroupStatusResult.cc
src/model/GetPipelineInstanceInfoRequest.cc
src/model/GetPipelineInstanceInfoResult.cc
src/model/GetPipelineInstanceStatusRequest.cc
src/model/GetPipelineInstanceStatusResult.cc
src/model/GetPipelineLogRequest.cc
src/model/GetPipelineLogResult.cc
src/model/GetPipleineLatestInstanceStatusRequest.cc
src/model/GetPipleineLatestInstanceStatusResult.cc
src/model/ListCredentialsRequest.cc
src/model/ListCredentialsResult.cc
src/model/ListPipelinesRequest.cc
src/model/ListPipelinesResult.cc
src/model/ListServiceConnectionsRequest.cc
src/model/ListServiceConnectionsResult.cc )
add_library(devops-rdc ${LIB_TYPE}
${devops-rdc_public_header}
${devops-rdc_public_header_model}
${devops-rdc_src})
set_target_properties(devops-rdc
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}devops-rdc
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(devops-rdc
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_DEVOPS_RDC_LIBRARY)
endif()
target_include_directories(devops-rdc
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(devops-rdc
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(devops-rdc
jsoncpp)
target_include_directories(devops-rdc
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(devops-rdc
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(devops-rdc
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(devops-rdc
PRIVATE /usr/include/jsoncpp)
target_link_libraries(devops-rdc
jsoncpp)
endif()
install(FILES ${devops-rdc_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc)
install(FILES ${devops-rdc_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops-rdc/model)
install(TARGETS devops-rdc
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,158 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DEVOPS_RDCCLIENT_H_
#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "Devops_rdcExport.h"
#include "model/CancelPipelineRequest.h"
#include "model/CancelPipelineResult.h"
#include "model/CreateCredentialRequest.h"
#include "model/CreateCredentialResult.h"
#include "model/CreatePipelineRequest.h"
#include "model/CreatePipelineResult.h"
#include "model/CreateServiceConnectionRequest.h"
#include "model/CreateServiceConnectionResult.h"
#include "model/ExecutePipelineRequest.h"
#include "model/ExecutePipelineResult.h"
#include "model/GetPipelineInstanceBuildNumberStatusRequest.h"
#include "model/GetPipelineInstanceBuildNumberStatusResult.h"
#include "model/GetPipelineInstanceGroupStatusRequest.h"
#include "model/GetPipelineInstanceGroupStatusResult.h"
#include "model/GetPipelineInstanceInfoRequest.h"
#include "model/GetPipelineInstanceInfoResult.h"
#include "model/GetPipelineInstanceStatusRequest.h"
#include "model/GetPipelineInstanceStatusResult.h"
#include "model/GetPipelineLogRequest.h"
#include "model/GetPipelineLogResult.h"
#include "model/GetPipleineLatestInstanceStatusRequest.h"
#include "model/GetPipleineLatestInstanceStatusResult.h"
#include "model/ListCredentialsRequest.h"
#include "model/ListCredentialsResult.h"
#include "model/ListPipelinesRequest.h"
#include "model/ListPipelinesResult.h"
#include "model/ListServiceConnectionsRequest.h"
#include "model/ListServiceConnectionsResult.h"
namespace AlibabaCloud
{
namespace Devops_rdc
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT Devops_rdcClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CancelPipelineResult> CancelPipelineOutcome;
typedef std::future<CancelPipelineOutcome> CancelPipelineOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CancelPipelineRequest&, const CancelPipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelPipelineAsyncHandler;
typedef Outcome<Error, Model::CreateCredentialResult> CreateCredentialOutcome;
typedef std::future<CreateCredentialOutcome> CreateCredentialOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreateCredentialRequest&, const CreateCredentialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCredentialAsyncHandler;
typedef Outcome<Error, Model::CreatePipelineResult> CreatePipelineOutcome;
typedef std::future<CreatePipelineOutcome> CreatePipelineOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreatePipelineRequest&, const CreatePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePipelineAsyncHandler;
typedef Outcome<Error, Model::CreateServiceConnectionResult> CreateServiceConnectionOutcome;
typedef std::future<CreateServiceConnectionOutcome> CreateServiceConnectionOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::CreateServiceConnectionRequest&, const CreateServiceConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServiceConnectionAsyncHandler;
typedef Outcome<Error, Model::ExecutePipelineResult> ExecutePipelineOutcome;
typedef std::future<ExecutePipelineOutcome> ExecutePipelineOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ExecutePipelineRequest&, const ExecutePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecutePipelineAsyncHandler;
typedef Outcome<Error, Model::GetPipelineInstanceBuildNumberStatusResult> GetPipelineInstanceBuildNumberStatusOutcome;
typedef std::future<GetPipelineInstanceBuildNumberStatusOutcome> GetPipelineInstanceBuildNumberStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceBuildNumberStatusRequest&, const GetPipelineInstanceBuildNumberStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceBuildNumberStatusAsyncHandler;
typedef Outcome<Error, Model::GetPipelineInstanceGroupStatusResult> GetPipelineInstanceGroupStatusOutcome;
typedef std::future<GetPipelineInstanceGroupStatusOutcome> GetPipelineInstanceGroupStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceGroupStatusRequest&, const GetPipelineInstanceGroupStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceGroupStatusAsyncHandler;
typedef Outcome<Error, Model::GetPipelineInstanceInfoResult> GetPipelineInstanceInfoOutcome;
typedef std::future<GetPipelineInstanceInfoOutcome> GetPipelineInstanceInfoOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceInfoRequest&, const GetPipelineInstanceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceInfoAsyncHandler;
typedef Outcome<Error, Model::GetPipelineInstanceStatusResult> GetPipelineInstanceStatusOutcome;
typedef std::future<GetPipelineInstanceStatusOutcome> GetPipelineInstanceStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceStatusRequest&, const GetPipelineInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceStatusAsyncHandler;
typedef Outcome<Error, Model::GetPipelineLogResult> GetPipelineLogOutcome;
typedef std::future<GetPipelineLogOutcome> GetPipelineLogOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineLogRequest&, const GetPipelineLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineLogAsyncHandler;
typedef Outcome<Error, Model::GetPipleineLatestInstanceStatusResult> GetPipleineLatestInstanceStatusOutcome;
typedef std::future<GetPipleineLatestInstanceStatusOutcome> GetPipleineLatestInstanceStatusOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipleineLatestInstanceStatusRequest&, const GetPipleineLatestInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipleineLatestInstanceStatusAsyncHandler;
typedef Outcome<Error, Model::ListCredentialsResult> ListCredentialsOutcome;
typedef std::future<ListCredentialsOutcome> ListCredentialsOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListCredentialsRequest&, const ListCredentialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCredentialsAsyncHandler;
typedef Outcome<Error, Model::ListPipelinesResult> ListPipelinesOutcome;
typedef std::future<ListPipelinesOutcome> ListPipelinesOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListPipelinesRequest&, const ListPipelinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPipelinesAsyncHandler;
typedef Outcome<Error, Model::ListServiceConnectionsResult> ListServiceConnectionsOutcome;
typedef std::future<ListServiceConnectionsOutcome> ListServiceConnectionsOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListServiceConnectionsRequest&, const ListServiceConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceConnectionsAsyncHandler;
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
Devops_rdcClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~Devops_rdcClient();
CancelPipelineOutcome cancelPipeline(const Model::CancelPipelineRequest &request)const;
void cancelPipelineAsync(const Model::CancelPipelineRequest& request, const CancelPipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CancelPipelineOutcomeCallable cancelPipelineCallable(const Model::CancelPipelineRequest& request) const;
CreateCredentialOutcome createCredential(const Model::CreateCredentialRequest &request)const;
void createCredentialAsync(const Model::CreateCredentialRequest& request, const CreateCredentialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateCredentialOutcomeCallable createCredentialCallable(const Model::CreateCredentialRequest& request) const;
CreatePipelineOutcome createPipeline(const Model::CreatePipelineRequest &request)const;
void createPipelineAsync(const Model::CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreatePipelineOutcomeCallable createPipelineCallable(const Model::CreatePipelineRequest& request) const;
CreateServiceConnectionOutcome createServiceConnection(const Model::CreateServiceConnectionRequest &request)const;
void createServiceConnectionAsync(const Model::CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateServiceConnectionOutcomeCallable createServiceConnectionCallable(const Model::CreateServiceConnectionRequest& request) const;
ExecutePipelineOutcome executePipeline(const Model::ExecutePipelineRequest &request)const;
void executePipelineAsync(const Model::ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecutePipelineOutcomeCallable executePipelineCallable(const Model::ExecutePipelineRequest& request) const;
GetPipelineInstanceBuildNumberStatusOutcome getPipelineInstanceBuildNumberStatus(const Model::GetPipelineInstanceBuildNumberStatusRequest &request)const;
void getPipelineInstanceBuildNumberStatusAsync(const Model::GetPipelineInstanceBuildNumberStatusRequest& request, const GetPipelineInstanceBuildNumberStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipelineInstanceBuildNumberStatusOutcomeCallable getPipelineInstanceBuildNumberStatusCallable(const Model::GetPipelineInstanceBuildNumberStatusRequest& request) const;
GetPipelineInstanceGroupStatusOutcome getPipelineInstanceGroupStatus(const Model::GetPipelineInstanceGroupStatusRequest &request)const;
void getPipelineInstanceGroupStatusAsync(const Model::GetPipelineInstanceGroupStatusRequest& request, const GetPipelineInstanceGroupStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipelineInstanceGroupStatusOutcomeCallable getPipelineInstanceGroupStatusCallable(const Model::GetPipelineInstanceGroupStatusRequest& request) const;
GetPipelineInstanceInfoOutcome getPipelineInstanceInfo(const Model::GetPipelineInstanceInfoRequest &request)const;
void getPipelineInstanceInfoAsync(const Model::GetPipelineInstanceInfoRequest& request, const GetPipelineInstanceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipelineInstanceInfoOutcomeCallable getPipelineInstanceInfoCallable(const Model::GetPipelineInstanceInfoRequest& request) const;
GetPipelineInstanceStatusOutcome getPipelineInstanceStatus(const Model::GetPipelineInstanceStatusRequest &request)const;
void getPipelineInstanceStatusAsync(const Model::GetPipelineInstanceStatusRequest& request, const GetPipelineInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipelineInstanceStatusOutcomeCallable getPipelineInstanceStatusCallable(const Model::GetPipelineInstanceStatusRequest& request) const;
GetPipelineLogOutcome getPipelineLog(const Model::GetPipelineLogRequest &request)const;
void getPipelineLogAsync(const Model::GetPipelineLogRequest& request, const GetPipelineLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipelineLogOutcomeCallable getPipelineLogCallable(const Model::GetPipelineLogRequest& request) const;
GetPipleineLatestInstanceStatusOutcome getPipleineLatestInstanceStatus(const Model::GetPipleineLatestInstanceStatusRequest &request)const;
void getPipleineLatestInstanceStatusAsync(const Model::GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPipleineLatestInstanceStatusOutcomeCallable getPipleineLatestInstanceStatusCallable(const Model::GetPipleineLatestInstanceStatusRequest& request) const;
ListCredentialsOutcome listCredentials(const Model::ListCredentialsRequest &request)const;
void listCredentialsAsync(const Model::ListCredentialsRequest& request, const ListCredentialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCredentialsOutcomeCallable listCredentialsCallable(const Model::ListCredentialsRequest& request) const;
ListPipelinesOutcome listPipelines(const Model::ListPipelinesRequest &request)const;
void listPipelinesAsync(const Model::ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPipelinesOutcomeCallable listPipelinesCallable(const Model::ListPipelinesRequest& request) const;
ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const;
void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCCLIENT_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_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_
#define ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_DEVOPS_RDC_LIBRARY)
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_DEVOPS_RDC_EXPORT
#endif
#endif // !ALIBABACLOUD_DEVOPS_RDC_DEVOPS_RDCEXPORT_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_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_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 CancelPipelineRequest : public RpcServiceRequest
{
public:
CancelPipelineRequest();
~CancelPipelineRequest();
long getFlowInstanceId()const;
void setFlowInstanceId(long flowInstanceId);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
long flowInstanceId_;
std::string userPk_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINEREQUEST_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_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_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 CancelPipelineResult : public ServiceResult
{
public:
CancelPipelineResult();
explicit CancelPipelineResult(const std::string &payload);
~CancelPipelineResult();
bool getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
bool object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CANCELPIPELINERESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_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 CreateCredentialRequest : public RpcServiceRequest
{
public:
CreateCredentialRequest();
~CreateCredentialRequest();
std::string getType()const;
void setType(const std::string& type);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getPassword()const;
void setPassword(const std::string& password);
std::string getName()const;
void setName(const std::string& name);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string type_;
std::string userPk_;
std::string orgId_;
std::string password_;
std::string name_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALREQUEST_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_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_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 CreateCredentialResult : public ServiceResult
{
public:
CreateCredentialResult();
explicit CreateCredentialResult(const std::string &payload);
~CreateCredentialResult();
long getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATECREDENTIALRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_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 CreatePipelineRequest : public RpcServiceRequest
{
public:
CreatePipelineRequest();
~CreatePipelineRequest();
std::string getPipeline()const;
void setPipeline(const std::string& pipeline);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string pipeline_;
std::string userPk_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINEREQUEST_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_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_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 CreatePipelineResult : public ServiceResult
{
public:
CreatePipelineResult();
explicit CreatePipelineResult(const std::string &payload);
~CreatePipelineResult();
long getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATEPIPELINERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_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 CreateServiceConnectionRequest : public RpcServiceRequest
{
public:
CreateServiceConnectionRequest();
~CreateServiceConnectionRequest();
std::string getServiceConnectionType()const;
void setServiceConnectionType(const std::string& serviceConnectionType);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
private:
std::string serviceConnectionType_;
std::string userPk_;
std::string orgId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONREQUEST_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_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_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 CreateServiceConnectionResult : public ServiceResult
{
public:
CreateServiceConnectionResult();
explicit CreateServiceConnectionResult(const std::string &payload);
~CreateServiceConnectionResult();
long getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_CREATESERVICECONNECTIONRESULT_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_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_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 ExecutePipelineRequest : public RpcServiceRequest
{
public:
ExecutePipelineRequest();
~ExecutePipelineRequest();
std::string getParameters()const;
void setParameters(const std::string& parameters);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string parameters_;
std::string userPk_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINEREQUEST_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_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_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 ExecutePipelineResult : public ServiceResult
{
public:
ExecutePipelineResult();
explicit ExecutePipelineResult(const std::string &payload);
~ExecutePipelineResult();
long getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_EXECUTEPIPELINERESULT_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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_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 GetPipelineInstanceBuildNumberStatusRequest : public RpcServiceRequest
{
public:
GetPipelineInstanceBuildNumberStatusRequest();
~GetPipelineInstanceBuildNumberStatusRequest();
long getBuildNum()const;
void setBuildNum(long buildNum);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
long buildNum_;
std::string userPk_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_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 GetPipelineInstanceBuildNumberStatusResult : public ServiceResult
{
public:
struct Object
{
struct Group
{
struct Stage
{
struct Component
{
std::string status;
long jobId;
std::string name;
};
std::vector<Stage::Component> components;
std::string status;
std::string sign;
};
std::string status;
std::vector<Group::Stage> stages;
std::string name;
};
std::string status;
std::vector<Group> groups;
};
GetPipelineInstanceBuildNumberStatusResult();
explicit GetPipelineInstanceBuildNumberStatusResult(const std::string &payload);
~GetPipelineInstanceBuildNumberStatusResult();
Object getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Object object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEBUILDNUMBERSTATUSRESULT_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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_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 GetPipelineInstanceGroupStatusRequest : public RpcServiceRequest
{
public:
GetPipelineInstanceGroupStatusRequest();
~GetPipelineInstanceGroupStatusRequest();
long getFlowInstanceId()const;
void setFlowInstanceId(long flowInstanceId);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
long flowInstanceId_;
std::string userPk_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_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 GetPipelineInstanceGroupStatusResult : public ServiceResult
{
public:
struct Object
{
struct Group
{
struct Stage
{
struct Component
{
std::string status;
std::string jobId;
std::string name;
};
std::vector<Stage::Component> components;
std::string status;
std::string sign;
};
std::string status;
std::vector<Group::Stage> stages;
std::string name;
};
std::string status;
std::vector<Group> groups;
};
GetPipelineInstanceGroupStatusResult();
explicit GetPipelineInstanceGroupStatusResult(const std::string &payload);
~GetPipelineInstanceGroupStatusResult();
Object getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Object object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEGROUPSTATUSRESULT_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_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_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 GetPipelineInstanceInfoRequest : public RpcServiceRequest
{
public:
GetPipelineInstanceInfoRequest();
~GetPipelineInstanceInfoRequest();
std::string getFlowInstanceId()const;
void setFlowInstanceId(const std::string& flowInstanceId);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string flowInstanceId_;
std::string userPk_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTANCEINFOREQUEST_H_

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