Compare commits

...

11 Commits

Author SHA1 Message Date
sdk-team
cc8cf316cd Update ScalingConfig parameters. 2020-10-26 07:45:33 +00:00
sdk-team
1908e64fa6 Change Configuration. 2020-10-23 09:52:11 +00:00
sdk-team
8f6d6d4d1d Update DetectLungNodule. 2020-10-23 06:45:18 +00:00
sdk-team
e5ea19cdfb Support feedback. 2020-10-23 03:01:46 +00:00
sdk-team
55c7cdde91 Add Pipeline Member api. 2020-10-22 12:00:10 +00:00
sdk-team
836913a2a9 Update data API. 2020-10-22 11:03:56 +00:00
sdk-team
b34cb31a9a Update cert API. 2020-10-22 10:58:21 +00:00
sdk-team
8ef1e983c1 Update data API. 2020-10-22 10:57:52 +00:00
sdk-team
3845e06de3 DescribeAvailableResource support AcceptLanguage. 2020-10-21 12:31:56 +00:00
sdk-team
a349057ec2 Change Documentation configuration. 2020-10-21 10:10:32 +00:00
sdk-team
0cf373bc60 Cloud Storage Gateway openapi sdk is released. 2020-10-21 08:58:16 +00:00
801 changed files with 44936 additions and 1145 deletions

View File

@@ -1,3 +1,36 @@
2020-10-26 Version: patch
- Update ScalingConfig parameters.
2020-10-23 Version: patch
- Change Configuration.
2020-10-23 Version: patch
- Update DetectLungNodule.
2020-10-23 Version: patch
- Support feedback.
2020-10-22 Version: patch
- Add Pipeline Member api.
2020-10-22 Version: patch
- Update data API.
2020-10-22 Version: patch
- Update cert API.
2020-10-22 Version: patch
- Update data API.
2020-10-21 Version: patch
- DescribeAvailableResource support AcceptLanguage.
2020-10-21 Version: patch
- Change Documentation configuration.
2020-10-21 Version: patch
- Cloud Storage Gateway openapi sdk is released.
2020-10-21 Version: patch
- Release latest features.

View File

@@ -113,6 +113,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainStagingConfigRequest.h
@@ -155,6 +157,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnTagResourcesResult.h
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h
@@ -302,6 +306,8 @@ set(dcdn_src
src/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.cc
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc
src/model/DescribeDcdnDomainRealTimeTrafficDataRequest.cc
src/model/DescribeDcdnDomainRealTimeTrafficDataResult.cc
src/model/DescribeDcdnDomainRegionDataRequest.cc
src/model/DescribeDcdnDomainRegionDataResult.cc
src/model/DescribeDcdnDomainStagingConfigRequest.cc
@@ -344,6 +350,8 @@ set(dcdn_src
src/model/DescribeDcdnTagResourcesResult.cc
src/model/DescribeDcdnTopDomainsByFlowRequest.cc
src/model/DescribeDcdnTopDomainsByFlowResult.cc
src/model/DescribeDcdnUserBillHistoryRequest.cc
src/model/DescribeDcdnUserBillHistoryResult.cc
src/model/DescribeDcdnUserBillTypeRequest.cc
src/model/DescribeDcdnUserBillTypeResult.cc
src/model/DescribeDcdnUserDomainsRequest.cc

View File

@@ -114,6 +114,8 @@
#include "model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h"
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h"
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h"
#include "model/DescribeDcdnDomainRealTimeTrafficDataRequest.h"
#include "model/DescribeDcdnDomainRealTimeTrafficDataResult.h"
#include "model/DescribeDcdnDomainRegionDataRequest.h"
#include "model/DescribeDcdnDomainRegionDataResult.h"
#include "model/DescribeDcdnDomainStagingConfigRequest.h"
@@ -156,6 +158,8 @@
#include "model/DescribeDcdnTagResourcesResult.h"
#include "model/DescribeDcdnTopDomainsByFlowRequest.h"
#include "model/DescribeDcdnTopDomainsByFlowResult.h"
#include "model/DescribeDcdnUserBillHistoryRequest.h"
#include "model/DescribeDcdnUserBillHistoryResult.h"
#include "model/DescribeDcdnUserBillTypeRequest.h"
#include "model/DescribeDcdnUserBillTypeResult.h"
#include "model/DescribeDcdnUserDomainsRequest.h"
@@ -355,6 +359,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeSrcTrafficDataResult> DescribeDcdnDomainRealTimeSrcTrafficDataOutcome;
typedef std::future<DescribeDcdnDomainRealTimeSrcTrafficDataOutcome> DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest&, const DescribeDcdnDomainRealTimeSrcTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeTrafficDataResult> DescribeDcdnDomainRealTimeTrafficDataOutcome;
typedef std::future<DescribeDcdnDomainRealTimeTrafficDataOutcome> DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeTrafficDataRequest&, const DescribeDcdnDomainRealTimeTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeTrafficDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnDomainRegionDataResult> DescribeDcdnDomainRegionDataOutcome;
typedef std::future<DescribeDcdnDomainRegionDataOutcome> DescribeDcdnDomainRegionDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRegionDataRequest&, const DescribeDcdnDomainRegionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRegionDataAsyncHandler;
@@ -418,6 +425,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnTopDomainsByFlowResult> DescribeDcdnTopDomainsByFlowOutcome;
typedef std::future<DescribeDcdnTopDomainsByFlowOutcome> DescribeDcdnTopDomainsByFlowOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnTopDomainsByFlowRequest&, const DescribeDcdnTopDomainsByFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnTopDomainsByFlowAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnUserBillHistoryResult> DescribeDcdnUserBillHistoryOutcome;
typedef std::future<DescribeDcdnUserBillHistoryOutcome> DescribeDcdnUserBillHistoryOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillHistoryRequest&, const DescribeDcdnUserBillHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillHistoryAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnUserBillTypeResult> DescribeDcdnUserBillTypeOutcome;
typedef std::future<DescribeDcdnUserBillTypeOutcome> DescribeDcdnUserBillTypeOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillTypeRequest&, const DescribeDcdnUserBillTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillTypeAsyncHandler;
@@ -639,6 +649,9 @@ namespace AlibabaCloud
DescribeDcdnDomainRealTimeSrcTrafficDataOutcome describeDcdnDomainRealTimeSrcTrafficData(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request)const;
void describeDcdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable describeDcdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request) const;
DescribeDcdnDomainRealTimeTrafficDataOutcome describeDcdnDomainRealTimeTrafficData(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest &request)const;
void describeDcdnDomainRealTimeTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable describeDcdnDomainRealTimeTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request) const;
DescribeDcdnDomainRegionDataOutcome describeDcdnDomainRegionData(const Model::DescribeDcdnDomainRegionDataRequest &request)const;
void describeDcdnDomainRegionDataAsync(const Model::DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRegionDataOutcomeCallable describeDcdnDomainRegionDataCallable(const Model::DescribeDcdnDomainRegionDataRequest& request) const;
@@ -702,6 +715,9 @@ namespace AlibabaCloud
DescribeDcdnTopDomainsByFlowOutcome describeDcdnTopDomainsByFlow(const Model::DescribeDcdnTopDomainsByFlowRequest &request)const;
void describeDcdnTopDomainsByFlowAsync(const Model::DescribeDcdnTopDomainsByFlowRequest& request, const DescribeDcdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnTopDomainsByFlowOutcomeCallable describeDcdnTopDomainsByFlowCallable(const Model::DescribeDcdnTopDomainsByFlowRequest& request) const;
DescribeDcdnUserBillHistoryOutcome describeDcdnUserBillHistory(const Model::DescribeDcdnUserBillHistoryRequest &request)const;
void describeDcdnUserBillHistoryAsync(const Model::DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnUserBillHistoryOutcomeCallable describeDcdnUserBillHistoryCallable(const Model::DescribeDcdnUserBillHistoryRequest& request) const;
DescribeDcdnUserBillTypeOutcome describeDcdnUserBillType(const Model::DescribeDcdnUserBillTypeRequest &request)const;
void describeDcdnUserBillTypeAsync(const Model::DescribeDcdnUserBillTypeRequest& request, const DescribeDcdnUserBillTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnUserBillTypeOutcomeCallable describeDcdnUserBillTypeCallable(const Model::DescribeDcdnUserBillTypeRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeTrafficDataRequest : public RpcServiceRequest
{
public:
DescribeDcdnDomainRealTimeTrafficDataRequest();
~DescribeDcdnDomainRealTimeTrafficDataRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string startTime_;
std::string domainName_;
std::string endTime_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeTrafficDataResult : public ServiceResult
{
public:
struct DataModule
{
std::string value;
std::string timeStamp;
};
DescribeDcdnDomainRealTimeTrafficDataResult();
explicit DescribeDcdnDomainRealTimeTrafficDataResult(const std::string &payload);
~DescribeDcdnDomainRealTimeTrafficDataResult();
std::string getEndTime()const;
std::vector<DataModule> getRealTimeTrafficDataPerInterval()const;
std::string getDomainName()const;
std::string getStartTime()const;
std::string getDataInterval()const;
protected:
void parse(const std::string &payload);
private:
std::string endTime_;
std::vector<DataModule> realTimeTrafficDataPerInterval_;
std::string domainName_;
std::string startTime_;
std::string dataInterval_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_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_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserBillHistoryRequest : public RpcServiceRequest
{
public:
DescribeDcdnUserBillHistoryRequest();
~DescribeDcdnUserBillHistoryRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string startTime_;
std::string endTime_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserBillHistoryResult : public ServiceResult
{
public:
struct BillHistoryDataItem
{
struct BillingDataItem
{
std::string chargeType;
float bandwidth;
std::string cdnRegion;
float count;
float flow;
};
std::string billType;
std::string billTime;
std::vector<BillHistoryDataItem::BillingDataItem> billingData;
std::string dimension;
};
DescribeDcdnUserBillHistoryResult();
explicit DescribeDcdnUserBillHistoryResult(const std::string &payload);
~DescribeDcdnUserBillHistoryResult();
std::vector<BillHistoryDataItem> getBillHistoryData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<BillHistoryDataItem> billHistoryData_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_

View File

@@ -1707,6 +1707,42 @@ DcdnClient::DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable DcdnClient::
return task->get_future();
}
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcome DcdnClient::describeDcdnDomainRealTimeTrafficData(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnDomainRealTimeTrafficDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnDomainRealTimeTrafficDataOutcome(DescribeDcdnDomainRealTimeTrafficDataResult(outcome.result()));
else
return DescribeDcdnDomainRealTimeTrafficDataOutcome(outcome.error());
}
void DcdnClient::describeDcdnDomainRealTimeTrafficDataAsync(const DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnDomainRealTimeTrafficData(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeTrafficDataCallable(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnDomainRealTimeTrafficDataOutcome()>>(
[this, request]()
{
return this->describeDcdnDomainRealTimeTrafficData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnDomainRegionDataOutcome DcdnClient::describeDcdnDomainRegionData(const DescribeDcdnDomainRegionDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2463,6 +2499,42 @@ DcdnClient::DescribeDcdnTopDomainsByFlowOutcomeCallable DcdnClient::describeDcdn
return task->get_future();
}
DcdnClient::DescribeDcdnUserBillHistoryOutcome DcdnClient::describeDcdnUserBillHistory(const DescribeDcdnUserBillHistoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnUserBillHistoryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnUserBillHistoryOutcome(DescribeDcdnUserBillHistoryResult(outcome.result()));
else
return DescribeDcdnUserBillHistoryOutcome(outcome.error());
}
void DcdnClient::describeDcdnUserBillHistoryAsync(const DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnUserBillHistory(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnUserBillHistoryOutcomeCallable DcdnClient::describeDcdnUserBillHistoryCallable(const DescribeDcdnUserBillHistoryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnUserBillHistoryOutcome()>>(
[this, request]()
{
return this->describeDcdnUserBillHistory(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnUserBillTypeOutcome DcdnClient::describeDcdnUserBillType(const DescribeDcdnUserBillTypeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

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

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnDomainRealTimeTrafficDataResult::DescribeDcdnDomainRealTimeTrafficDataResult() :
ServiceResult()
{}
DescribeDcdnDomainRealTimeTrafficDataResult::DescribeDcdnDomainRealTimeTrafficDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnDomainRealTimeTrafficDataResult::~DescribeDcdnDomainRealTimeTrafficDataResult()
{}
void DescribeDcdnDomainRealTimeTrafficDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRealTimeTrafficDataPerIntervalNode = value["RealTimeTrafficDataPerInterval"]["DataModule"];
for (auto valueRealTimeTrafficDataPerIntervalDataModule : allRealTimeTrafficDataPerIntervalNode)
{
DataModule realTimeTrafficDataPerIntervalObject;
if(!valueRealTimeTrafficDataPerIntervalDataModule["TimeStamp"].isNull())
realTimeTrafficDataPerIntervalObject.timeStamp = valueRealTimeTrafficDataPerIntervalDataModule["TimeStamp"].asString();
if(!valueRealTimeTrafficDataPerIntervalDataModule["Value"].isNull())
realTimeTrafficDataPerIntervalObject.value = valueRealTimeTrafficDataPerIntervalDataModule["Value"].asString();
realTimeTrafficDataPerInterval_.push_back(realTimeTrafficDataPerIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getEndTime()const
{
return endTime_;
}
std::vector<DescribeDcdnDomainRealTimeTrafficDataResult::DataModule> DescribeDcdnDomainRealTimeTrafficDataResult::getRealTimeTrafficDataPerInterval()const
{
return realTimeTrafficDataPerInterval_;
}
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getDataInterval()const
{
return dataInterval_;
}

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/dcdn/model/DescribeDcdnUserBillHistoryRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnUserBillHistoryRequest;
DescribeDcdnUserBillHistoryRequest::DescribeDcdnUserBillHistoryRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserBillHistory")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnUserBillHistoryRequest::~DescribeDcdnUserBillHistoryRequest()
{}
std::string DescribeDcdnUserBillHistoryRequest::getStartTime()const
{
return startTime_;
}
void DescribeDcdnUserBillHistoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDcdnUserBillHistoryRequest::getEndTime()const
{
return endTime_;
}
void DescribeDcdnUserBillHistoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDcdnUserBillHistoryRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnUserBillHistoryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,77 @@
/*
* 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/dcdn/model/DescribeDcdnUserBillHistoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult() :
ServiceResult()
{}
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnUserBillHistoryResult::~DescribeDcdnUserBillHistoryResult()
{}
void DescribeDcdnUserBillHistoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBillHistoryDataNode = value["BillHistoryData"]["BillHistoryDataItem"];
for (auto valueBillHistoryDataBillHistoryDataItem : allBillHistoryDataNode)
{
BillHistoryDataItem billHistoryDataObject;
if(!valueBillHistoryDataBillHistoryDataItem["Dimension"].isNull())
billHistoryDataObject.dimension = valueBillHistoryDataBillHistoryDataItem["Dimension"].asString();
if(!valueBillHistoryDataBillHistoryDataItem["BillType"].isNull())
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
{
BillHistoryDataItem::BillingDataItem billingDataObject;
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
billHistoryDataObject.billingData.push_back(billingDataObject);
}
billHistoryData_.push_back(billHistoryDataObject);
}
}
std::vector<DescribeDcdnUserBillHistoryResult::BillHistoryDataItem> DescribeDcdnUserBillHistoryResult::getBillHistoryData()const
{
return billHistoryData_;
}

View File

@@ -51,6 +51,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectSprintResult.h
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskRequest.h
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskResult.h
include/alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/DeletePipelineMemberResult.h
include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h
include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h
include/alibabacloud/devops-rdc/model/GetDevopsOrganizationMembersRequest.h
@@ -79,6 +81,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/GetUserByAliyunUidResult.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserRequest.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserResult.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersResult.h
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
@@ -99,12 +103,16 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationResult.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h )
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberResult.h )
set(devops-rdc_src
src/Devops-rdcClient.cc
@@ -138,6 +146,8 @@ set(devops-rdc_src
src/model/DeleteDevopsProjectSprintResult.cc
src/model/DeleteDevopsProjectTaskRequest.cc
src/model/DeleteDevopsProjectTaskResult.cc
src/model/DeletePipelineMemberRequest.cc
src/model/DeletePipelineMemberResult.cc
src/model/ExecutePipelineRequest.cc
src/model/ExecutePipelineResult.cc
src/model/GetDevopsOrganizationMembersRequest.cc
@@ -166,6 +176,8 @@ set(devops-rdc_src
src/model/GetUserByAliyunUidResult.cc
src/model/InsertDevopsUserRequest.cc
src/model/InsertDevopsUserResult.cc
src/model/InsertPipelineMemberRequest.cc
src/model/InsertPipelineMemberResult.cc
src/model/InsertProjectMembersRequest.cc
src/model/InsertProjectMembersResult.cc
src/model/ListCredentialsRequest.cc
@@ -186,12 +198,16 @@ set(devops-rdc_src
src/model/ListServiceConnectionsResult.cc
src/model/ListUserOrganizationRequest.cc
src/model/ListUserOrganizationResult.cc
src/model/TransferPipelineOwnerRequest.cc
src/model/TransferPipelineOwnerResult.cc
src/model/UpdateDevopsProjectRequest.cc
src/model/UpdateDevopsProjectResult.cc
src/model/UpdateDevopsProjectSprintRequest.cc
src/model/UpdateDevopsProjectSprintResult.cc
src/model/UpdateDevopsProjectTaskRequest.cc
src/model/UpdateDevopsProjectTaskResult.cc )
src/model/UpdateDevopsProjectTaskResult.cc
src/model/UpdatePipelineMemberRequest.cc
src/model/UpdatePipelineMemberResult.cc )
add_library(devops-rdc ${LIB_TYPE}
${devops-rdc_public_header}

View File

@@ -52,6 +52,8 @@
#include "model/DeleteDevopsProjectSprintResult.h"
#include "model/DeleteDevopsProjectTaskRequest.h"
#include "model/DeleteDevopsProjectTaskResult.h"
#include "model/DeletePipelineMemberRequest.h"
#include "model/DeletePipelineMemberResult.h"
#include "model/ExecutePipelineRequest.h"
#include "model/ExecutePipelineResult.h"
#include "model/GetDevopsOrganizationMembersRequest.h"
@@ -80,6 +82,8 @@
#include "model/GetUserByAliyunUidResult.h"
#include "model/InsertDevopsUserRequest.h"
#include "model/InsertDevopsUserResult.h"
#include "model/InsertPipelineMemberRequest.h"
#include "model/InsertPipelineMemberResult.h"
#include "model/InsertProjectMembersRequest.h"
#include "model/InsertProjectMembersResult.h"
#include "model/ListCredentialsRequest.h"
@@ -100,12 +104,16 @@
#include "model/ListServiceConnectionsResult.h"
#include "model/ListUserOrganizationRequest.h"
#include "model/ListUserOrganizationResult.h"
#include "model/TransferPipelineOwnerRequest.h"
#include "model/TransferPipelineOwnerResult.h"
#include "model/UpdateDevopsProjectRequest.h"
#include "model/UpdateDevopsProjectResult.h"
#include "model/UpdateDevopsProjectSprintRequest.h"
#include "model/UpdateDevopsProjectSprintResult.h"
#include "model/UpdateDevopsProjectTaskRequest.h"
#include "model/UpdateDevopsProjectTaskResult.h"
#include "model/UpdatePipelineMemberRequest.h"
#include "model/UpdatePipelineMemberResult.h"
namespace AlibabaCloud
@@ -160,6 +168,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDevopsProjectTaskResult> DeleteDevopsProjectTaskOutcome;
typedef std::future<DeleteDevopsProjectTaskOutcome> DeleteDevopsProjectTaskOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeleteDevopsProjectTaskRequest&, const DeleteDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDevopsProjectTaskAsyncHandler;
typedef Outcome<Error, Model::DeletePipelineMemberResult> DeletePipelineMemberOutcome;
typedef std::future<DeletePipelineMemberOutcome> DeletePipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeletePipelineMemberRequest&, const DeletePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePipelineMemberAsyncHandler;
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;
@@ -202,6 +213,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InsertDevopsUserResult> InsertDevopsUserOutcome;
typedef std::future<InsertDevopsUserOutcome> InsertDevopsUserOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertDevopsUserRequest&, const InsertDevopsUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertDevopsUserAsyncHandler;
typedef Outcome<Error, Model::InsertPipelineMemberResult> InsertPipelineMemberOutcome;
typedef std::future<InsertPipelineMemberOutcome> InsertPipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertPipelineMemberRequest&, const InsertPipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertPipelineMemberAsyncHandler;
typedef Outcome<Error, Model::InsertProjectMembersResult> InsertProjectMembersOutcome;
typedef std::future<InsertProjectMembersOutcome> InsertProjectMembersOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertProjectMembersRequest&, const InsertProjectMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertProjectMembersAsyncHandler;
@@ -232,6 +246,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListUserOrganizationResult> ListUserOrganizationOutcome;
typedef std::future<ListUserOrganizationOutcome> ListUserOrganizationOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListUserOrganizationRequest&, const ListUserOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserOrganizationAsyncHandler;
typedef Outcome<Error, Model::TransferPipelineOwnerResult> TransferPipelineOwnerOutcome;
typedef std::future<TransferPipelineOwnerOutcome> TransferPipelineOwnerOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::TransferPipelineOwnerRequest&, const TransferPipelineOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferPipelineOwnerAsyncHandler;
typedef Outcome<Error, Model::UpdateDevopsProjectResult> UpdateDevopsProjectOutcome;
typedef std::future<UpdateDevopsProjectOutcome> UpdateDevopsProjectOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectRequest&, const UpdateDevopsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectAsyncHandler;
@@ -241,6 +258,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateDevopsProjectTaskResult> UpdateDevopsProjectTaskOutcome;
typedef std::future<UpdateDevopsProjectTaskOutcome> UpdateDevopsProjectTaskOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectTaskRequest&, const UpdateDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectTaskAsyncHandler;
typedef Outcome<Error, Model::UpdatePipelineMemberResult> UpdatePipelineMemberOutcome;
typedef std::future<UpdatePipelineMemberOutcome> UpdatePipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdatePipelineMemberRequest&, const UpdatePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePipelineMemberAsyncHandler;
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -291,6 +311,9 @@ namespace AlibabaCloud
DeleteDevopsProjectTaskOutcome deleteDevopsProjectTask(const Model::DeleteDevopsProjectTaskRequest &request)const;
void deleteDevopsProjectTaskAsync(const Model::DeleteDevopsProjectTaskRequest& request, const DeleteDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDevopsProjectTaskOutcomeCallable deleteDevopsProjectTaskCallable(const Model::DeleteDevopsProjectTaskRequest& request) const;
DeletePipelineMemberOutcome deletePipelineMember(const Model::DeletePipelineMemberRequest &request)const;
void deletePipelineMemberAsync(const Model::DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePipelineMemberOutcomeCallable deletePipelineMemberCallable(const Model::DeletePipelineMemberRequest& 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;
@@ -333,6 +356,9 @@ namespace AlibabaCloud
InsertDevopsUserOutcome insertDevopsUser(const Model::InsertDevopsUserRequest &request)const;
void insertDevopsUserAsync(const Model::InsertDevopsUserRequest& request, const InsertDevopsUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertDevopsUserOutcomeCallable insertDevopsUserCallable(const Model::InsertDevopsUserRequest& request) const;
InsertPipelineMemberOutcome insertPipelineMember(const Model::InsertPipelineMemberRequest &request)const;
void insertPipelineMemberAsync(const Model::InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertPipelineMemberOutcomeCallable insertPipelineMemberCallable(const Model::InsertPipelineMemberRequest& request) const;
InsertProjectMembersOutcome insertProjectMembers(const Model::InsertProjectMembersRequest &request)const;
void insertProjectMembersAsync(const Model::InsertProjectMembersRequest& request, const InsertProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertProjectMembersOutcomeCallable insertProjectMembersCallable(const Model::InsertProjectMembersRequest& request) const;
@@ -363,6 +389,9 @@ namespace AlibabaCloud
ListUserOrganizationOutcome listUserOrganization(const Model::ListUserOrganizationRequest &request)const;
void listUserOrganizationAsync(const Model::ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserOrganizationOutcomeCallable listUserOrganizationCallable(const Model::ListUserOrganizationRequest& request) const;
TransferPipelineOwnerOutcome transferPipelineOwner(const Model::TransferPipelineOwnerRequest &request)const;
void transferPipelineOwnerAsync(const Model::TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransferPipelineOwnerOutcomeCallable transferPipelineOwnerCallable(const Model::TransferPipelineOwnerRequest& request) const;
UpdateDevopsProjectOutcome updateDevopsProject(const Model::UpdateDevopsProjectRequest &request)const;
void updateDevopsProjectAsync(const Model::UpdateDevopsProjectRequest& request, const UpdateDevopsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDevopsProjectOutcomeCallable updateDevopsProjectCallable(const Model::UpdateDevopsProjectRequest& request) const;
@@ -372,6 +401,9 @@ namespace AlibabaCloud
UpdateDevopsProjectTaskOutcome updateDevopsProjectTask(const Model::UpdateDevopsProjectTaskRequest &request)const;
void updateDevopsProjectTaskAsync(const Model::UpdateDevopsProjectTaskRequest& request, const UpdateDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDevopsProjectTaskOutcomeCallable updateDevopsProjectTaskCallable(const Model::UpdateDevopsProjectTaskRequest& request) const;
UpdatePipelineMemberOutcome updatePipelineMember(const Model::UpdatePipelineMemberRequest &request)const;
void updatePipelineMemberAsync(const Model::UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePipelineMemberOutcomeCallable updatePipelineMemberCallable(const Model::UpdatePipelineMemberRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

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_DELETEPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_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 DeletePipelineMemberRequest : public RpcServiceRequest
{
public:
DeletePipelineMemberRequest();
~DeletePipelineMemberRequest();
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_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_DELETEPIPELINEMEMBERRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERRESULT_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 DeletePipelineMemberResult : public ServiceResult
{
public:
DeletePipelineMemberResult();
explicit DeletePipelineMemberResult(const std::string &payload);
~DeletePipelineMemberResult();
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_DELETEPIPELINEMEMBERRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_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 InsertPipelineMemberRequest : public RpcServiceRequest
{
public:
InsertPipelineMemberRequest();
~InsertPipelineMemberRequest();
std::string getRoleName()const;
void setRoleName(const std::string& roleName);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string roleName_;
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_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_INSERTPIPELINEMEMBERRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERRESULT_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 InsertPipelineMemberResult : public ServiceResult
{
public:
InsertPipelineMemberResult();
explicit InsertPipelineMemberResult(const std::string &payload);
~InsertPipelineMemberResult();
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_INSERTPIPELINEMEMBERRESULT_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_TRANSFERPIPELINEOWNERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_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 TransferPipelineOwnerRequest : public RpcServiceRequest
{
public:
TransferPipelineOwnerRequest();
~TransferPipelineOwnerRequest();
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);
std::string getNewOwnerId()const;
void setNewOwnerId(const std::string& newOwnerId);
private:
std::string userPk_;
std::string orgId_;
long pipelineId_;
std::string newOwnerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_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_TRANSFERPIPELINEOWNERRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERRESULT_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 TransferPipelineOwnerResult : public ServiceResult
{
public:
TransferPipelineOwnerResult();
explicit TransferPipelineOwnerResult(const std::string &payload);
~TransferPipelineOwnerResult();
std::string getObject()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string object_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_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 UpdatePipelineMemberRequest : public RpcServiceRequest
{
public:
UpdatePipelineMemberRequest();
~UpdatePipelineMemberRequest();
std::string getRoleName()const;
void setRoleName(const std::string& roleName);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string roleName_;
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_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_UPDATEPIPELINEMEMBERRESULT_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERRESULT_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 UpdatePipelineMemberResult : public ServiceResult
{
public:
UpdatePipelineMemberResult();
explicit UpdatePipelineMemberResult(const std::string &payload);
~UpdatePipelineMemberResult();
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_UPDATEPIPELINEMEMBERRESULT_H_

View File

@@ -591,6 +591,42 @@ Devops_rdcClient::DeleteDevopsProjectTaskOutcomeCallable Devops_rdcClient::delet
return task->get_future();
}
Devops_rdcClient::DeletePipelineMemberOutcome Devops_rdcClient::deletePipelineMember(const DeletePipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeletePipelineMemberOutcome(DeletePipelineMemberResult(outcome.result()));
else
return DeletePipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::deletePipelineMemberAsync(const DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deletePipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::DeletePipelineMemberOutcomeCallable Devops_rdcClient::deletePipelineMemberCallable(const DeletePipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeletePipelineMemberOutcome()>>(
[this, request]()
{
return this->deletePipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::ExecutePipelineOutcome Devops_rdcClient::executePipeline(const ExecutePipelineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1131,42 @@ Devops_rdcClient::InsertDevopsUserOutcomeCallable Devops_rdcClient::insertDevops
return task->get_future();
}
Devops_rdcClient::InsertPipelineMemberOutcome Devops_rdcClient::insertPipelineMember(const InsertPipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InsertPipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InsertPipelineMemberOutcome(InsertPipelineMemberResult(outcome.result()));
else
return InsertPipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::insertPipelineMemberAsync(const InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, insertPipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::InsertPipelineMemberOutcomeCallable Devops_rdcClient::insertPipelineMemberCallable(const InsertPipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InsertPipelineMemberOutcome()>>(
[this, request]()
{
return this->insertPipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::InsertProjectMembersOutcome Devops_rdcClient::insertProjectMembers(const InsertProjectMembersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1455,6 +1527,42 @@ Devops_rdcClient::ListUserOrganizationOutcomeCallable Devops_rdcClient::listUser
return task->get_future();
}
Devops_rdcClient::TransferPipelineOwnerOutcome Devops_rdcClient::transferPipelineOwner(const TransferPipelineOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TransferPipelineOwnerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TransferPipelineOwnerOutcome(TransferPipelineOwnerResult(outcome.result()));
else
return TransferPipelineOwnerOutcome(outcome.error());
}
void Devops_rdcClient::transferPipelineOwnerAsync(const TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, transferPipelineOwner(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::TransferPipelineOwnerOutcomeCallable Devops_rdcClient::transferPipelineOwnerCallable(const TransferPipelineOwnerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TransferPipelineOwnerOutcome()>>(
[this, request]()
{
return this->transferPipelineOwner(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1563,3 +1671,39 @@ Devops_rdcClient::UpdateDevopsProjectTaskOutcomeCallable Devops_rdcClient::updat
return task->get_future();
}
Devops_rdcClient::UpdatePipelineMemberOutcome Devops_rdcClient::updatePipelineMember(const UpdatePipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdatePipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdatePipelineMemberOutcome(UpdatePipelineMemberResult(outcome.result()));
else
return UpdatePipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::updatePipelineMemberAsync(const UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updatePipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::UpdatePipelineMemberOutcomeCallable Devops_rdcClient::updatePipelineMemberCallable(const UpdatePipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdatePipelineMemberOutcome()>>(
[this, request]()
{
return this->updatePipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

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

View File

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

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.
*/
#include <alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h>
using AlibabaCloud::Devops_rdc::Model::InsertPipelineMemberRequest;
InsertPipelineMemberRequest::InsertPipelineMemberRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertPipelineMember")
{
setMethod(HttpRequest::Method::Post);
}
InsertPipelineMemberRequest::~InsertPipelineMemberRequest()
{}
std::string InsertPipelineMemberRequest::getRoleName()const
{
return roleName_;
}
void InsertPipelineMemberRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setBodyParameter("RoleName", roleName);
}
std::string InsertPipelineMemberRequest::getUserPk()const
{
return userPk_;
}
void InsertPipelineMemberRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string InsertPipelineMemberRequest::getUserId()const
{
return userId_;
}
void InsertPipelineMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string InsertPipelineMemberRequest::getOrgId()const
{
return orgId_;
}
void InsertPipelineMemberRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long InsertPipelineMemberRequest::getPipelineId()const
{
return pipelineId_;
}
void InsertPipelineMemberRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}

View File

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

View File

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

View File

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

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.
*/
#include <alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdatePipelineMemberRequest;
UpdatePipelineMemberRequest::UpdatePipelineMemberRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdatePipelineMember")
{
setMethod(HttpRequest::Method::Post);
}
UpdatePipelineMemberRequest::~UpdatePipelineMemberRequest()
{}
std::string UpdatePipelineMemberRequest::getRoleName()const
{
return roleName_;
}
void UpdatePipelineMemberRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setBodyParameter("RoleName", roleName);
}
std::string UpdatePipelineMemberRequest::getUserPk()const
{
return userPk_;
}
void UpdatePipelineMemberRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string UpdatePipelineMemberRequest::getUserId()const
{
return userId_;
}
void UpdatePipelineMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string UpdatePipelineMemberRequest::getOrgId()const
{
return orgId_;
}
void UpdatePipelineMemberRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long UpdatePipelineMemberRequest::getPipelineId()const
{
return pipelineId_;
}
void UpdatePipelineMemberRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}

View File

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

View File

@@ -61,14 +61,10 @@ set(ess_public_header_model
include/alibabacloud/ess/model/DeleteScalingRuleResult.h
include/alibabacloud/ess/model/DeleteScheduledTaskRequest.h
include/alibabacloud/ess/model/DeleteScheduledTaskResult.h
include/alibabacloud/ess/model/DescribeAccountAttributesRequest.h
include/alibabacloud/ess/model/DescribeAccountAttributesResult.h
include/alibabacloud/ess/model/DescribeAlarmsRequest.h
include/alibabacloud/ess/model/DescribeAlarmsResult.h
include/alibabacloud/ess/model/DescribeAlertConfigRequest.h
include/alibabacloud/ess/model/DescribeAlertConfigResult.h
include/alibabacloud/ess/model/DescribeCapacityHistoryRequest.h
include/alibabacloud/ess/model/DescribeCapacityHistoryResult.h
include/alibabacloud/ess/model/DescribeLifecycleActionsRequest.h
include/alibabacloud/ess/model/DescribeLifecycleActionsResult.h
include/alibabacloud/ess/model/DescribeLifecycleHooksRequest.h
include/alibabacloud/ess/model/DescribeLifecycleHooksResult.h
include/alibabacloud/ess/model/DescribeLimitationRequest.h
@@ -123,8 +119,6 @@ set(ess_public_header_model
include/alibabacloud/ess/model/ListTagValuesResult.h
include/alibabacloud/ess/model/ModifyAlarmRequest.h
include/alibabacloud/ess/model/ModifyAlarmResult.h
include/alibabacloud/ess/model/ModifyAlertConfigRequest.h
include/alibabacloud/ess/model/ModifyAlertConfigResult.h
include/alibabacloud/ess/model/ModifyLifecycleHookRequest.h
include/alibabacloud/ess/model/ModifyLifecycleHookResult.h
include/alibabacloud/ess/model/ModifyNotificationConfigurationRequest.h
@@ -204,14 +198,10 @@ set(ess_src
src/model/DeleteScalingRuleResult.cc
src/model/DeleteScheduledTaskRequest.cc
src/model/DeleteScheduledTaskResult.cc
src/model/DescribeAccountAttributesRequest.cc
src/model/DescribeAccountAttributesResult.cc
src/model/DescribeAlarmsRequest.cc
src/model/DescribeAlarmsResult.cc
src/model/DescribeAlertConfigRequest.cc
src/model/DescribeAlertConfigResult.cc
src/model/DescribeCapacityHistoryRequest.cc
src/model/DescribeCapacityHistoryResult.cc
src/model/DescribeLifecycleActionsRequest.cc
src/model/DescribeLifecycleActionsResult.cc
src/model/DescribeLifecycleHooksRequest.cc
src/model/DescribeLifecycleHooksResult.cc
src/model/DescribeLimitationRequest.cc
@@ -266,8 +256,6 @@ set(ess_src
src/model/ListTagValuesResult.cc
src/model/ModifyAlarmRequest.cc
src/model/ModifyAlarmResult.cc
src/model/ModifyAlertConfigRequest.cc
src/model/ModifyAlertConfigResult.cc
src/model/ModifyLifecycleHookRequest.cc
src/model/ModifyLifecycleHookResult.cc
src/model/ModifyNotificationConfigurationRequest.cc

View File

@@ -62,14 +62,10 @@
#include "model/DeleteScalingRuleResult.h"
#include "model/DeleteScheduledTaskRequest.h"
#include "model/DeleteScheduledTaskResult.h"
#include "model/DescribeAccountAttributesRequest.h"
#include "model/DescribeAccountAttributesResult.h"
#include "model/DescribeAlarmsRequest.h"
#include "model/DescribeAlarmsResult.h"
#include "model/DescribeAlertConfigRequest.h"
#include "model/DescribeAlertConfigResult.h"
#include "model/DescribeCapacityHistoryRequest.h"
#include "model/DescribeCapacityHistoryResult.h"
#include "model/DescribeLifecycleActionsRequest.h"
#include "model/DescribeLifecycleActionsResult.h"
#include "model/DescribeLifecycleHooksRequest.h"
#include "model/DescribeLifecycleHooksResult.h"
#include "model/DescribeLimitationRequest.h"
@@ -124,8 +120,6 @@
#include "model/ListTagValuesResult.h"
#include "model/ModifyAlarmRequest.h"
#include "model/ModifyAlarmResult.h"
#include "model/ModifyAlertConfigRequest.h"
#include "model/ModifyAlertConfigResult.h"
#include "model/ModifyLifecycleHookRequest.h"
#include "model/ModifyLifecycleHookResult.h"
#include "model/ModifyNotificationConfigurationRequest.h"
@@ -231,18 +225,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteScheduledTaskResult> DeleteScheduledTaskOutcome;
typedef std::future<DeleteScheduledTaskOutcome> DeleteScheduledTaskOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DeleteScheduledTaskRequest&, const DeleteScheduledTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScheduledTaskAsyncHandler;
typedef Outcome<Error, Model::DescribeAccountAttributesResult> DescribeAccountAttributesOutcome;
typedef std::future<DescribeAccountAttributesOutcome> DescribeAccountAttributesOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeAccountAttributesRequest&, const DescribeAccountAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccountAttributesAsyncHandler;
typedef Outcome<Error, Model::DescribeAlarmsResult> DescribeAlarmsOutcome;
typedef std::future<DescribeAlarmsOutcome> DescribeAlarmsOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeAlarmsRequest&, const DescribeAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmsAsyncHandler;
typedef Outcome<Error, Model::DescribeAlertConfigResult> DescribeAlertConfigOutcome;
typedef std::future<DescribeAlertConfigOutcome> DescribeAlertConfigOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeAlertConfigRequest&, const DescribeAlertConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeCapacityHistoryResult> DescribeCapacityHistoryOutcome;
typedef std::future<DescribeCapacityHistoryOutcome> DescribeCapacityHistoryOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeCapacityHistoryRequest&, const DescribeCapacityHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCapacityHistoryAsyncHandler;
typedef Outcome<Error, Model::DescribeLifecycleActionsResult> DescribeLifecycleActionsOutcome;
typedef std::future<DescribeLifecycleActionsOutcome> DescribeLifecycleActionsOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeLifecycleActionsRequest&, const DescribeLifecycleActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLifecycleActionsAsyncHandler;
typedef Outcome<Error, Model::DescribeLifecycleHooksResult> DescribeLifecycleHooksOutcome;
typedef std::future<DescribeLifecycleHooksOutcome> DescribeLifecycleHooksOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::DescribeLifecycleHooksRequest&, const DescribeLifecycleHooksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLifecycleHooksAsyncHandler;
@@ -324,9 +312,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyAlarmResult> ModifyAlarmOutcome;
typedef std::future<ModifyAlarmOutcome> ModifyAlarmOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::ModifyAlarmRequest&, const ModifyAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAlarmAsyncHandler;
typedef Outcome<Error, Model::ModifyAlertConfigResult> ModifyAlertConfigOutcome;
typedef std::future<ModifyAlertConfigOutcome> ModifyAlertConfigOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::ModifyAlertConfigRequest&, const ModifyAlertConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAlertConfigAsyncHandler;
typedef Outcome<Error, Model::ModifyLifecycleHookResult> ModifyLifecycleHookOutcome;
typedef std::future<ModifyLifecycleHookOutcome> ModifyLifecycleHookOutcomeCallable;
typedef std::function<void(const EssClient*, const Model::ModifyLifecycleHookRequest&, const ModifyLifecycleHookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLifecycleHookAsyncHandler;
@@ -446,18 +431,12 @@ namespace AlibabaCloud
DeleteScheduledTaskOutcome deleteScheduledTask(const Model::DeleteScheduledTaskRequest &request)const;
void deleteScheduledTaskAsync(const Model::DeleteScheduledTaskRequest& request, const DeleteScheduledTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteScheduledTaskOutcomeCallable deleteScheduledTaskCallable(const Model::DeleteScheduledTaskRequest& request) const;
DescribeAccountAttributesOutcome describeAccountAttributes(const Model::DescribeAccountAttributesRequest &request)const;
void describeAccountAttributesAsync(const Model::DescribeAccountAttributesRequest& request, const DescribeAccountAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAccountAttributesOutcomeCallable describeAccountAttributesCallable(const Model::DescribeAccountAttributesRequest& request) const;
DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const;
void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const;
DescribeAlertConfigOutcome describeAlertConfig(const Model::DescribeAlertConfigRequest &request)const;
void describeAlertConfigAsync(const Model::DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAlertConfigOutcomeCallable describeAlertConfigCallable(const Model::DescribeAlertConfigRequest& request) const;
DescribeCapacityHistoryOutcome describeCapacityHistory(const Model::DescribeCapacityHistoryRequest &request)const;
void describeCapacityHistoryAsync(const Model::DescribeCapacityHistoryRequest& request, const DescribeCapacityHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCapacityHistoryOutcomeCallable describeCapacityHistoryCallable(const Model::DescribeCapacityHistoryRequest& request) const;
DescribeLifecycleActionsOutcome describeLifecycleActions(const Model::DescribeLifecycleActionsRequest &request)const;
void describeLifecycleActionsAsync(const Model::DescribeLifecycleActionsRequest& request, const DescribeLifecycleActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLifecycleActionsOutcomeCallable describeLifecycleActionsCallable(const Model::DescribeLifecycleActionsRequest& request) const;
DescribeLifecycleHooksOutcome describeLifecycleHooks(const Model::DescribeLifecycleHooksRequest &request)const;
void describeLifecycleHooksAsync(const Model::DescribeLifecycleHooksRequest& request, const DescribeLifecycleHooksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLifecycleHooksOutcomeCallable describeLifecycleHooksCallable(const Model::DescribeLifecycleHooksRequest& request) const;
@@ -539,9 +518,6 @@ namespace AlibabaCloud
ModifyAlarmOutcome modifyAlarm(const Model::ModifyAlarmRequest &request)const;
void modifyAlarmAsync(const Model::ModifyAlarmRequest& request, const ModifyAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyAlarmOutcomeCallable modifyAlarmCallable(const Model::ModifyAlarmRequest& request) const;
ModifyAlertConfigOutcome modifyAlertConfig(const Model::ModifyAlertConfigRequest &request)const;
void modifyAlertConfigAsync(const Model::ModifyAlertConfigRequest& request, const ModifyAlertConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyAlertConfigOutcomeCallable modifyAlertConfigCallable(const Model::ModifyAlertConfigRequest& request) const;
ModifyLifecycleHookOutcome modifyLifecycleHook(const Model::ModifyLifecycleHookRequest &request)const;
void modifyLifecycleHookAsync(const Model::ModifyLifecycleHookRequest& request, const ModifyLifecycleHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyLifecycleHookOutcomeCallable modifyLifecycleHookCallable(const Model::ModifyLifecycleHookRequest& request) const;

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
AttachDBInstancesRequest();
~AttachDBInstancesRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScalingGroupId()const;
void setScalingGroupId(const std::string& scalingGroupId);
bool getForceAttach()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
private:
std::string clientToken_;
std::string scalingGroupId_;
bool forceAttach_;
std::string accessKeyId_;

View File

View File

View File

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
AttachLoadBalancersRequest();
~AttachLoadBalancersRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScalingGroupId()const;
void setScalingGroupId(const std::string& scalingGroupId);
bool getForceAttach()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
private:
std::string clientToken_;
std::string scalingGroupId_;
bool forceAttach_;
std::string accessKeyId_;

View File

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
AttachVServerGroupsRequest();
~AttachVServerGroupsRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getScalingGroupId()const;
void setScalingGroupId(const std::string& scalingGroupId);
bool getForceAttach()const;
@@ -63,6 +65,7 @@ namespace AlibabaCloud
void setVServerGroup(const std::vector<VServerGroup>& vServerGroup);
private:
std::string clientToken_;
std::string scalingGroupId_;
bool forceAttach_;
std::string accessKeyId_;

View File

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getLifecycleActionToken()const;
void setLifecycleActionToken(const std::string& lifecycleActionToken);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceOwnerAccount()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
private:
std::string lifecycleActionToken_;
std::string clientToken_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
std::string lifecycleHookId_;

View File

View File

@@ -53,6 +53,8 @@ namespace AlibabaCloud
void setThreshold(float threshold);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getEffective()const;
void setEffective(const std::string& effective);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getEvaluationCount()const;
@@ -83,6 +85,7 @@ namespace AlibabaCloud
std::vector<std::string> alarmAction_;
float threshold_;
std::string accessKeyId_;
std::string effective_;
std::string regionId_;
int evaluationCount_;
std::string metricName_;

0
ess/include/alibabacloud/ess/model/CreateAlarmResult.h Executable file → Normal file
View File

View File

@@ -30,16 +30,6 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_ESS_EXPORT CreateLifecycleHookRequest : public RpcServiceRequest
{
public:
struct LifecycleHook
{
std::string defaultResult;
std::string lifecycleHookName;
int heartbeatTimeout;
std::string notificationArn;
std::string notificationMetadata;
std::string lifecycleTransition;
};
public:
CreateLifecycleHookRequest();
@@ -67,8 +57,6 @@ namespace AlibabaCloud
void setNotificationMetadata(const std::string& notificationMetadata);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<LifecycleHook> getLifecycleHook()const;
void setLifecycleHook(const std::vector<LifecycleHook>& lifecycleHook);
private:
std::string defaultResult_;
@@ -82,7 +70,6 @@ namespace AlibabaCloud
std::string ownerAccount_;
std::string notificationMetadata_;
long ownerId_;
std::vector<LifecycleHook> lifecycleHook_;
};
}

View File

View File

@@ -64,6 +64,8 @@ namespace AlibabaCloud
void setSpotPriceLimit(const std::vector<SpotPriceLimit>& spotPriceLimit);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getPrivatePoolOptionsMatchCriteria()const;
void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria);
std::string getHostName()const;
void setHostName(const std::string& hostName);
std::string getPassword()const;
@@ -72,6 +74,8 @@ namespace AlibabaCloud
void setInstanceDescription(const std::string& instanceDescription);
std::string getSystemDiskAutoSnapshotPolicyId()const;
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
std::string getPrivatePoolOptionsId()const;
void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId);
int getIpv6AddressCount()const;
void setIpv6AddressCount(int ipv6AddressCount);
int getCpu()const;
@@ -88,8 +92,12 @@ namespace AlibabaCloud
void setInstanceName(const std::string& instanceName);
std::string getInternetChargeType()const;
void setInternetChargeType(const std::string& internetChargeType);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
int getInternetMaxBandwidthIn()const;
void setInternetMaxBandwidthIn(int internetMaxBandwidthIn);
std::string getAffinity()const;
void setAffinity(const std::string& affinity);
std::string getImageId()const;
void setImageId(const std::string& imageId);
int getMemory()const;
@@ -118,16 +126,24 @@ namespace AlibabaCloud
void setImageName(const std::string& imageName);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::map<std::string, std::string> getSchedulerOptions()const;
void setSchedulerOptions(const std::map<std::string, std::string>& schedulerOptions);
std::string getDeploymentSetId()const;
void setDeploymentSetId(const std::string& deploymentSetId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getTenancy()const;
void setTenancy(const std::string& tenancy);
std::string getSystemDiskDiskName()const;
void setSystemDiskDiskName(const std::string& systemDiskDiskName);
std::string getRamRoleName()const;
void setRamRoleName(const std::string& ramRoleName);
std::string getDedicatedHostId()const;
void setDedicatedHostId(const std::string& dedicatedHostId);
std::string getCreditSpecification()const;
void setCreditSpecification(const std::string& creditSpecification);
std::vector<std::string> getSecurityGroupIds()const;
void setSecurityGroupIds(const std::vector<std::string>& securityGroupIds);
std::vector<DataDisk> getDataDisk()const;
@@ -136,6 +152,8 @@ namespace AlibabaCloud
void setLoadBalancerWeight(int loadBalancerWeight);
int getSystemDiskSize()const;
void setSystemDiskSize(int systemDiskSize);
std::string getImageFamily()const;
void setImageFamily(const std::string& imageFamily);
std::string getSystemDiskDescription()const;
void setSystemDiskDescription(const std::string& systemDiskDescription);
@@ -145,10 +163,12 @@ namespace AlibabaCloud
std::string keyPairName_;
std::vector<SpotPriceLimit> spotPriceLimit_;
std::string resourceGroupId_;
std::string privatePoolOptionsMatchCriteria_;
std::string hostName_;
std::string password_;
std::string instanceDescription_;
std::string systemDiskAutoSnapshotPolicyId_;
std::string privatePoolOptionsId_;
int ipv6AddressCount_;
int cpu_;
long ownerId_;
@@ -157,7 +177,9 @@ namespace AlibabaCloud
std::string spotStrategy_;
std::string instanceName_;
std::string internetChargeType_;
std::string zoneId_;
int internetMaxBandwidthIn_;
std::string affinity_;
std::string imageId_;
int memory_;
std::string clientToken_;
@@ -172,15 +194,20 @@ namespace AlibabaCloud
bool passwordInherit_;
std::string imageName_;
std::string instanceType_;
std::map<std::string, std::string> schedulerOptions_;
std::string deploymentSetId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string tenancy_;
std::string systemDiskDiskName_;
std::string ramRoleName_;
std::string dedicatedHostId_;
std::string creditSpecification_;
std::vector<std::string> securityGroupIds_;
std::vector<DataDisk> dataDisk_;
int loadBalancerWeight_;
int systemDiskSize_;
std::string imageFamily_;
std::string systemDiskDescription_;
};

View File

View File

@@ -65,6 +65,8 @@ namespace AlibabaCloud
void setVSwitchIds(const std::vector<std::string>& vSwitchIds);
bool getSpotInstanceRemedy()const;
void setSpotInstanceRemedy(bool spotInstanceRemedy);
bool getScaleOutAmountCheck()const;
void setScaleOutAmountCheck(bool scaleOutAmountCheck);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
int getDefaultCooldown()const;
@@ -77,6 +79,8 @@ namespace AlibabaCloud
void setLaunchTemplateId(const std::string& launchTemplateId);
int getDesiredCapacity()const;
void setDesiredCapacity(int desiredCapacity);
bool getCompensateWithOnDemand()const;
void setCompensateWithOnDemand(bool compensateWithOnDemand);
int getMinSize()const;
void setMinSize(int minSize);
long getOwnerId()const;
@@ -127,12 +131,14 @@ namespace AlibabaCloud
private:
std::vector<std::string> vSwitchIds_;
bool spotInstanceRemedy_;
bool scaleOutAmountCheck_;
std::vector<Tag> tag_;
int defaultCooldown_;
std::string multiAZPolicy_;
std::string dBInstanceIds_;
std::string launchTemplateId_;
int desiredCapacity_;
bool compensateWithOnDemand_;
int minSize_;
long ownerId_;
std::string vSwitchId_;

View File

View File

@@ -58,6 +58,8 @@ namespace AlibabaCloud
void setCooldown(int cooldown);
std::string getPredictiveValueBehavior()const;
void setPredictiveValueBehavior(const std::string& predictiveValueBehavior);
int getScaleInEvaluationCount()const;
void setScaleInEvaluationCount(int scaleInEvaluationCount);
std::string getScalingRuleType()const;
void setScalingRuleType(const std::string& scalingRuleType);
std::string getMetricName()const;
@@ -80,6 +82,8 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
int getPredictiveValueBuffer()const;
void setPredictiveValueBuffer(int predictiveValueBuffer);
int getScaleOutEvaluationCount()const;
void setScaleOutEvaluationCount(int scaleOutEvaluationCount);
int getMinAdjustmentMagnitude()const;
void setMinAdjustmentMagnitude(int minAdjustmentMagnitude);
float getTargetValue()const;
@@ -94,6 +98,7 @@ namespace AlibabaCloud
std::string scalingRuleName_;
int cooldown_;
std::string predictiveValueBehavior_;
int scaleInEvaluationCount_;
std::string scalingRuleType_;
std::string metricName_;
std::string predictiveScalingMode_;
@@ -105,6 +110,7 @@ namespace AlibabaCloud
std::string adjustmentType_;
long ownerId_;
int predictiveValueBuffer_;
int scaleOutEvaluationCount_;
int minAdjustmentMagnitude_;
float targetValue_;

View File

View File

View File

View File

0
ess/include/alibabacloud/ess/model/DeleteAlarmResult.h Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -1,67 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ESS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_
#define ALIBABACLOUD_ESS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ess/EssExport.h>
namespace AlibabaCloud
{
namespace Ess
{
namespace Model
{
class ALIBABACLOUD_ESS_EXPORT DescribeAccountAttributesResult : public ServiceResult
{
public:
DescribeAccountAttributesResult();
explicit DescribeAccountAttributesResult(const std::string &payload);
~DescribeAccountAttributesResult();
int getMaxNumberOfScalingRules()const;
int getMaxNumberOfScalingInstances()const;
int getMaxNumberOfScheduledTasks()const;
int getMaxNumberOfLoadBalancers()const;
int getMaxNumberOfMinSize()const;
int getMaxNumberOfScalingGroups()const;
int getMaxNumberOfScalingConfigurations()const;
int getMaxNumberOfDBInstances()const;
int getMaxNumberOfMaxSize()const;
protected:
void parse(const std::string &payload);
private:
int maxNumberOfScalingRules_;
int maxNumberOfScalingInstances_;
int maxNumberOfScheduledTasks_;
int maxNumberOfLoadBalancers_;
int maxNumberOfMinSize_;
int maxNumberOfScalingGroups_;
int maxNumberOfScalingConfigurations_;
int maxNumberOfDBInstances_;
int maxNumberOfMaxSize_;
};
}
}
}
#endif // !ALIBABACLOUD_ESS_MODEL_DESCRIBEACCOUNTATTRIBUTESRESULT_H_

View File

View File

@@ -48,6 +48,7 @@ namespace AlibabaCloud
int evaluationCount;
std::string statistics;
std::string name;
std::string effective;
std::vector<std::string> alarmActions;
std::string metricName;
std::string state;

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ESS_MODEL_MODIFYALERTCONFIGREQUEST_H_
#define ALIBABACLOUD_ESS_MODEL_MODIFYALERTCONFIGREQUEST_H_
#ifndef ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSREQUEST_H_
#define ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSREQUEST_H_
#include <string>
#include <vector>
@@ -28,39 +28,39 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_ESS_EXPORT ModifyAlertConfigRequest : public RpcServiceRequest
class ALIBABACLOUD_ESS_EXPORT DescribeLifecycleActionsRequest : public RpcServiceRequest
{
public:
ModifyAlertConfigRequest();
~ModifyAlertConfigRequest();
DescribeLifecycleActionsRequest();
~DescribeLifecycleActionsRequest();
int getRejectConfig()const;
void setRejectConfig(int rejectConfig);
std::string getScalingGroupId()const;
void setScalingGroupId(const std::string& scalingGroupId);
int getFailConfig()const;
void setFailConfig(int failConfig);
std::string getLifecycleActionStatus()const;
void setLifecycleActionStatus(const std::string& lifecycleActionStatus);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getSuccessConfig()const;
void setSuccessConfig(int successConfig);
std::string getScalingActivityId()const;
void setScalingActivityId(const std::string& scalingActivityId);
int getMaxResults()const;
void setMaxResults(int maxResults);
private:
int rejectConfig_;
std::string scalingGroupId_;
int failConfig_;
std::string lifecycleActionStatus_;
std::string accessKeyId_;
std::string nextToken_;
std::string resourceOwnerAccount_;
long ownerId_;
int successConfig_;
std::string scalingActivityId_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_ESS_MODEL_MODIFYALERTCONFIGREQUEST_H_
#endif // !ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSRESULT_H_
#define ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ess/EssExport.h>
namespace AlibabaCloud
{
namespace Ess
{
namespace Model
{
class ALIBABACLOUD_ESS_EXPORT DescribeLifecycleActionsResult : public ServiceResult
{
public:
struct LifecycleAction
{
std::string lifecycleActionStatus;
std::string lifecycleActionResult;
std::vector<std::string> instanceIds;
std::string lifecycleActionToken;
std::string lifecycleHookId;
};
DescribeLifecycleActionsResult();
explicit DescribeLifecycleActionsResult(const std::string &payload);
~DescribeLifecycleActionsResult();
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
std::vector<LifecycleAction> getLifecycleActions()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string nextToken_;
int maxResults_;
std::vector<LifecycleAction> lifecycleActions_;
};
}
}
}
#endif // !ALIBABACLOUD_ESS_MODEL_DESCRIBELIFECYCLEACTIONSRESULT_H_

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -34,6 +34,10 @@ namespace AlibabaCloud
public:
struct ScalingConfiguration
{
struct SchedulerOptions
{
std::string managedPrivateSpaceId;
};
struct DataDisk
{
std::string snapshotId;
@@ -58,45 +62,54 @@ namespace AlibabaCloud
std::string instanceType;
};
std::string scalingConfigurationName;
std::string dedicatedHostId;
std::vector<ScalingConfiguration::DataDisk> dataDisks;
std::string resourceGroupId;
int systemDiskSize;
std::string systemDiskDescription;
std::string userData;
int memory;
int cpu;
std::string ramRoleName;
std::string imageId;
std::vector<ScalingConfiguration::Tag> tags;
std::string hostName;
int loadBalancerWeight;
std::string scalingGroupId;
std::string imageFamily;
std::string privatePoolOptionsMatchCriteria;
std::vector<std::string> securityGroupIds;
std::string internetChargeType;
std::string privatePoolOptionsId;
std::string instanceName;
std::string deploymentSetId;
int internetMaxBandwidthOut;
std::string creationTime;
std::string affinity;
std::string scalingConfigurationId;
std::string securityEnhancementStrategy;
std::string tenancy;
int systemDiskSize;
std::string userData;
std::string lifecycleState;
std::string systemDiskAutoSnapshotPolicyId;
std::string systemDiskName;
std::string ramRoleName;
int ipv6AddressCount;
std::string imageId;
SchedulerOptions schedulerOptions;
std::vector<ScalingConfiguration::SpotPriceModel> spotPriceLimit;
std::vector<std::string> instanceTypes;
std::string instanceType;
std::vector<ScalingConfiguration::Tag> tags;
std::string hostName;
std::string spotStrategy;
bool passwordInherit;
std::string keyPairName;
int loadBalancerWeight;
std::string ioOptimized;
std::string scalingGroupId;
std::string zoneId;
std::string hpcClusterId;
std::string securityGroupId;
std::vector<std::string> securityGroupIds;
std::string internetChargeType;
std::string systemDiskCategory;
std::string instanceName;
std::string deploymentSetId;
std::string imageName;
int internetMaxBandwidthOut;
int internetMaxBandwidthIn;
std::string creationTime;
std::string instanceGeneration;
std::string instanceDescription;
std::string scalingConfigurationId;
std::string securityEnhancementStrategy;
std::string creditSpecification;
};

View File

View File

@@ -47,6 +47,7 @@ namespace AlibabaCloud
};
bool spotInstanceRemedy;
std::string activeScalingConfigurationId;
bool compensateWithOnDemand;
int onDemandPercentageAboveBaseCapacity;
int desiredCapacity;
std::string lifecycleState;
@@ -74,6 +75,7 @@ namespace AlibabaCloud
int activeCapacity;
int minSize;
int defaultCooldown;
bool scaleOutAmountCheck;
std::string vpcId;
std::string launchTemplateVersion;
std::string creationTime;

View File

View File

@@ -35,17 +35,18 @@ namespace AlibabaCloud
struct ScalingInstance
{
int loadBalancerWeight;
std::string warmupState;
std::string createdTime;
std::string instanceId;
std::string scalingGroupId;
std::string healthStatus;
std::string creationTime;
std::string launchTemplateVersion;
std::string lifecycleState;
std::string launchTemplateId;
std::string creationType;
std::string warmupState;
std::string creationTime;
std::string launchTemplateVersion;
bool entrusted;
std::string scalingConfigurationId;
std::string creationType;
};

View File

View File

@@ -72,9 +72,11 @@ namespace AlibabaCloud
std::string metricName;
std::string scalingRuleName;
int adjustmentValue;
int scaleOutEvaluationCount;
int initialMaxSize;
std::string scalingRuleType;
int estimatedInstanceWarmup;
int scaleInEvaluationCount;
std::string predictiveScalingMode;
int predictiveValueBuffer;
int predictiveTaskBufferTime;

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